|
-
Declaring your class level variables where you have there is correct. But, unless you actually need nav to be non-null from the beginning, you can just declare it and not instantiate it. When you set it in the doneNav function, you throw away whatever was there to begin with. If you never used that, then you didn't need it.
Code:
private var nav:Sprite;
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|