Page is a not externally linkable
- Code, Content, and Presentation
-- Flash and Shockwave
---- Dynamically changing a flash movie


SethCall - 4:18 am on Mar 13, 2003 (gmt 0)


First of all, everyone should be aware of this: this has caused me unknowable heartache:

I dont believe this is a problem in a non-local situation (client-server).

but say you have your html file and flash movie on your harddrive.

Well, Mozilla takes just a wee bit of time to load the movie, even though its local. But it also doesn't responsd to "PercentLoaded()", which is a problem. Commanding the movie using javascript-to-flash scripting fails (cuz the object in the DOM model isn't there yet, or something like that).

So, before you try to control the flash movie, do a setTimeout before your first function (like StopMovie, or GotoFrame, or whatever you are trying to do).

But, I dont *think* this is an issue in a normal situation: just when you are testing on a local machine...

Back to messing with controlling the width/height and position of the flash movie on the fly :)


Thread source:: http://www.webmasterworld.com/flash/232.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com