Hi!
I need to access the file behind a Sprite object after exporting for Windows 8.
If I have a plugin action which takes an argument as Object and I invoke it with a sprite object, I am able to obtain the file name for that sprite with the following code:
Is this a reliable way to get the file name backing the sprite object?
var inst = objectImage.getFirstPicked();
if (!inst || !inst.curFrame)
return;
var imgLocation = inst.curFrame.texture_file; // returns images\filename0.png