A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: global variables.

  1. #1
    Junior Member
    Join Date
    Mar 2000
    Posts
    13

    Post

    how can I access a variable between movies ?
    I created a variable called T in the loading scene and when I try to modify inside a movie I get nothing.
    I tried using /:T but it didnt work, wha rules are there to use objects between movies?
    is there somekind of global variable statement I could use.

  2. #2
    Hack
    Join Date
    Mar 2000
    Location
    Madison, WI
    Posts
    1,753

    Lightbulb

    Create the variable /:T, and it should be accessible from all movies.

    Variables inside movies can be accessed in the same way folders are accessed in urls. you can do it with absolute references, like this:

    _level0/moviea/movieb:variable

    or relative to the movie accessing the variable, where

    moviec:variable

    accesses a variable in a movie instance called moviec which is contained inside the movie you're in, and

    ../../moviea:variable

    backs up two levels from where you are, then goes to movie a and looks for the variable.

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