I have a problem here driving me crazy. i have a mixed director/flash environment meaning flash files are embedded in director.
The main interface is made in flash and passes the events to director.
In director there is a parent script instance stored in a global variable controlling the overall navigation.
Now the user makes a selection, the global control object stores the current state of the environment and an animation is played (also a flash file) and director branches to another movie. (play movie x)
To make the transition nearly seamless i made a screenshot of the interface right before the play movie command and this screenshot is visible as a background in the new movie (after the play movie command).
Everything works nicely so far.
The problem occurs when i want to go back.
when i click on the "back to menu" button this code is executed
-- My global master control object g_mc global g_mc g_mc.exitSection()
The exitSection() does the corresponding "play done" and is supposed to reinitialise the main movie
in the startmovie handler of the main movie there is following code to ensure a proper resume:
-- My global master control object g_mc global g_mc
if voidp(g_mc) then -- first run, initialize object -- ... else --coming back, resume session -- ... end if
The problem is that the damn Flash sprite is not reinitalising as supposed to.
Before i leave the main movie i store the current frame of the flash sprite a la:
global g_mc g_mc.p_CurrentFlashFrame = sprite(1).frame
When i come back i want to set the flash sprite to the exact frame where i left it like :
global g_mc
sprite(1).goToFrame(g_mc.p_CurrentFlashFrame )
But the sprite doesn't react properly and just starts playing at frame 1
When i step through the whole process with the debugger and come to point where the frame of the flash sprite is set the current frame of the flash sprite is 0 before the goToFrame command and still 0 after the command
g_mc.p_CurrentFlashFrame is certainly not 0 as i see in the watcher
also manually setting the frame attribute to the expected value does not do the expected thing
I would say it's a bug, does anybody know about these issues?
Ah btw it's Director MX and Flash MX.
Thank you,
Lutz
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
