johnkainn
08-20-2008, 05:47 PM
I upload and display an image in a movieClip, by using filereference class.
If I try to get the height of the movieClip that the image is loaded into, I only get the height before the image was loaded in.
I tried to get the size in CompleteF.
fileReference.addEventListener(Event.COMPLETE, completeF);
and also
var pict:Loader=new Loader();
var url:URLRequest=new URLRequest();
...
myMovie.addChild(pict);
If I place a button on stage and click it after the image has been loaded I get the correct size. I would however like to get the size without clicking a button. How can I do that? I appreciate your help.
Thanks
If I try to get the height of the movieClip that the image is loaded into, I only get the height before the image was loaded in.
I tried to get the size in CompleteF.
fileReference.addEventListener(Event.COMPLETE, completeF);
and also
var pict:Loader=new Loader();
var url:URLRequest=new URLRequest();
...
myMovie.addChild(pict);
If I place a button on stage and click it after the image has been loaded I get the correct size. I would however like to get the size without clicking a button. How can I do that? I appreciate your help.
Thanks