Flasher Archive

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

Subject: Re: [flasher] Jumping from scene to scene
From: Muzak
Date: Tue, 30 Jan 2001 11:38:21 -0000

You cannot jump from one point in a MC to a keyframe in another MC if the target MC is not currently in the timeline. Well, not
without making a little detour that is :-)

Have your button set a value for a variable on the main timeline and go to the keyframe in scene 1 where the main MC is in. In that
keyframe, use an action with the value of the variable (set by the button in the scene2 MC) to tell the main mc to go to the
keyframe you want.

button action in scene2, MC 'menu'

on (releases)
tell target ("_level0")
set variable ("/:varLabel", "myLabel")
gotoAndPlay ("main")
end telltarget
end on

where "main" is a keyframe lable that has the 'main' mc in it.

In the keyframe labeled "main"

tell target ("/menu")
gotoAndPlay (/:varLabel)
end tell target

You might have to put that action in an if() statement, in case you do not always want the menu MC do something. In that case make
sure the variable 'varLabel' is empty.

if (/:varLabel ne "")
tell target ("/menu")
gotoAndPlay (/:varLabel)
end telltarget
end if

(don't quote me on the F4 syntax :-)

----- Original Message -----
From: "Joanne Ginnever" <joanneat430am [dot] com>
Subject: [flasher] Jumping from scene to scene

> Hi,
> I have two scenes (scene1 and scene2)... In scene2 there is a mc 'main
> window' and in there is another mc 'menu'. With me so far?
> What I want to be able to do is access a movie clip called 'main' in scene1
> when a user selects an option from 'menu' in scene2...
> Any help would be gratefully received...
> BTW I am using flash 4...
> Cheers
> Joe
> ----------------
> joanneat430am [dot] com

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