Flasher Archive

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


Subject: RE: FLASH: Buttons inside of Movie Clips
From: Dave Hollinden
Date: Wed, 16 Feb 2000 20:04:29 GMT

Yes, can do this is one movie clip.

In a frame on the timeline of your movie clip, create a numbered sequence of
variables with the names of your labels:

Set Variable: "var1" = "frame label1"
Set Variable: "var2" = "frame label2"
Set Variable: "var3" = "frame label3"
etc.

Put this in your button action:

On (Release)
Go to and Stop (Eval ("var" & Substring (_name, 9, 1 )))
End On

The Substring function takes the name of the movie clip and selects the 9th
character, which is the number you've put at the end of its instance name.
Next you create a string by appending this number onto the end of the string
'var'. The Eval action takes the string you just created and evaluates it
as a variable, returning its value which you have assigned (see above set
variable actions). Your Goto action will then go to that label name. Just
replace "frame label1" with the name of the label you want to go to in
letter_t1, same for "frame label2" and letter_t2, etc.

HTH

Dave Hollinden
Web Design Team Lead
dhollindenatsonicfoundry [dot] com

-----Original Message-----
From: Jason Bouwmeester [jasonatintervisual [dot] com (mailto:jasonatintervisual [dot] com)]
Sent: Wednesday, February 16, 2000 12:21 PM
To: 'flasheratchinwag [dot] com'
Subject: FLASH: Buttons inside of Movie Clips


Hey everyone,

I have a movie clip called "mc: letter T" - inside that movie clip is a
button called "btn: letter T"

Now what I want to happen is this, there are a few "mc: letter T" spread out
but each has a different instance name, i.e. letter_t1, letter_t2 and so
forth. Now inside the mc with instance "letter_t1" I want the button "btn:
letter T" to tell the mc letter_t1 to go to a labelled frame. No problem.
Now when I go into the mc with instance "letter_t2" I want THAT "btn: letter
T" to tell the mc instance letter_t2 to go to a labelled frame. The only
problem is when I apply actions to the button within letter_t2 it changes
the actions in letter_t1. I know why this is, because technically letter_t1
and letter_t2 mc are the same, but I thought that perhaps naming the
instances different that that would work. Is there any way around this
without having to have a separate mc for each letter T that is on the page?

I hope I made some sense and hope someone can help me out =0)

TIA,
Jason

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 helpatchinwag [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 helpatchinwag [dot] com


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