This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| protected function listenerValid(listener:Function):Boolean | |
| { | |
| var scope:Array = getLexicalScopes(listener); | |
| var scopeXML:XML = flash.utils.describeType(scope[0]); | |
| // No clue on how to get the "name" of the function passed. I had to use a hard coded string of "hearSignal" for this test | |
| var functionDescriptionXML:XML = scopeXML.factory.method.(@name == "hearSignal")[0]; | |
| var params:XMLList = functionDescriptionXML..parameter; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class NoCake | |
| { | |
| private var _clicked:Signal; | |
| private var _data:Object; | |
| public function NoCake(mc:MovieClip, data:Object) | |
| { | |
| _clicked = new Signal(Object); | |
| _data = data; | |
| mc.addEventListener(MouseEvent.CLICK, onClick); |
NewerOlder