1 Reply Latest reply on Feb 9, 2007 3:18 PM by Newsgroup_User

    Changing a movieclip

    Level 7
      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


        • 1. Re: Changing a movieclip
          Level 7

          "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.