A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [F8] Is there a non _global. ?

  1. #1
    Senior Member
    Join Date
    Apr 2007
    Posts
    269

    [F8] Is there a non _global. ?

    Yeah is there a equvilant to a _global. property only so that its not _global.

  2. #2
    Flashmatics silentweed's Avatar
    Join Date
    Mar 2005
    Location
    London, UK
    Posts
    4,875
    well if you put this on a timeline (_root timeline for this example)

    var something:String = "hello";

    then this will not be global in the _global sense.... for e.g if you were within a movieclip on that timeline then to access it from the movieclips timeline you would need to use a relative path _parent.something or absolute path _root.something

    if you define it using the var keyword within a function then it will be a 'local' variable only available within the scope of that function..
    Flashmatics | Flashmatics Library (free downloads)
    -----------------------------------------------------
    Latest Projects:
    The Dead Room | Are You Smarter | Prison Break (Frame A Friend) | Beck's Fusions | The 24 Experience

    -----------------------------------------------------
    Flash Certified Developer

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