So far I have come up with 2 methods to achieving this

  1. is to use the Tween class to animate my mask and use the .onMotionFinished event
  2. to create a class that extends the movie clip class which dispatches an event using the EventDispatcher Class

 

are there any other alternatives?

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bjorn Schultheiss
Sent: Tuesday, 12 April 2005 5:44 PM
To: Flash Developers List
Subject: [fugli] dispatch event from library movieclip frame

 

Hi guys,

 

I have a class LocationDisplay, in it I attach a library movieclip that contains a mask animation to the stage using attachMovie()

 

I want to update the textFields in that movieClip when a menu item is pressed, though first I want to play the hide animation in the movieClip.

 

What I need is some way I can notify the class when the animation has reached a certain frame so that I can update its textField.

 

So far I've got something like this,

 

//implement menuModelListener Interface

public function onHandleMenuEvent(e:MenuModelEvent):Void {

      locBar_mc.gotoAndPlay("Hide");

     

      //locBar_mc.tier1_txt.text = catMenuData[e.getMenuID].LABEL;

}

 

The hide animation is about 20 frames long so I need a way to notify the

class that the animation has finished so that I can update its textField.

 

Thanks

Bjorn Schultheiss

 

---
You are currently subscribed to fugli as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/

---
You are currently subscribed to fugli as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to