Excellent free HTML Editor for Eclipse

4 03 2009

Doing some AS3 projects in FDT (Eclipse plug in) with FlashVars & SWFAddress and it’s so good being able to pop into a decent HTML Editor in the same IDE. It’s just as good as EditPlus & free. Lovely. Just drop the .jar in your plugins directory. Details and Sourceforge link here 

Flash Thunderbolt & Firebug = best debugger ever

23 10 2008

The Thunderbolt tool is absolutely amazing for runtime debugging of AS2 and AS3 from Flash or Flex and the memory snapshot thing is too cool for school. I love that uses Firebug too as I’ve been using that for DHTML stuff for ages.

Flash Thunderbolt

There is an AIR app version too, although it doesn’t sound very Windows friendly… for more info check this out


Copy to clipboard from Flash (a lesson)

14 04 2008

You may well have appeared at my humble blog hunting for a method of copying data to the clipboard directly from Flash as I have had one of these posted for a while. The method I wrote uses Actionscript to call a JavaScript that writes the content you wish to copy into an HTML text input field in a hidden div via the DOM model and then uses JavaScript to copy it to the System clip. I have been using this method on production sites for ~6 months and it works great but as it turns is totally unnecessary ;) The following barely documented function could have saved me (and you) the whole run around…

[code lang="actionscript"]

this.createTextField("in_txt", this.getNextHighestDepth(), 10, 10, 160, 120);
in_txt.text = "lorum ipsum...";


I guess sometimes as a Developer you just have to accept that you did things in the wrong way (although in my defence it works) but rather than hush it up I figured this is a lesson learned that I may as well share ;)

Who knows, someone may find my massively over the top JS Dom Model access version useful for something one day in circumstances where JS can do something Flash can’t?…

Copy Embed Tag to Clipboard from Flash

3 12 2007

Just finished an AS2 Flash cross browser “Copy to clipboard from Flash” solution (copies a MySpace pastable tag). You can see the final widget clicking through on my MySpace page. Here’s the tag generator site featuring said copy to clipboard functionality that lets you copy the code for this widget:

Respect to Jeffothy for the DHTML solution of using encodeURIComponent() I updated this somewhat and made it write the MySpace tag to a hidden div. To get a clearer view of what’s going on please feel free to have a nose at my test version:


Here’s the (mega simple) AS2 :

[code lang="actionscript"]

copyToClip_btn.onRelease = function() {


Where _root.copyURL is a variable appended via a query string (as MySpace doesn’t allow FlashVars) e.g.


I’m sure those of you savvy enough to do a view source will benefit enormously from my JS/CSS code ;) If this helps you in any way please distribute this link via any of the provided Bookmarking tools; thanks!

Enjoy ;)

Flash getURL clickthrough workaround for MySpace

3 12 2007

Found a way to get around the fact that you can’t use getURL to do clickthroughs from Flash embedded in MySpace. (They banned using getURL due to last years Flash injected XSS “Samy is my friend” worm crippling many a benign Flash app)

The way round it is to position images in the places where you want the clickthroughs. Now this sounds easy but there’s no documentation, you can’t use DHTML layers or JS or full CSS layouts (have to use tables), theres a million CSS bits you have to override and the editor does a search and replace on certain strings when you save the tag in MySpace and sometimes treats whitespace as line breaks – very frustrating!

Finally nailed it – the London Marathon Countdown Widget app I built is hosted on my MySpace http://www.myspace.com/lordrobertmc, clicks through ok and is tested in IE7, Firefox & Safari. Here’s the code if you’d like to benefit from my painful experience ;)

N.B I also discovered that you can’t use FlashVars to embed variables only ? querystring. Bah

Here’s what your widget will look like:

Here’s the code:

<style type=”text/css”> table.adiflmw { width: 396px; height: 250px; border-width: 0px 0px 0px 0px; border-spacing: 0px; border-style: none none none none; border-color: white white white white; background-color: white; } table.adiflmw td { border-width: 0px 0px 0px 0px; padding: 0px 0px 0px 0px; border-style: none none none none; border-color: white white white white; background-color: white; -moz-border-radius: 0px 0px 0px 0px; } a:link, a:active, a:visited { color:#ffffff; } </style> <table class=”adiflmw”> <tr> <td valign=”top” align=”left”> <span> <a href=”http://adidaswidgets.glueserv.co.uk/v9/” id=”adiCt1″><img src=”http://adidaswidgets.glueserv.co.uk/v9/adiflm396x38.jpg” border = “none” /></a><br><object type=”application/x-shockwave-flash” allowScriptAccess=”never” allowNetworking=”internal” height=”130 name=” width=”396″ align=”middle” data=”http://adidaswidgets.glueserv.co.uk/v9/Clock02.swf?spURL=http://www.justgiving.com/gorillarob&getCountDownLink=http://adidaswidgets.glueserv.co.uk/v9/”> <param name=”allowScriptAccess” value=”never” /> <param name=”allowNetworking” value=”internal” /> <param name=”movie” value=”http://adidaswidgets.glueserv.co.uk/v9/Clock02.swf?spURL=http://www.justgiving.com/gorillarob&getCountDownLink=http://adidaswidgets.glueserv.co.uk/v9/” /> <param name=”quality” value=”high” /> <param name=”wmode” value=”opaque” /> <param name=”bgcolor” value=”#ffffff” /> </object> <br> <a href=”http://www.justgiving.com/gorillarob” id=”adiCt2″><img src=”http://adidaswidgets.glueserv.co.uk/v9/adiflm396x82.jpg” border = “none” /></a> </span> </td> </tr> </table>

N.B You’ll have to manually swap those curly brackets for standard double quotes as Code Snippet doesn’t like this block for some reason :(

If this helps you in any way please distribute this link via any of the provided Bookmarking tools; thanks!

Enjoy ;)