I have found this simple framework works very well for me. 
/*
Riawave - pattern-based best practices for flex 2 development
 */
In the fact that it solves two main problems for me, sharing data between all 
components 
in the application and intercomponent communication in a lightweight form.

  One of the features which I have not (can not!) use is the CustomEvent class 
that I am 
including below.  Whenever I import this into an component that use a event 
property, i 
get the following error:
Access of undefined property ... in package event.


/*
Riawave - pattern-based best practices for flex 2 development
 
Contact:[EMAIL PROTECTED]
Blog: http://www.twmug.com

All rights reserved, 2006 Richtechmedia.com
*/

package event {
        
        import flash.events.Event;
        
        public class CustomEvent extends Event{
                
                public var data:* = "default data";
                public var msg:* = "default msg";
                
                //type, data, arga
                public function CustomEvent(type:String, ... args){
                        
                        super(type, true, true);
                        
                        if(args){
                                this.data = ( args[0] != undefined ) ? args[0] 
: trace("");
                                this.msg = ( args[1] != undefined ) ? args[1] : 
trace("");
                        }
                }
                
        }
}


Thanks
Bruce




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to