I missed the beginning of this thread somehow, but FWIW, FlashDevelop
has an Add > New Event menu option in the project pane when you right
click on a package folder which makes creating custom events a snap.
All you really have to do is enter the static event constants you want
the event to have and you're done. When you select this option, it
auto-generates a file with this in it:

package events 
{
        import flash.events.Event;
        
        /**
         * ...
         * @author Jason Merrill
         */
        public class NewEvent extends Event 
        {
                
                public function NewEvent(type:String,
bubbles:Boolean=false, cancelable:Boolean=false) 
                { 
                        super(type, bubbles, cancelable);
                        
                } 
                
                public override function clone():Event 
                { 
                        return new NewEvent(type, bubbles, cancelable);
                } 
                
                public override function toString():String 
                { 
                        return formatToString("NewEvent", "type",
"bubbles", "cancelable", "eventPhase"); 
                }
                
        }
        
}


Jason Merrill 

Bank of  America  Global Learning 
Learning & Performance Solutions

Join the Bank of America Flash Platform Community  and visit our
Instructional Technology Design Blog
(note: these are for Bank of America employees only)




_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to