Groups | Blog | Home
all groups > macromedia mobile and devices flashlite > january 2005 >

macromedia mobile and devices flashlite : goto a frame in level0


katewalker
1/21/2005 8:50:56 AM
I have an animation with buttons embedded in clip.
When I select a buttons, I want to go to the frame "menu1" in the main (root)
scene.
I write this :
-------------------------------------------------------------
on (press, keyPress "<Enter>" ) {
gotoAndStop("_level0/menu1");
}
-------------------------------------------------------------
or this
------------------------------------------------------------
on (press, keyPress "<Enter>" ) {
gotoAndStop("_level0.menu1");
}
-------------------------------------------------------------

But it's wrong

Can you help me ?
vgslag
1/21/2005 9:13:28 AM
You need something like:

on (press, keyPress "<Enter>" ) {
tellTarget("/") {
gotoAndStop("menu1");
}
}

on (press, keyPress "<Enter>" ) {
tellTarget("/") {
gotoAndStop("menu1");
}
}
katewalker
1/21/2005 9:38:15 AM
Daniel Portilla
1/21/2005 12:52:08 PM
Hello, another method is:

on (press, keyPress "<Enter>" ) {
gotoAndStop("/:menu1");
}

The / is the symbol of root, and the : is the mark of frame.

It´s a shorter code than the vgslag's code, but you can choose any of the
two methods.

Bye

katewalker
1/22/2005 2:51:33 PM
to go to a frame in a clip in an other level, is it good ?

on (press, keyPress "<Enter>" ) {
gotoAndStop("/myClip0/myClip1/:menu1");
Communic8
1/22/2005 4:49:25 PM
Hi,

if myClip0 and myClip1 are Movie clips, do this way:

on (press, keyPress "<Enter>" ) {
tellTarget("("/myClip0/myClip1")
gotoAndStop("menu1");
}

If you want more information about the synthax , read this article by Bill
Perry at:
http://www.macromedia.com/devnet/devices/articles/as_flashlite_print.html

It will answer all your questions and doubts.

Ciao

Andrea
Team Macromedia Member - Mobile and Device
AddThis Social Bookmark Button