I actually don't need help, i just want to know your opinion about that weird Flash CS4 (AS3) behavior. there should be something i missed. 1) what happens: flash movie plays on any (even non-existent) function call between if(bytesLoaded==bytesTotal), and doesnot play on commented-out or blank line there. 2) what should be seen instead: no action - i dont call any timeline functions so the movie shouldn't be playing. any warning or error? i dont know, flash is so *-nixy all the time in the way it handles errors. 3) where: in the
if(stage.loaderInfo.bytesLoaded==stage.loaderInfo.bytesTotal)
clause on the first frame (AS3)
I think adobe has taken responsibilty on itself to guess that if we use bytesLoaded and bytesTotal, then we want to play movie :|. what if i want to ceil a number and dont want to play it?
i dont use custom document class so i use root.* instead of MovieClip(root).*
---this is the AS3 code on the first frame, and embedded video in the next 1999 frames
stop();
root.addEventListener(Event.ENTER_FRAME,RootOnEnterFrame);
function RootOnEnterFrame (evt:Event) {
if(stage.loaderInfo.bytesLoaded==stage.loaderInfo.bytesTotal){
//anyfunctionname(anynumber);
Math.ceil(1599);
funcdoesnotexists(7);
}
}