| Author |
Message |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 14/08/2009 20:48:24
|
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.
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 26/10/2010 21:57:07
|
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
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 27/10/2010 02:29:22
|
makc
![[Avatar]](/images/avatar/bbcbb1e844266f4abdfc29b3d8a64628607fa47e.png)
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.
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 27/10/2010 02:34:44
|
makc
![[Avatar]](/images/avatar/bbcbb1e844266f4abdfc29b3d8a64628607fa47e.png)
Joined: 02/06/2008 12:19:17
Messages: 1704
Offline
|
waaait a minute, 14/08/2009?
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 01/11/2010 16:35:19
|
back2dos
Joined: 26/10/2010 18:42:41
Messages: 2
Offline
|
oops
I could swear this was on page 1
|
|
|
 |
|
|