Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Print
Author Topic: Any samples of dynamic notification handling?  (Read 6991 times)
justSteve
Courseware Beta
Sr. Member
***
Posts: 55


View Profile Email
« on: April 06, 2008, 04:48:45 »

The HelloFlash demo shows a dynamic mediator being registered. Is there anything listing how to handle a dynamically named body property being passed to a notification handler?

A proxy constructor that looks like
:
public function AssetProxy( swf2Load:String ):void {
//rename name vars
NAME = swf2Load + "Proxy";
SRNAME = swf2Load + "SRProxy";

this.swf2Load = swf2Load;

super( NAME );
this.load();
}

Would like to send the value of 'swf2Load' as the body payload of a sendNotification.

thx
--steve...
Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« Reply #1 on: April 07, 2008, 12:52:06 »

:
sendNotification(NOTE_NAME, this.swf2Load)-=Cliff>
Logged
Pages: [1]
Print