Groups | Blog | Home
all groups > flash actionscript > february 2007 >

flash actionscript : Changing a movieclip


Wil
2/9/2007 9:57:39 PM
Hi,

If I have already created a movieclip and am currently in the onEnterFrame
method, can I change the clip that that object references in the library?

For example can I do something like this

function onEnterFrame()
{
this = _root.attachMovie( ... )
}

Thanks
Wil

Wil
2/9/2007 11:16:01 PM

[quoted text, click to view]

Just in case anyone ever reads this in google, it is possible to do
something like this, as long as you bind a class to the object, but it's
blooming slow and not something you'd want to do in the middle of a running
swf.

AddThis Social Bookmark Button