root/trunk/RC1/src/com/gnstudio/nabiro/mvp/instructions/InstructionEvent.as

Revision 58, 2.2 KB (checked in by ivan.varga, 10 months ago)

- Removed Alessandro and Fabio from all classes.

Line 
1package com.gnstudio.nabiro.mvp.instructions
2{
3        /**
4         *
5         * GNstudio nabiro
6         * =====================================================================
7         * Copyright(c) 2009
8         * http://www.gnstudio.com
9         *
10         *
11         *
12         * This file is part of the nabiro flash platform framework
13         *
14         *
15         * nabiro is free software; you can redistribute it and/or modify
16         * it under the terms of the GNU Lesser General Public License as published by
17         * the Free Software Foundation; either version 3 of the License, or
18         * at your option) any later version.
19         *
20         * nabiro is distributed in the hope that it will be useful,
21         * but WITHOUT ANY WARRANTY; without even the implied warranty of
22         * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23         * GNU General Public License for more details.
24         *
25         * You should have received a copy of the GNU Lesser General Public License
26         * along with Intelligere SCS; if not, write to the Free Software
27         * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
28         * =====================================================================
29         *
30         *
31         *
32         *   @package  nabiro
33         *
34         *   @version  0.9
35         *   @idea maker                        Giorgio Natili [ g.natili@gnstudio.com ]
36         *   @author                                    Giorgio Natili [ g.natili@gnstudio.com ]
37         *   
38         *       
39         */
40       
41        import flash.events.Event;
42       
43        public class InstructionEvent extends Event{
44               
45                public static const PERFORM_ISNTRUCTION:String = "onPerformInstruction";
46                protected var base:String = "";
47               
48                public var toPerform:String;
49                public var parameters:*;
50                public var isPreventable:Boolean;
51               
52                public function InstructionEvent(instruction:String, params:* = null, preventable:Boolean = false, bubbles:Boolean=true, cancelable:Boolean=false){
53               
54                        super(PERFORM_ISNTRUCTION, bubbles, cancelable);
55                       
56                        toPerform = base + instruction;
57                        parameters = params;
58                        isPreventable = preventable;
59               
60                }
61               
62                public override function clone():Event {
63                       
64                        return new InstructionEvent(toPerform, parameters, isPreventable);
65               
66                }
67
68                public override function toString():String {
69                       
70                        return formatToString("InstructionEvent", "type", "bubbles", "cancelable", "eventPhase", "toPerform", "parameters");
71               
72                }
73
74        }
75}
Note: See TracBrowser for help on using the browser.

1.1.2-pro © 2008-2009 agile42 all rights reserved (this page was served in: 0.31000 sec.)