A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: asBroadcaster not in as2???

  1. #1
    Danny Gomez Creations ® cosmiceye's Avatar
    Join Date
    Mar 2002
    Location
    under a palmtree in Jamaica waiting for psytopia 2005 to begin
    Posts
    982

    asBroadcaster not in as2???

    is there anyone who has found a way to make asBroadcaster work in as2? a lot of my work is depending on the use of asBroadcaster, but in as2 its like it never existed. Cant find anything about asBroadcaster in the help files (oh Im sooo surprised)
    ..:: P S Y T O P I A 2 0 0 5 :::..
    . . . view the psytopia reels _____RIVEND REEL | GOMEZ REEL_____ . . . . . . . . . . .

  2. #2
    Developer
    Join Date
    Sep 2001
    Location
    The Bluegrass State Will Flash For Food ™
    Posts
    3,789
    There is some new broadcaster something... I'm not at home so I can't check it out until later.

  3. #3
    Danny Gomez Creations ® cosmiceye's Avatar
    Join Date
    Mar 2002
    Location
    under a palmtree in Jamaica waiting for psytopia 2005 to begin
    Posts
    982

    WTF!?!


    code:

    //AsBroadcaster.as
    intrinsic class AsBroadcaster {
    static function initialize(o:Object);
    static function broadcastMessage(msg:String);
    static function addListener();
    static function removeListener();
    }


    but what forces of evil do you have to use in order to make the damn thing in action????
    ..:: P S Y T O P I A 2 0 0 5 :::..
    . . . view the psytopia reels _____RIVEND REEL | GOMEZ REEL_____ . . . . . . . . . . .

  4. #4
    Developer
    Join Date
    Sep 2001
    Location
    The Bluegrass State Will Flash For Food ™
    Posts
    3,789
    code:
    import mx.transitions.BroadcasterMX;
    a = new Object();
    Key.addListener(a);
    a.onKeyDown = function() {
    if (Key.isDown(Key.SPACE)) {
    this.broadcastMessage("onSpace");
    }
    };
    BroadcasterMX.initialize(a);
    b = new Object();
    a.addListener(b);
    b.onSpace = function() {
    trace("b received a space!");
    };


  5. #5
    Developer
    Join Date
    Sep 2001
    Location
    The Bluegrass State Will Flash For Food ™
    Posts
    3,789
    And here is the new thing I was talking about

    <drive>:\Macromedia\Flash MX 2004\en\First Run\Classes\mx\events\EventDispatcher.as

    Look in there for the stuff it does; I don't have time to test it now...

    code:
    import mx.events.EventDispatcher;


  6. #6
    Danny Gomez Creations ® cosmiceye's Avatar
    Join Date
    Mar 2002
    Location
    under a palmtree in Jamaica waiting for psytopia 2005 to begin
    Posts
    982
    tested it yet?
    BTW GSOLO theres some ppl needing your fmx04 devskills @ here
    ..:: P S Y T O P I A 2 0 0 5 :::..
    . . . view the psytopia reels _____RIVEND REEL | GOMEZ REEL_____ . . . . . . . . . . .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center