ActionScript 3.0, Flash CS4 »

[18 May 2010 | No Comment | ]

We can iterate through each items in an Object using For each loop or For in loop.
But the For each can be used only when we need the value of an object not the key, loop is bit fast than for in.
Using for in loop we can get the value, key pair of an object.
Sample For in loop:

for(var item:* in object)
trace(item,object[item]);
Sample For each loop:

for(var item:* in object)
trace(item);
Note: Above outputs only the value not the Object key.

Read the full story »

Design, Photoshop »

[1 Apr 2010 | No Comment | ]
Free Glossy Icon In Flash

Create glossy icons to navigation menu for you website. This tutorials illustrates how to create glossy Icons.
1. Open new document of any size and create a shape that going to be a button. The below is the shape I have created.

2. Select some irregular portion of the shape which going to be the higlight area in button. Copy and paste the highligt area to new Layer.

3. Next Apply white to alpha gradient to shape.

Below is the gradient setting I applied.

4. Select the highlight area and scale it by pressing Ctrl …

Read the full story »

ActionScript 3.0, Flex »

[31 Mar 2010 | No Comment | ]
mx_internal in Flex

I came across a nice topic in Flex today its “mx_internal”.
mx_internal is a access modifier in Flex source code, since Flex is an open source you can look into the code. Adobe has encapsulated some variables in Flex Framework that will change in future release of Flex, So its good to avoid using mx_internal in projects.
mx_internal is a way to access variables that are hidden but available to use for developers.
we can use the variables in the code before that we need to import.
import mx.core.mx_internal;
< ?xml version="1.0" encoding="utf-8"?>

< ![CDATA[
import mx.controls.TextInput;
import …

Read the full story »

Design, Flash CS4 »

[18 Mar 2010 | No Comment | ]
Animated Background + Flash

In this article we are going to create animated background without actionscript that we can use in Banner, Website, Game or any other.
Difficulty:
To Beginners
Final Output File:

Open New Document in Flash using File -> New or Ctrl + N
Change Background color(#090D11) of the document By pressing Ctrl + J or from Properties Dialog box
Create A oval shape With alpha 1% and of any dimension
Convert the Oval Shape to MovieClip by selecting the shape in stage and select Modify-> convert to symbol.. from Menu
Next double click to edit the MovieClip. Create a …

Read the full story »

ActionScript 3.0, Flash CS4 »

[17 Mar 2010 | 4 Comments | ]
AS3 Panorama viewer + Mouse Interaction

Objective of this tutorial is to create Panoramic viewer using Flash Actionscript 3.0, At the end of this tutorial you can create Panoramic viewer.
So before starting the tutorial download a nice panoramic picture from Internet. Rename the file as ‘panorama.jpg’
Difficulty:
Beginner to Intermediate Actionscript knowledge.
At the End of this tutorial we will know how to use,

Ternary operator in ActionScript.
HitTestPoint in ActionScript

Using Ternary Operator:
The ternary operator “?:” is shorter version of “IF Else”  statement used to evaluate a condition is either true of false, The syntax for ternary operator is
(Condition)?if condition is …

Read the full story »