Home » Archive

Articles Archive for March 2010

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 …

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 …

ActionScript 3.0, Flash CS4 »

[17 Mar 2010 | No Comment | ]
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 …

ActionScript 3.0, Flash CS4 »

[15 Mar 2010 | No Comment | ]
Free AS3 Checkbox Component:

Writing new stylesheet or editing the V2 is headache for me. So I have created my own checkbox component. Hope will help you in your projects.
Difficulty of Use:
Intermediate to advanced users.
Sample component1:

Code for Sample1:
import com.Designscripting.Components.ICheck;

var _icheck:CheckButton = new CheckButton();
_icheck.index = 1;
_icheck.x = _icheck.y = 60;
_icheck._txt.text = “SampleData 1″;
_icheck._btn.addEventListener(MouseEvent.CLICK, buttonClicked);
addChild(_icheck);

function buttonClicked(e:MouseEvent):void
{
//Code to open URL in _blank window.
navigateToURL( new URLRequest(”http://www.designscripting.com/”), “_blank”);
ICheck.setItem(e.target.parent);
}
Here we are importing the custom classes and creating an instance for CheckButton and adding it to display list.
Later on selecting the checkbox we are launching the URL:designscripting.com
Some Useful Functions of the …

ActionScript 3.0, Flash CS4, XML »

[11 Mar 2010 | No Comment | ]
Looping through each XMLNode and each attributes within Node:

In this tutorial we are going to iterate through node in a XML. Intead of using direct approach of getting the XML Length(); We are going to use indirect approach to loop through the XML.
Here we are going to use For each statement and iterate through the nodes to access information intead of using index values.
Here is XMLManager class to load XML without pain.
Before proceeding we must know the difference between XML and XMLList.
XML:
XML is a single or collection of XMLNodes with in a rootnode.
XML example:

Note:
Here the root node …

AIR, Flash CS4, Flex »

[8 Mar 2010 | One Comment | ]
Adobe have released Flash player 10.1 for Mobiles

Adobe have released Flash player 10.1 for Mobiles. The full Flash Player will be available on smartphones and other Internet-connected mobile devices, To deliver on a high level of consistency and move onto mobile platforms with limited memory and processing resources, Flash Player 10.1 leverages hardware acceleration of graphics and video and many other performance improvements, such as rendering, scripting, memory utilization, start-up time, battery and CPU optimizations.

Flash Player 10.1 is also designed to take advantage of media delivery with HTTP streaming, including integration of content protection powered by Adobe …