This has probably been dealt with but why don't Commands get a reference
to the eventObject as well as the viewRef?

i.e

org.osflash.arp.ControllerTemplate:

theCommand.execute( viewRef, eventObj );

--------------------
org.osflash.arp.CommandTemplate

public function execute ( viewRef, eventObj )
{
        trace ("INFO Command::execute");
        
        // save view reference
        this.viewRef = viewRef;
        this.eventObj = eventObj;
        // primitive operation
        executeOperation();
}

----------------------

then you could dispatch events like:

dispatchEvent ({ type: "sendStat", data: "myFormClick" });


cheers p;)


==========================
Paddy Keane
Flash Developer & Office Juicer
World Archipelago
Eden House
59 Fulham High Street
London SW6 3JJ
Tel: +44 (0)20 7471 8330
Fax: +44 (0)20 7471 8331
Web: http://www.worldarchipelago.com
Map: http://www.worldarcstudio.com/map/
Personal Site: http://www.darklump.co.uk



_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to