Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: Dynamic Variable issue |
From: | Branden Hall |
Date: | Fri, 28 Jan 2000 20:25:25 GMT |
I didn't have a chance to read through all of your code... but something
jumped out at me at once...
you don't want the name of the variable when you are saying this:
Go to and Stop ("_level0:POS"&page)
if page = 1 then what you are saying is...
go to and stop ("_level0:POS1")
instead you want to use:
go to and stop (eval("_level0/:POS"&page))
this will evaluate the variable for you and you will jump to the correct
frame...
-= Branden J. Hall
-= Multimedia Developer/Instructor
-= Fig Leaf Software
----- Original Message -----
From: Wang, Andy <Andy [dot] Wangomnikron [dot] com>
To: <flasherchinwag [dot] com>
Sent: Friday, January 28, 2000 2:46 PM
Subject: FLASH: Dynamic Variable issue
I'm currently consturcting a multipage audio synced tutorial of sorts. I
have made this logic to be used as a template for making more of these
movies. Its setup to hope to the next page at a _currentframe variable if
they've been there. A lot of the variable is setup so that the user cant do
anything until the end of each movie is loaded. This all work fine at this
point.
My biggest issue is that I would like to name a variable name to be dynamic.
I've beeen setting it up so far. Below is my action script in the first
frame. I can setup the if/then statment w/ the right dynmaic variable name,
[ If ("_level0:POS"&page gt "0") ], but i can not set it up correctly for
the goto variable. For the sake of this email I'll call "_level0:POS"&page
as POSx. POSx is set by the pageup button from the next movie. It'll store
the current frame onto _level0:POSx, movies are loaded in layer 3. So when
they come back to this movie again, I want the user to go to the frame
number stored in _level0:POSx. Now here's my question, (thx for staying w/
me all this time... ) is there a way for me to set the GOTO tag to be
dynamic like my If/THEN statements? I've tried:
Go to and Stop ("_level0:POS"&page)
But didnt seem to work. Did I just did something wrong? or I can not set it
up like that?
Anyone have any links, suggestions, FAQ sheet, or ideas?
Thanks in advance.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Action Script
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Set Variable: "page" = "<Current Page>"
Set Variable: "name" = "<Current Page Name w/o -#>"
If (_level0:done lt page)
Set Variable: "_level0:done" = page-1
End If
If (_level0:done ge page)
Set Property ("mask", Visibility) = "0"
End If
If (_level0:restart eq "1")
Play
Else
If (_level0:start ge page)
If ("_level0:POS"&page gt "0") <-- Here
Dynmaic
Go to and Stop (_level0:POSx) <-- Here i
can't set it up right...
Begin Tell Target ("/playpause")
Go to and Stop (2)
End Tell Target
If (_level0:done ge page)
Set Property ("mask", Visibility) = "0"
End If
Else
Go to and Stop ("PageEnd")
End If
Else
Play
End If
End If
If (_level0:start lt page)
Set Variable: "_level0:start" = page
End If
Set Variable: "_level0:restart" = "0"
Andy Wang
Omnikron Systems
Calabasas, CA
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The World's Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California
-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The World’s Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California
-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
Replies
FLASH: Dynamic Variable issue, Wang, Andy
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]