Flash actionscript 3.0

Flash Cartesian coordinate system

0

Posted by Sankar.G | Posted in | Posted on 10:43 PM

Take careful note of the differences.
Which is that the y axis is flipped.flash uses radians to measure angles not degrees,

The maximum rotation around any Cartesian coordinate system is 360 degrees.
In Flash if you are moving clock wise this will be a positive number
in degrees until you reach 180 degrees.
If your are moving counter clock wise this will be a negative number
until you reach -180 degrees

Source
Angles.fla

Result
Angles.swf

Shared Object in AS3

1

Posted by Sankar.G | Posted in | Posted on 12:11 AM

The SharedObject class is used to read and store limited amounts of data on a user's computer or on a server. Shared objects offer real-time data sharing between multiple client SWF files and objects that are persistent on the local computer or remote server. Local shared objects are similar to browser cookies and remote shared objects are similar to real-time data transfer devices

Example Code is in Below link

shareobject.fla

Merge the box2d particles with Flash MovieClip

0

Posted by Sankar.G | Posted in | Posted on 10:43 PM

A Simple Example for Box2d in the Below Link with
Detailed Defined Code we dont have any proper Documentation for Box2d for Flash

we have Documentation for Box2d in c++ only in the below link we have 1 class file
in the class file i explained detailed for each line sure it will help

box2d.zip

Dynamic Array in AS3

1

Posted by Sankar.G | Posted in | Posted on 10:23 PM

we create a dynamic Array easily in as2 but in as3 it is little bit difficult below script is useful to Create a dynamic Array

for that we first declare a object and in the Object we create a 'n' numbers of Array

var vbox:Array
var dArray:Object = new Object();
var counter:int = 1;
var i:Number;
for (i=1;i<=5;i++)
{
vbox = new Array(1,2,3,4);
dArray[("vb" + counter)] = vbox;
counter++;
}

dArray[("vb"+1)][1]=985;

for(i=1;i<=5;i++)
{
trace(dArray[("vb"+i)]);
}

Creation of User List using Red5 Server with Flash

1

Posted by Sankar.G | Posted in | Posted on 9:53 PM

Creation of User List using Java Red5 Server with Flash AS3.0
This below Code is used to create the Multiple user List
for this execution of this file you need red5 server

Download the below file and extract the file cut the third Folder and paste it in the
red5 installation path

C:\Program Files\Red5\webapps

paste the third folder in this location and Start the red5 server & Execute the check.fla and open 4 check.swf

and type 4 different names in 4 swf and make a click on other names after the request comes to other swf accept the invitation game will starts for the particulary 2 players

USERLIST.ZIP