Flash[MX]dynamically loaded jpg mask

I have a jpg that i load dynamicly into my swf

when i try to set a mask to it doesnt work??


I’m not sure… but try calling the [font=courier new]MovieClip.setMask()[/font] method once the image has been fully loaded. :slight_smile:

ok how do i find out if a jpg has been fully loaded? im using


You use the [font=courier new]MovieClip.getBytesLoaded()[/font] and [font=courier new]MovieClip.getBytesTotal()[/font] methods. Run a search for more info, I (and many others) have answered this question several times. :stuck_out_tongue:

nah , thanks all i need was the code… i can figure it out now :slight_smile: thanks for your help

That’s the spirit! Good luck!! :stuck_out_tongue: