This content has been marked as final. Show 5 replies
hmmm... well part of the issue may be that the mask is getting 'reset' repeatedly within the onEnterFrame method - i would take out the lines:
this.mcTransition.picture.cacheAsBitmap = true;
this.mcTransition.mskBox.cacheAsBitmap = true;
and place them just previous to the loop - also as above, I've changed the order to declare the cacheAsBitmap properties previous to setMask.
When I move the set mask and the cache as bitmap out of the onenterframe function....
It consistently DOESN'T work.
Does that giive you a better idea of what's going on?
ahh yes, now i see. this preloader is handling the loading of the 'picture' and not the entire file - in other words, one can't apply those calls to something that doesn't yet exist ;) so here how i might restructure this:
cbeech, thanks for the idea...
i changed the code around to reflect the new idea of applying setmask once the pic is loaded...
however, the setmask is still messing up randomly generally when i leave the page open and mess around outside of flash and then come back....
any other ideas?
did you use the code 'just as' above?
if not - then have you made sure that the loop terminates?
also, 'where' does this code reside?
and is it 'reused' to load other images?