Skip to main content
Inspiring
February 9, 2007
Question

Changing a movieclip

  • February 9, 2007
  • 1 reply
  • 149 views
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


This topic has been closed for replies.

1 reply

Inspiring
February 9, 2007

"Wil" <non@non.com> wrote in message
news:eqiqsd$jui$1@forums.macromedia.com...
> 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
>

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.