Copying objects bytearray vs for in loop



4 Comments

Share




I was curious, which of those would be quicker in the “copying objects” battle — bytearray / for in loop.
Foreseeing your possible thoughts, “yes” i do realize that those methods actually differ (bytearray copies the entire object, uses describeType etc), but still curiosity takes over :)
And, frankly, i was surprized with the results. See it for yourself.

Read more

duplicateMovieClip() is back to as3



5 Comments

Share






I noticed that lots of people (as3-developers) ask on forums/blogs
How do i create a copy of a MovieClip after loading it?.
And they usually get an answer like
In as3 you can only instanciate, no copy method available

So, to demolish those myths, i’ve decided to create a small util class for duplicating Loaders through binary raw data.

Read more