Ask a Question related to Adobe Flash, Flex & Director, Design and Development.
-
Andre #1
_currentframe... how to get the current frame label?
What actionscript code do I need to get the curreframe's label? I don't
want the frame number... this way I can make my movie player code more
generic, instead of having code like:
if (_currentframe != "100") { .stuff }
I want:
if (_currentframe.getlabel() != "end") { ... stuff }
thanks for the help...
Andre Guest
-
Label TextFrams or any frame
Hi there! I want to label a textframe so I can found it from VB-script. I can label a textframe from a script ,but I cant figure it out how I make... -
goToAndPlay - frame;label
I'm new to FlashMX2004 Pro and to Action Script 2.0, I'm trying to go to a specific frame in the timeline, having problems with this simple code.... -
determining current label?
Hi, Does anyone know if there is a way to determine the current frame label in a Flash movie? Thanks in advance, Kelly -
controling director frame-label with swish?
Hi all... I've just created a menu system using swishMax! The problem is it's destined for a macromedia director movie where the menu will... -
Capture frame label and assign to variable?
Is it possible to capture the label for the current frame so that I can assign it to a variable? My frame labels carry the same name as the... -
Artful #2
Re: _currentframe... how to get the current frame label?
Not possible .. you cannot access the frame labels for a frame or the frame
number for a label in script.
There are some tricks you can do that involve duplicating the timeline and
then doing a gotoAndStop to the label you want to find, then getting the
_currentframe value and the deleting the duplicate (very messy).
But in general, you cannot do that.
Instead, do something like add some code to the frame labelled "end" that
does
endframe = _currentframe
and then you can test if _currentframe == endframe
Artful Guest
-
Jeff North #3
Re: _currentframe... how to get the current frame label?
On Wed, 19 May 2004 10:24:52 -0700, in alt.macromedia.flash "Andre"
<notvalid@hotmail.com> wrote:
AFAIK there is no such function but you could implement your own.>| What actionscript code do I need to get the curreframe's label? I don't
>| want the frame number... this way I can make my movie player code more
>| generic, instead of having code like:
>|
>| if (_currentframe != "100") { .stuff }
>|
>| I want:
>|
>| if (_currentframe.getlabel() != "end") { ... stuff }
>|
>|
>| thanks for the help...
If frame 1 declare your variable:
var FrameLabel = "Frame1";
In each key frame location just set this variable to whatever
FrameLabel = "Frame200";
---------------------------------------------------------------
[email]jnorth@yourpantsbigpond.net.au[/email] : Remove your pants to reply
---------------------------------------------------------------
Jeff North Guest



Reply With Quote

