Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | FLASH: Tell Target with Variables (again!) |
From: | Brian McHarg |
Date: | Tue, 16 Nov 1999 23:23:56 GMT |
All,
I wonder if you could help with a slight problem, or perhaps suggest a
better way of doing this ...
I have a movie clip (navigation.swf) which is (surprisingly enough!) my
navigation bar. Depending on what is clicked it loads another movie clip
into itself on varying levels. When a user clicks on another button on the
navigation bar, I would like it to first play the out portion of the movie
clip that is loaded, unload the movie, and then load in the new movie, as
selected by the button. The problem I have is that the unload movie command
is getting performed before the leaving movie has had a chance to play its
out portion. The code I am using for this is :
On (Release)
Begin Tell Target (_level1/Movie)
Play
End Tell Target
UnLoad Movie (1)
Load Movie ("movie2.swf",1)
End On
By doing this, I am looking to load all the movie clips into layer 1 when
they are requested and give them all the instance name of movie. This way,
I can Tell Target Movie to Play. As I say, though, this gives me the
problem of the movie unloading before it can fully play its out portion.
A better way to do this (I think) would be to load each movie into a
different layer (this way I don't need to keep unloading and reloading
them). The problem this then gives is that I don't know which movie is
currently visible, and therefore which one to tell to play its outro. Then
I was hit with the inspiration of setting up a variable in the navigation
movie which is basically the level and instance name of the currently visble
movie clip. I could then refer to the clip something like this :
Set Variable: "MovieLevel" = "_level1/Movie"
On (Release)
Begin Tell Target (/:MovieLevel)
Play
End Tell Target
Load Movie ("movie2.swf", 2)
End On
The problem is that this doesn't seem to work. Is there an error in my
code, or is it just not possible? Can anyone suggest an alternative method
for doing this? Also, if I call Load Movie ("movie2.swf",2) and the movie
has been loaded previously (and not removed with an Unload Movie(2)
statement, will this use the loaded version again (ie the user won't have to
wait while it is downloaded)?
TIA
Brian
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Streaming Media WEST '99 Conference & Exhibition
"The Worlds largest Internet Audio & Video Event"
December 7 - 9, San Jose Convention Center, California
Reserve your space today at http://www.streamingmedia.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]