Flash & AS3 info, source, & experiments
Archive for April 24, 2007
ig:Syntax Hiliter review
Apr 24th
Well, it was fairly easy to setup with two minor complications. First, the installation instructions said extract the zip file into the wp-content/plugins directory, upload, and wallah. However, extracted folder is called “iG-Syntax Hiliter” which contains the folder “ig_syntax hiliter plugin.” It is actually this second folder that needs to reside in the plugins folder in order to work. The second hiccup was that when I tried to activate the plugin, it was looking for the “ig_syntax_hilite” folder in the plugins directory as well. Unfortunately this folder was in the plugins/”ig_syntax hiliter plugin” folder so I had to copy it over.
After these changes, everything worked fine. It was easy to use and configure from the wp-admin–>Options screen. Here’s what the code looks like:
[as]package
{
import flash.display.Sprite;
/**
* Test class
*
* @author Nate Chatellier
*/
public class MyTestClass extends Sprite
{
protected var _bMyVariable:Boolean;
/**
* Constructs the MyTestClass object.
*
* @param bMyVariable This is MY variable!
*/
public function MyTestClass(bMyVariable:Boolean)
{
_bMyVariable = bMyVariable;
} // END CONSTRUCTOR
} // END CLASS MyTestClass
} // END PACKAGE[/as]
I’m not the biggest fan with the default look. I may try to play with the settings or I may evaluate different highlighter options depending on whether I feel it’s needed. More soon…
WordPress ActionScript 3 Syntax Highlighter
Apr 24th
So I was going to continue with the AS 3 network programming discussion and realized I don’t yet have any AS3 syntax highlighter setup. I’d hate to make you read code that didn’t look pretty
. I was considering FlashTextEditor, dp.SyntaxHighlighter, or ig:Syntax Hiliter, although I think I’m leaning toward the latter. Any Suggestions?