Skip to main content
Participant
February 14, 2014
Question

navigate the time line by frame label throw an input

  • February 14, 2014
  • 1 reply
  • 537 views

Hi  ,,,,

trying to navigate the timeline by frame label throw  an input.text ()

each frame label is 10 -12 frames their is 623 labels in one layer

so  4 ex. if the input on  (Text_44)  is "555" it should go to the frame "5555"

instead it goes to the frame 555 which that what it should but

can i find any way to shift frame by label so i can easy navigate by frame label throw cod

__________________________________________________

           var CurrentLabel:String = Text_44.text; ;

           var num11 = String(CurrentLabel );

           var Anum11:String = String(num11) ;

           gotoAndStop (Anum11) ;

__________________________________________________

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
February 14, 2014

can you explain that more clearly?

M__1Author
Participant
February 15, 2014

good to Reply for u

sorry could u tell what you understand

// so i can proceed the shortage of any ُexplanation

Q: has been marked as Helpful

thanks

gotoAndPlay(Frame) <<<< by default

gotoAndPlay(frameLabel) >>>> i need it by Label

if u need it by frameLabel

Any code to shift Frames by frameLabel

______________________________________________

var Num1:String = Text.text

var Num2 = CurrentLabel.Label

var CurrentLabel:Number = Num3

     gotoAndPlay (Num3.Lable) <<<<< is it Possible

______________________________________________

Sorry to the Bad English

kglad
Community Expert
Community Expert
February 15, 2014

if you pass a string to the gotoAndPlay method/function it will look for that label.  so,

gotoAndPlay("frame 223");  // will play the frame labelled "frame 223", not frame 223.

but you should NOT start the string with a number.  ie, this is a problem:

gotoAndPlay("223 frame");  // this may NOT do what you would expect.