Archive for September, 2008

ActionScript 3.0: Tweener Class Adobe Class fl.transitions.*

Hmmm, interesting. I was playing around with Adobe tweening classes just last week. These tweening classes are the default ones found in CS3 (Note this is not the open source ones, as listed in this post here)

Here are the sample tweener class of motion tween-y and fade effect in action. (we are going to move the movieClip up and down and with the fade effect altogether).


Read the rest of this entry »

ActionScript 3.0 : Getting Data from Uncached Dynamic XML

Today’s tutorial is a bit complex, but it solved a lot of issues faced by flash developer in AS3.

We will be touching on various subjects such as: -

  1. Creating xml schema of your own.
  2. Easier way of doing xml data retrieval AS3 style.
  3. Loads the xml data into Listbox class.

NOTE : Listbox or List is a component in Flash so, it needs a separate import and special event Listener for that. You will get an error if you try to apply regular addEventListener like MouseEvent to it.

See the working sample below.


Read the rest of this entry »

Aptana IDE Customization : Programming with Dark Theme

Normally editor such as notepad, editplus, notepad++, visual studio, devstudio and many more. They came with light theme by default, which means utilizing white as the background and the syntax as the colored ones. Have you ever seen a dark theme before?

 A dark theme looks like a classical o/s prompt command or linux terminal. I found a wonderful color customization from Boris Popoff that day, regarding the customization of color template for dark theme for Aptana IDE. After using Aptana IDE for quite some time, I find dark theme suits my vision better, cause I always thinks that white background on the lcd monitor can be way too bright. Well that’s just my field of vision.

 

For those who are new to Aptana IDE - Free javascript IDE can read my review here

 

php_small

 

The font used for this is MS-Consolas. When tweaked your IDE will look like the picture above.

To download this color customization template for Aptana IDE check out http://gueschla.com/labs/green-chaud/.

IPOD Touch: Screenshot with Firmware 2.0.2

One of the features that I like about the new Firmware is the screencapture feature. You can actually screencapture any application or screen (cept for the slide on unlock screen). To screen capture tap sleep and home button simultaneously, if you do it correctly you can see a flash on a screen.

The captured screenies will be inside the photo icon under Saved Photos.

Read the rest of this entry »

ActionScript 3.0 : Using Tweener Class

I just came across these Tweener Class while browsing through Google just today - find it quite interesting for those interested in building interactive applications using AS3.

Firstly it is lightweight and does not need to code much to get movement animation you desire e.g. rotation, linear tween and stuff you do in the normal tweening in Flash. You can actually use this class, to build some lightweight interactive menu stuff project.

Check out the sample SWF I Attached Here. A cute image movieClip called CuteMC is used for this demonstration and also a status dynamic text container in the stage. Hah..ha Check out my summersault doggy.

 


All you need to do is to download the AS3 version of the actionscript file and unzip the folder caurina to your same swf of your project.

Below are my source code sample used to do some simple tweening as shown above.

Read the rest of this entry »