I thought I recognized some undocumented-feature goodness in there. :) -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Manuel Saint-Victor Sent: Friday, April 28, 2006 12:19 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Listeners / ASBroadcasters / EventDispatchersconfusion
Oh yeah- Good catch Tom- I think I was reverting to the old school way. Mani On 4/28/06, Tom Lee <[EMAIL PROTECTED]> wrote: > > Just a quick note: it is a common mistake to capitalize the second letter > of > AsBroadcaster. If you spell it "ASBroadcaster", it will fail silently > (according to Flash help docs). > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Manuel > Saint-Victor > Sent: Thursday, April 27, 2006 6:09 PM > To: Flashcoders mailing list > Subject: Re: [Flashcoders] Listeners / ASBroadcasters / Event > Dispatchersconfusion > > ASBroadcaster.initialize(acrobat_mc); > > I think you could add a method on your audience object that does > acrobat_mc.addListener( this); > and a method > onTrickCompleted=function(){ > applaud(); > } > from the acrobat_mc you would call a broadcastMessage("onTrickCompleted"); > > > > The best explanation that I found when I was trying to learn it is here: > http://www.kirupa.com/developer/actionscript/asbroadcaster.htm > > not sure if this is clear but I have to run out of here to beat the > Atlanta > traffic. > > If it's no good I'll follow up when I get home. > > M > > > > > > On 4/27/06, Mark Burvill <[EMAIL PROTECTED]> wrote: > > > > Hi group, > > > > AS2 newbie question here... > > > > I've been going round and round in circles trying to work out the best > > way of doing this, so maybe someone can help me. > > > > Let's say I have a movieclip on the main timeline of my fla called > > acrobat_mc which is an animation of a little man doing a somersault. > > > > I also have a bunch of movieclips of audience members each controlled by > > thier own instance of an AudienceMember object. The AudienceMember > > object contains a method called applaud(). > > > > When the acrobat has finished doing his somersault, I want all the > > instances of audienceMember to have their applaud methods triggered. > > > > Now obviously, I could put a whole bunch of commands on the final frame > > of my somersault animation such as: > > _parent.audienceMember1.applaud(); > > _parent.audienceMember2.applaud(); > > _parent.audienceMember3.applaud(); > > > > etc...etc... > > But what I really want is to just broadcast some message from that frame > > on the acrobat's timeline which all the audience members will listen to > > and automatically applaud. > > > > How should I be doing this? > > Cheers. > > Mark. > > > > > > _______________________________________________ > > Flashcoders@chattyfig.figleaf.com > > To change your subscription options or search the archive: > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > Brought to you by Fig Leaf Software > > Premier Authorized Adobe Consulting and Training > > http://www.figleaf.com > > http://training.figleaf.com > > > _______________________________________________ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > > > _______________________________________________ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com