Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

navigate the time line by frame label throw an input

New Here ,
Feb 14, 2014 Feb 14, 2014

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) ;

__________________________________________________

TOPICS
ActionScript
495
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 14, 2014 Feb 14, 2014

can you explain that more clearly?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 15, 2014 Feb 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 15, 2014 Feb 15, 2014
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines