|
-
Senior Member
Pointers
Say I create 2 sprites.
var s1:Sprite = new Sprite();
var s2:Sprite;
Then I set s2 = s1. Now, when I alter any properties of either s1 or s2, the property of both instances changes.
So what is s2? s1 is a sprite instance, is s2 also a sprite instance or simply a pointer to the sprite instance s1?
Thanks!
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
|