Finally managed to install this neat syntax highlighter plugin for WordPress. I wanted to do that for some time but didn’t really have the time for that. Now, it’s done… I’ve installed it… See the proof below.
import fl.controls.Button; /** * This is a simple function that creates a button on the stage. Really, there's * nothing interesting about it. */ function foo():void { var newButton:Button = new Button(); this.addChild(newButton); newButton.x = 100; newButton.y = 100; newButton.label = "Hit me!"; newButton.addEventListener(MouseEvent.CLICK, clickHdl); } // This is when you know that the button was clicked. function clickHdl(evtObj:MouseEvent):void { trace("Can you read this ?"); } // Calling the main function. foo();
Maybe I’ll find some time to customize it a little
Hi,
I like reading your blog.
And I hope you will write something about that flash invokes js function to get variable from js function.
Thank you very much indeed.
@june_zhuhui
Thanks a lot. At least I know someone reads my blog :)) .
Anyway, it’s not a bad idea the example with js. The main idea is that you need to use ExternalInterface. I’ll put together an example sometime.
Thank you very much.:)