Ted Patrick - Demos & MAX @ Adobe Systems


Note: This is the personal blog of Ted Patrick. The opinions and statements voiced here are my own.



AsBroadcaster broadcastMessage arguments

DIGG IT!     0 Comments Published Wednesday, March 24, 2004 at 7:35 AM .

I never needed it until yesterday but AsBroadcaster supports arguments via broadcastMessage(). &

caster = {}
AsBroadcaster.initialize(caster)
a = {message:function (a,b) {trace(a+b)}}
b = {message:function (a,b) {trace(a+b)}}
c = {message:function (a,b) {trace(a+b)}}
caster.addListener(a)
caster.addListener(b)
caster.addListener(c)
caster.broadcastMessage("message", "Hello ", "World!")
caster.broadcastMessage("message", "Argument ", "Support!")

Simply push extra agruments into broadcastMessage and the listeners will catch the messages.

So simple, so nice.

Cheers,

ted ;)

0 Responses to “AsBroadcaster broadcastMessage arguments”

Post a Comment

Where to find me:

Ted on Twitter - @AdobeTed
Ted on Adobe Groups
Ted on LinkedIn
Ted on Facebook
Ted at Adobe


Latest

Lists

Links

Jobs

Flex Jobs
city, state, zip

Archives