Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!
all groups > macromedia flash sitedesign > august 2003 >

macromedia flash sitedesign : loading variables into flash


kakatooie
8/6/2003 3:36:56 PM
hi,

i have a website with multiple pages that each contain the same flash menu. the menu movie is organized into 4 main frames with stop actions on them, like so:

one for when all sub-menu topics are closed
one for when one sub-menu is open
one for when a different sub-menu is open
one for when a sub-sub-menu is open

then i have appropriate tweens between those 4 main frames to transition between one state and another. while on a specific page, the user can open and close whatever they want, but each page has a specific state of the menu that it opens to.

(if this isnt clear, check out www.icwares.com/clients/mkb and take a look at it)

what i am doing now to tell the flash movie where to begin is sending it variables in my HTML page like so:

<object ...bla bla
<param name="movie" value="nav.swf?startPosition=3">
bla bla...</object>

this works, but the problem is that the HTML reads nav.swf?startPosition=1 and
nav.swf?startPosition=2 as different so they each load as if they were different movies, and it takes a while for the menu to come up each time you change pages.

is there another way for HTML to (or PHP or something) to tell flash which frame to start on?

thanks a lot for reading this monster post
-sam

AddThis Social Bookmark Button