ActionScript 2.0, ActionScript 3.0, Flash CS4, Flex »

[17 Jun 2010 | No Comment | ]

Formulae:
((X – minValue)/(maxValue – minValue)) * 100
Suppose we need to convert 14 – 100 as 0% – 100%

X may be any input from 14 to 100, and the calculation is
((X – 14)/(100 – 14)) * 100
This might be usefull in scrollBar calculations or when we want to restrict size of Image and so on.

Read the full story »

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 »