A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: _root.goToAndPlay("(label+(/:n))");

  1. #1
    Junior Member
    Join Date
    Jun 2000
    Posts
    2
    Hi all !

    Can this work ...

    on (release) {
    _root.goToAndPlay("(label+(/:n))");
    }

    .. i want to have one button, when pressed, i want to go to a label, depending on a variable ...

    .. or does some have a idea, hov to go to next label and prev. label ?


    thanks

    obro

  2. #2
    Senior Member
    Join Date
    Mar 2001
    Posts
    519
    Yes you can do it:

    on (release) {
    _root.goToAndPlay("label"+/:n);
    }

    should do it... but I don't entirely get F4 notation to be honest so I won't swear by it here I think you're using the 'n' variable which is on the root in which case

    on (release) {
    _root.goToAndPlay("label"+n);
    }

    Would work

    Andy


  3. #3
    Junior Member
    Join Date
    Jun 2000
    Posts
    2
    yes, that works!

    Thanks Andy


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center