The Externaliser – minus the Arnie accent, and bad acting
As promised in yesterdays post, I have just re-factored a quick util class I made the other day that uses metadata in classes to expose methods to the external interface. It has been scaled back as I had a lot of guff in there and wanted to keep it really simple to understand. There are comments on what could be made better, so please feel free to use abuse the script
What does it do? Well using flash.utils.describeType it looks over an object for any methods in that class marked [Externalise (description="blah")] and accordingly exposes that method to the javascript. It also stores (albeit not efficiently) what is currently exposed and allows a 3rd party developer to call listExternalMethods() and see what has been exposed.
Just a quick helper class that made my previous hate of the -keep-as3-metadata compiler switch rear its ugly head again…..
OH NOTE: add the -keep-as3-metadata+=Externalise to your project that uses the Externaliser (grrrrrrrR)
EXAMPLE (view source enabled)

thanks , you’re strong man ,so perfect work ! thanks your demo and source .
Does that generally operate
nono hair removal reviews