-
Warning! swap_depths (3dfa v4)
A while ago I posted on here that I was having trouble with the depth sorting because I couldn't do it per-object. I found what I thought was a solution... by avoiding the built in functions of 3DFA and using Actionscript instead.
element.swap_depths(Z);
Swapping depths by Z is not supported by 3DFA.. THERE IS A REASON.
Example:
----
bob_a=element("box").clone();
bob_b=element("box").clone();
bob_a.swap_depths(2000);
----
believe it or not bob_a now points to bob_b and visa versa. The thing is a variable set to element("box").clone(); it actually sets bob_a to a numeric equivalent of the Z depth (draw order) of a new clone of Box!! NOT A C STYLE POINTER.
-ATT
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
|