I do this -- > Add a dispatchEvent(Event.COMPLETE) at the end of the
MC's timeline
but compile error I try

dispatchEvent(new Event(Event.COMPLETE))

and

dispatchEvent(new Event(Event.COMPLETE,true))

the both are compile passed but in away3d it cannot detect
Event.COMPLETE

On Oct 27, 3:59 pm, Jensa <[EMAIL PROTECTED]> wrote:
> Hi mindmidday,
> This is a good case for using Events. Here's a short description
> - Add a dispatchEvent(Event.COMPLETE) at the end of the MC's timeline
> - In the Away3D code, create your MC and apply an event listener for
> Event.COMPLETE. Something like
> myMaterialMC.addEventListener(Event.COMPLETE,
> functionToCallWhenComplete);
> - Set up the MovieMaterial as before
>
> When the MovieClip's timeline now reach the final frame, it'll
> dispatch an event that tells your Away3D code to fire the
> "functionToCallWhenComplete" function.
>
> J

Reply via email to