Im looking to send command strings to a flash app, to execute debug commands. Doing this through Firebugs Console/Command-line looks like the simplest way to get this up and running.
At the moment I can log to the firebug console from the flash app by calling out to console using the ExternalInterface. And also send the flash app commands by calling a command method added by the ExternalInterface.addCallback method. So at the moment in the html file that contains the flash app I have some Javascript:
$(document).ready(function(){
app = $("#${application}").get(0)
})
and at the firebug commandline I can type:
app.command('screen.ruler.show')
And the flash app receives this. So this is all fine, but I would like to make the app.command call as short as possible.
So I would like assign the app.command function to a single character function in the style of jqueries $ method. So how would I go about implementing a function $$$?
$$$('screen/ruler.show')