dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Please help, I can't do a basic variable....

  1. #1
    banned by dp
    Join Date
    Jun 2002
    Posts
    245

    Please help, I can't do a basic variable....

    I want to have a button that sets a variable. Then, I want to send another movie clip to a certain frame.

    How do I say gotoandStop (myVariable) ?????


    I want to set the variable so that it is set to a number, like, 3,4, 5, etc, and then just have the code say gotoandStop to my variable?


    How would I do this? What would the code look like?

    Thanks.

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    code:

    on(release){
    _global.my_var2 = 3;
    _root.mc_instance's_name.gotoAndPlay(_global.my_va r2);
    }


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