Flasher Archive

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


Subject: Re: FLASH: Variables in Movie clips Question. (Fixed)
From: John Graham
Date: Fri, 7 Apr 2000 19:19:57 +0100



> John Graham Wrote:
>
> I have a MC, that has several buttons, that tells another movie clip to
> play. But I don't want it to play that movie clip if it is already and the
> stoping point in the scene. What I have for the Buttons is below...
>
> On (Release)
> If (nato eq "go")
> Stop
> Else
> Set Variable: "nato" = "go"
> Begin Tell Target ("/titlehelmets")
> Go to and Play ("ending")
> End Tell Target
> End If
> End On
>
> This then plays the MC titlehelmets, and the last frame has an action that
> starts the next movie if the variable is set. Unfortunatly it never plays
> the next MC.
>
> If (nato eq "go")
> Begin Tell Target ("/natocopy")
> Go to and Play ("start")
> End Tell Target
> End If
> Stop

I figured out that variables in MC's (like separate swf's) keep their own
Variables, and I figured out how to call variables in the main time line,
thus fixing the problem.

On (Release)
If (/:nato eq "go")
Stop
Else
Set Variable: "/:nato" = "go"
Begin Tell Target ("/titlehelmets")
Go to and Play ("ending")
End Tell Target
End If
End On

AND


If (/:nato eq "go")
Begin Tell Target ("/natocopy")
Go to and Play ("start")
End Tell Target
End If
Stop

So all is well now, on to the next problem. I know most probably knew the
answer, figured I'd answer it to save everyone the bandwidth. Thanks to all
those who have been tolerating my elementary level quesitons.

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
  FLASH: Variables in Movie clips Question, John Graham

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