Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: Flash 4 Targeting |
From: | Kurt Dommermuth |
Date: | Thu, 12 Oct 2000 13:00:51 +0100 |
At 01:21 PM 10/9/2000 -0400, you wrote:
>hello
>
>
>I have a flash piece with and embedded movie clip is there a way to have a
>button in the movie clip to tell flash to go to a frame or label on the main
>frame line or to another movie clip not embeded with tis one???
>Thanks
>
>
>Justin Barta
>703-917-6251
Hi Justin,
If I understand you correctly, then Yes, you can "target" the main timeline
and other movie clips from anywhere.
I'm certain there must be reasonably good info on this in the manual, but
here is a quick rundown...
(Also, though "tellTarget" will work in Flash 4 and 5 it will probably not
be used in future versions of Flash. It is being deprecated in favor of
"dot syntax")
Anyway....
The following code snippet will tell the main timeline to go to and play
frame 10 from either a button in the main timeline or a button in a movieclip.
**********************
on (release) {
tellTarget ("/") {
gotoAndPlay (10);
}
}
**********************
or if you are targeting a frame label...
**********************
on (release) {
tellTarget ("/") {
gotoAndPlay ("frame_label");
}
}
**********************
to target specific movie clips, add the movie clip's name...(this is using
an absolute path, you could also use a relative path. for more info see
the manual) It is also assuming that the MC "movie_clip" is on the main
timeline (and not nested in another movie clip).
**********************
on (release) {
tellTarget ("/movie_clip") {
gotoAndPlay (10);
}
}
**********************
or to target the main timeline in the "main" movie from another .swf loaded
into a higher level...
**********************
on (release) {
tellTarget (_level0) {
gotoAndPlay (10);
}
}
HTH,
Kurt
http://www.dommermuth-1.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
Replies
FLASH: Flash 4 Targeting, Barta, Justin
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]