Jump to content


Photo

AS3 null object reference problem <[SOLVED]>


  • Please log in to reply
No replies to this topic

#1 flamereaper

flamereaper

    Young Padawan

  • Members
  • Pip
  • 65 posts
  • Gender:Male
  • Location:UK

Posted 05 September 2008 - 11:34 PM

Got an AS3 problem im having. The project is a sort of project manager / list of projects application using flash cs3 and AIR. the application loads in a text file, breaks it up into the projects and displays them as expandable and collapsable tabs. (screenshot to help explain : http://img527.images...pscreenxx4.jpg)

Now, naturaly i need to provide the ability to add projects to this list. So i have a small screen open up that you add info into and add it. This semi works, the new project tab is added to the list, and the data appears to show up in the text file just fine. The problem comes when i try to expand/collapse the tab, whever i attempt to access the properties of the tab object, i get the error:

TypeError: Error #1009: Cannot access a property or method of a null object reference.

Now ive tried everything i can think of, and im stuck, the code used to create the tabs when loading and when adding new ones are identicle (down to i is replaced with tmpID) the code can be found here. http://pastebin.com/m433923c1


if anyone has any insight, id really appreciate it, this ones had me stumped for a few days now.

Edited by flamereaper, 06 September 2008 - 04:56 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users