PDA

View Full Version : How link frame to a movieclip label??


MecaDesigns
01-30-2007, 03:59 PM
ppl i'm getting sick...

i have in a scene and the main timeline right..and in the first frame i've got a stop and a movieclip(a rotative menu with labels) .. and the rest is things with buttons... and i just want is that a button(in the main timeline) when press is going to a frame label INSIDE the MovieClip (to a label inside MC's timeline)!! and i'm going crazy!!

help me please!! :rolleyes:

the binary
01-30-2007, 04:24 PM
should look something like that

yourButton.onRelease = function()
{
yourMc.gotoAndStop('labelInside');
// or
yourMc.gotoAndPlay('labelInside');
}


salute

MecaDesigns
01-30-2007, 04:35 PM
it doesnt work!! i dont understand why..

Shows an error..this:

**Error** Scene=tdscock, layer=but voltar, frame=2:Line 1: Statement must appear within on handler
lol.onRelease = function()

Total ActionScript Errors: 1 Reported Errors: 1


and i have put like this:

lol.onRelease = function()
{
roda.gotoAndStop('beb1');
}

(the "lol" is the name instance os my button..and "roda" its the instance name of my mc)

why it doesn't work??

the binary
01-30-2007, 05:00 PM
put this code on the main-timeline not on the symbol itself..