Flasher Archive

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


Subject: Re: FLASH: Using an instance name as a var.
From: Shaun Brazier
Date: Thu, 18 May 2000 13:40:23 +0100

Thank you!

Regards

Shaun Brazier
----- Original Message -----
From: Torbj�rn Caspersen <casperatpro-con [dot] no>
To: <flasheratchinwag [dot] com>
Sent: Thursday, May 18, 2000 2:20 PM
Subject: Re: FLASH: Using an instance name as a var.





On release set variable /:identify = _name
Tell target /mc, goto /:identify


That will tell the mc "mc" on the main timeline to goto a label equal to
the name of the instance in which this action script is run.
Ie.
The script in in an instance named "this_mc", the script will tell "mc" to
goto the frame "this_mc" - (which it will, assuming it exists)


Please respond to flasheratchinwag [dot] com
To: flasheratchinwag [dot] com
cc: (bcc: Torbj�rn Caspersen/Pro_Contra)

Subject: Re: FLASH: Using an instance name as a var.



Could you just run through that again please. I am a bit slow when it
comes
to correct syntax etc.

Thank you

Regards

Shaun Brazier
----- Original Message -----
From: Torbj�rn Caspersen <casperatpro-con [dot] no>
To: <flasheratchinwag [dot] com>
Sent: Thursday, May 18, 2000 12:34 PM
Subject: Re: FLASH: Using an instance name as a var.





Yes, this can be done.

If you want to use the name of the instance you're currently in, use
"_name" - a system variable that is the instance name.


Is it possible to target an MC with a variable.

Like: On release set variable /:identify = name
Tell target /:identify, goto frame/label

yup.

goto (choose expression) = name (as "=", not "abc")

And you have to target the variable from the point of the told target, not
from the point of the "tell target" script.
The code above should work.


Please respond to flasheratchinwag [dot] com
To: flasheratchinwag [dot] com
cc: (bcc: Torbj�rn Caspersen/Pro_Contra)

Subject: FLASH: Using an instance name as a var.



Also.... (sorry!)

Could you do this inside an MC of which there are many on the main
timeline:
On Release, set variable /:identify = name of the instance that the button
is in?

As always, TIA

Best Regards

Shaun Brazier
Internet Developer
ADV Internet Solutions Ltd
(Cambridge Office)

shaunatadvserver [dot] com
www.advis.co.uk
(01353) 722 588 - Office
(07760) 225 646 - Mobile





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






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





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






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





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: Using an instance name as a v, Torbj�rn Caspersen

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