[Logo]
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing  
[Register] Register / 
[Login] Login 
MovieClip->ByteArray -> MovieClip - really impossible?  XML
Forum Index » Flash
Author Message
rigondo


Joined: 11/08/2009 15:13:46
Messages: 25
Offline

Asked this question on related forum, painfully found out it's impossible...
Here is a quote, maybe Alternativa fellows do know:
Is it possible to convert MvieClip or Sprite to ByteArray, so I can load swf fine once and clone it in an application, like I do with BitmapData?


this action looks so natural in flash, but no!.. How come, I don't have any idea. Well... what if we try to go deeper inside the plash player, right onto AVM2, maybe it's possible to hack this via, say, some opcode injections? As we all know, AVM2 has tones of undocumented low level commands, for example the one I intencively use - __vmem_set__/__vmem_get__

Please do not recommend me to use BitmapData instead of this... I need mc, and only mc. I cannot generate it on the fly, because swfs are created by 3rd party designers, these swfs certainly have the whole bunch of easings, frames, layers and on.


back2dos


Joined: 26/10/2010 18:42:41
Messages: 2
Offline

Well, if you want to do this automatically, I suppose you can't, but subclassing Sprite/MovieClip and implementing IExternalizable is an option. Of course that won't let you serialize arbitrary DisplayObjects but it may solve your problem.

greetz
back2dos
makc

[Avatar]

Joined: 02/06/2008 12:19:17
Messages: 1704
Offline

rigondo wrote:...so I can load swf fine once and clone it in an application... I need mc, and only mc. I cannot generate it on the fly, because swfs are created by 3rd party designers, these swfs certainly have the whole bunch of easings, frames, layers and on.
you're solving inexisting problem. it takes about 1 second of 3rd party designer time to go and put SomeClassName in movie clip properties, so that you could use new keyword to generate tons of these mc-s. if they cant be arsed, sorry, but you'll have to find other designers.
[WWW]
makc

[Avatar]

Joined: 02/06/2008 12:19:17
Messages: 1704
Offline

waaait a minute, 14/08/2009?
[WWW]
back2dos


Joined: 26/10/2010 18:42:41
Messages: 2
Offline

oops
I could swear this was on page 1
 
Forum Index » Flash
Go to:   
Powered by JForum 2.1.8 © JForum Team