A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Trace question

  1. #1
    Junior Member
    Join Date
    Oct 2008
    Posts
    13

    Trace question

    hello!
    I was wondering how can I trace variable defined in other layer than my trace function is located. Do I need to specify path?. I'm getting "Access of undefined propery" error all the time. Thanks in advance!

  2. #2
    Junior Member
    Join Date
    Sep 2008
    Location
    CleVegas (aka Cleveland), TN
    Posts
    11
    Not entirely sure what exactly you need, but using "_root." before the variable name helps a lot in calling variables from the actions layer.

    example:
    Code:
    var a = 1;
    
    if (_root.a == 1) {
    
    trace (_root.a);
    
    }
    Or if you're calling from a root .swf file then you need to use the "_level<insert number>." code

  3. #3
    Junior Member
    Join Date
    Oct 2008
    Posts
    13
    Thank U ! it helped ineed

  4. #4
    Senior Member
    Join Date
    Oct 2008
    Posts
    179
    Their is no _root in as3.

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