Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Senior Coder jerry62704's Avatar
    Join Date
    Oct 2007
    Location
    Springfield, IL
    Posts
    1,100
    Thanks
    13
    Thanked 87 Times in 87 Posts

    Question Questions - trace()

    I have two questions. One is why I get an error on a trace. The other will be in a different thread. Here is the code:
    public var tempArray:Array = FSL.getEnglishYesNo();
    trace(tempArray);
    "FSL" is a class that has all the language properties. There is a "spanishYesNo" to match the "englishYesNo" for example. Here is the error that the trace statement has:
    1120: Access of undefined property tempArray.
    It doesn't make much sense to me that the immediately preceding statement isn't visible - the variable to be traced is defined in the immediately prior statement. The error also occurs if you have literals put into the array.

    This is a compile time error found by doing a "project" "clean".
    .
    .
    ...and gladly would he learn and gladly teach

    Visit www.LiberalsWin.com for humor and the unique Bush/Obama Approval Polls

  • #2
    ad7
    ad7 is offline
    New to the CF scene
    Join Date
    Oct 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Adding the trace statement inside a function will make it work.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •