Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: Can _currentframe reference a Label?
From: Nathan Dicken
Date: Wed, 12 Apr 2000 21:12:19 +0100

John,

One thing that you could do is create another layer with "framelabel"
variables on those frames that you need. Esentially, once the playhead
enters the frame "stopdesign", set a variable like this:

Set Variable: "frameLabel" = "stopdesign"

Then, in the other script call this...

If (frameLabel eq "stopdesign")
Stop
Else
Set Variable: "button" = "startdesign"
Go to Next Frame
End If


In the above example, the frameLabel variable would always reference the
current frame that the playhead is on. There really isn't any way to get
the frame label name using the _currentFrame property. Another way that
would work in which you could use _currentFrame is by setting an array of
variables at the beginning of your movie such as the following... This
would take more maintainence as you would have to change the contents of
this script as you change your movie.

Set Variable: "label1" = "label for frame 1"
Set Variable: "label2" = "label for frame 2"
Set Variable: "label3" = "label for frame 3"
and so on...
Set Variable: "frame32" = "stopdesign"

Then, once you need to access the frame's label, you could just use this...

If (eval("label"&_currentFrame) eq "stopdesign")
Stop
Else
Set Variable: "button" = "startdesign"
Go to Next Frame
End If

Hope that helps...

Nathan Dicken
Fusionary Media




>The subject covers it fairly well.
>
>Right now I have
>
>If (_currentframe = 32)
>
> Stop
>
>Else
>
> Set Variable: "button" = "startdesign"
>
> Go to Next Frame
>
>End If
>
>
>
>the Label on frame 32 is stopdesign
>Ideally I would like to reference the label rather than the number, but I am
>unable to get it to work. I am using this... But it's not working.
>
>
>If (_currentframe eq "stopdesign")
>
> Stop
>
>Else
>
> Set Variable: "button" = "startdesign"
>
> Go to Next Frame
>
>End If
>
>
>any Suggestions?
>
>John G


flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the last 100 messages from the flasher list NOW
http://www.chinwag.com/flasher/last100.shtml

Flash books http://www.chinwag.com/flasher/books.shtml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  Re: FLASH: Can _currentframe reference a, John Graham

Replies
  Re: FLASH: JPEG, Marc Hoffman, Poison Dart
  FLASH: Can _currentframe reference a Lab, John Graham

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]