Archive for the 'javascript' Category

August 18th, 2006

A Simple in-swf debugger

When developing a Flash app for the web sometimes it can be painful seeing what's going on as you can't trace things in the browser - not that I'm aware of anyway. If you use FireBug in FireFox when you are developing you can set up a function in javascript that allows you to see what you a tracing using this same method but outputting it to the javascript debugger ...
May 3rd, 2006

Whitespace in Firefox

I have been busy doing stuff with the DOM at work. One thing that continually bugs me is that Firefox seems to find a lot of whitespace and called them textnodes. Obviously when you use firstChild, lastChild, nextSibling or previousSibling and you think that what you are getting from your script should be a div or something other than a textnode this can cause some problems. Internet Explorer seems to ...
April 19th, 2006

External Interface and local connections

External interface is a class in Flash that allows the swf to talk to javascript and vice versa. There a two basic methods: call - you can call a javascript function from the swf addCallback - you can call a actionscript function from javascript So to get it to work first of all you need to import the External Interface class: import flash.external.ExternalInterface; Then you need add your calls and callbacks. For a callback: ExternalInterface.addCallback("actionScriptFunc", this, ...
April 19th, 2006

Bite Size Standards

Bite Size Standards - again another site a bit like A List Apart although more blog like. It looks a bit like an older version A List Apart from perhaps a couple of years ago - anyway I haven't really looked at it properly yet but it looks promising!
January 3rd, 2006

Using prototype.js v1.3.1

Using prototype.js v1.3.1 I have recently started using prototype. Not sure if thats good or not – I like to keep things small and modular but some of the scripting I have done recently has been quite large. When I first came across prototype I tried looking for some documentation and I couldn’t find any. This is the best/only documentation I have come across. This is another Quick ...
November 16th, 2005

Bubbles and propagation

Dicsovered something useful today. One of those things you might scour the internet for and almost find the answer but not quite. Basically if you want to stop propagation of event through the DOM the events cannot be inline. For example to stop an onclick event bubbling up it must be assigned along the lines of: thing.onclick = dosomething; not like this: For more detail about this subject look here:Event orderDOM ExamplesDocument Object Model Events

Subscribe

Who Am I?

No Sweat Apparel.com