strk wrote:
Is it safe to assume that as soon as
loaded.getBytesLoaded() == loaded.getBytesTotal()
actions in first frame of the loaded 'loaded' movieclip
were executed ?
No.
First because even before loading starts, the value will be the same (0
and 0 or some variation). So you have to check for a minimum BytesTotal
size (say, 20).
Second because even when it's loaded the content might not have
initialized yet. So wait for _width > 0.
And third because if it's a child movie it is lower on the execution
queue. So the code will execute a frame later.
All considered, you'd better have some event or variable that tells
whether the code was already executed or not, and check against it,
instead of just take the byte count into consideration.
Zeh
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders