A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Scene control with variables

  1. #1
    Senior Member
    Join Date
    Jul 2000
    I want to know if this can mbe done.
    Can i set a variable like :

    numPics = 5;

    and then do somehthing like:

    gotoAndPlay (loadimage(numPics), 1);

    to get it to go to and play scene loadimage5 frame 1?

    Could some one help me out with this?

  2. #2
    United States Presidential Hopeful in 2028
    Join Date
    Dec 2000
    You can pass variables between movies in various levels as long as you target the level so Flash knows where to look (i.e. _level0.numPics=5).

    As long as Flash knows where the variable is then you should be able to use it in any way you could inside of the same movie.

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