I'm using SWFgen for users to load images into the final product and that used to work fine. All of a sudden when I inlcude an image from the user side it doesn't appear in the end user side, if you see wat I mean?
This is the code I'm using:
Code:
swfgen = new ActiveXObject("swfkit.zgen");
swfgen.onSubImage = function (obj)
{
/*
* 157 is the image id in the "MyMovie.swf"
* it can be acquired by the swfimg tool
*/
if (obj.id == 157)
{
var image = FlashPlayer.getVariable("_root.Card.image");
trace(image);
if (File.exists(image))
{
obj.image = image;
obj.quality = 100;
obj.needSub = true;
}
}
}
Any idea what I'm (clearly..) doing wrong?
w-b