Archive for June, 2008

ActionScript 3.0 : Buttons and Drag & Drop

event_trigger In ActionScript 3.0, buttons and interactive movieclip stuff is scripted differently. To understand in depth about how ActionScript 3.0 works for interactivity see the diagram beside.

Diagram besides show, a pin with a tag attached to it. In Action Script 3.0, all events such as mouse clicks, mouse move, mouse over, keyboard inputs, even movieclip’s frame movement is controlled using event listeners. You can attached this event listeners to any movieClip, components, stage or sprites to add interactivity features to it. Just like how the pin works…just attach the pin to the object.

Each event listeners has a trigger function. Trigger function is a script which triggers because of the specific event for example, a mouse click. This means if you attached an event listener for mouse click on a button, the trigger function itself will be the script for the button. This is how you make button scripts in Action Script 3.0. Similar to our old on(Press) function.

Read the rest of this entry »

Aptana IDE - AJAX/Javascript IDE

aptana_studio_black_250x Have you ever tried picturing an IDE that support scripting complex javascript with intellisense and code complete that provide rich details about DOM and other goodies?

Well you can stop dreaming about it, and start getting one for FREE. Introducing Aptana IDE. A open-source IDE available for downloads which works in multiple platforms including Windows, MAC and Linux.

Read the rest of this entry »

ActionScript 3.0 : DocumentClass in Plain English

Flashcs3 This tutorial is for those that want to jump into the Action Script 3.0 bandwagon but don’t know where to begin with. Let’s begin with writing a document class some people refer it as the “package thingy”.

Download the tutorial materials here. Unzip to your desktop and open the .as (ActionScript) and .fla file. Note: These are flash CS3 files so, best to have CS3 with you. Take a look at the picture beside you, now in the future, you will be writing most of the Action Script externally, rather than rely heavily inside the fla.

There’s a few reason why Adobe is adopting this strategy and you will have to get your hands really dirty to appreciate why they are doing this.

Here is one of the few reasons :-

Read the rest of this entry »

Discussion: The Usage of Permalink

I still remember the first time I’ve used Wordpress, one of the word that caught my attention was the word “Permalink”. Just what is that? How is it useful? and what are “slugs” in wordpress? Check out the picture below.

permalink

a_slug

Read the rest of this entry »