(Please note that I changed your closing tag below. It will cause headaches if you omit that) It looks like all you need to do is add an ID to your custom class: com id="myCustomClass"> :Once it is a publicly accessible variable, it can be used in public, protected, internal, namespace, and private functions! If you don't like this idea and your custom class is a DisplayObject, you can also do this: com:MyAS3DocClass name="myCustomClass then, in the script tag: public function call_from_outside():void { MyAS3DocClass(getChildByName("myCustomClass")).hitme(); //other stuff }.
(Please note that I changed your closing tag below. It will cause headaches if you omit that). It looks like all you need to do is add an ID to your custom class: And then you can simply access that value as a variable name inside the script tag: public function call_from_outside():void { myCustomClass.hitme(); //other stuff } AND HERE'S WHY!
When you assign an ID to a tag in an MXML file, it is the same thing as adding public var : to an AS file (of course that's done by the compiler, so you shouldn't need to care). Once you assign an ID to MyAS3DocClass, it is instantly a publicly accessible variable. Once it is a publicly accessible variable, it can be used in public, protected, internal, namespace, and private functions!
If you don't like this idea and your custom class is a DisplayObject, you can also do this: then, in the script tag: public function call_from_outside():void { MyAS3DocClass(getChildByName("myCustomClass")).hitme(); //other stuff }.
Cool. , yeah it's that simple lol cheers bud – aesphere Jun 16 at 16:20.
When you assign an ID to a tag in an MXML file, it is the same thing as adding public var : to an AS file (of course that's done by the compiler, so you shouldn't need to care). Once you assign an ID to MyAS3DocClass, it is instantly a publicly accessible variable. Once it is a publicly accessible variable, it can be used in public, protected, internal, namespace, and private functions!
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.