dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Sending variables to other scenes.

  1. #1
    nobody
    Join Date
    Aug 2002
    Posts
    269
    sending variables to other scenes. I haven't even tryied anything yet. How is that achieved?

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    If you define it as _root.my_variable (or _level0.my_var), it can be set or read with that syntax from anywhere in your movie.

  3. #3
    nobody
    Join Date
    Aug 2002
    Posts
    269
    So even if you define more variables in other scenes, they are all accesible with _root sintax????

  4. #4
    HELP>>>ACTIONSCRIPT DICTIONARY
    Join Date
    Feb 2000
    Location
    In the Present Moment
    Posts
    1,041
    That is correct.

    Scene 1 -

    _root.someVar="something";


    Scene 2 -

    _root.someOtherVar=_root.someVar;
    trace(_root.someOtherVar);

    ------trace output-------
    something

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