Press "Enter" to skip to content

Posts published in March 2010

Double border in CSS

CSS allows you to add a border to almost all html elements. If you would like a double border you can use CSS like this: style=”border:double”

[Exception… "Could not convert JavaScript" nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)"

What the heck is.. uncaught exception: [Exception… “Could not convert JavaScript argument arg 0 [nsIDOMHTMLDivElement.appendChild]” nsresult: “0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)” location: “JS frame :: PATH_TO_MY_JAVASCRIPT_FILE :: THE_METHOD_NAME :: line #” data: no] For me it was just an appendChild() that was causing the problems. You can always try the innerHTML+= way if…

Add a date to a date in Actionscript 2

I needed to work out a date range according to the date 3weeks away from the current date. After a bit of thinking, I found that it’s actually quite easy to achieve. [code lang=”actionscript”] var theDate:Date = new Date(); dateDay = theDate.getDate(); dateMonth = theDate.getMonth(); dateYear = theDate.getFullYear(); var theDate2:Date…

hitTest and Actionscript2

[code lang=”actionscript”] if (mc.hitTest(_root._xmouse, _root._ymouse, true))) { trace(“hitTest Run”); } [/code]

127.0.0.1:4664 and Google Desktop Search

Recently I checked my website stats and saw I had a few hits from “127.0.0.1:4664” and wondered to myself, what the heck is that? Am I looking at my own site from a localhost? Why am I getting backlinks from my local computer to my site. After searching around a…

Animator vs Animation

[swfobj src=”http://fc01.deviantart.com/fs13/f/2007/077/2/e/Animator_vs__Animation_by_alanbecker.swf” height=”500″ width=”600″] An animation done showing the battle between animator and the animation in a Flash environment. Thanks to Alan Becker for this one.

Embed pound symbol (£) in flash textfield

If you use a dynamic textbox in Flash and you want to embed the British Pound symbol (£) then you will want to also embed the “Latin I” glyphs with your textfield.