Flash actionscript 3.0: 2010

Custom Slider in AS3.0

0

Posted by Sankar.G | Posted in | Posted on 5:57 PM

In flash we have slider component in as3.0.
But some time we need to use our own design to implement the slider,
so by using the below link you can create a custom slider design in as3.0
with out using flash slider component.

Custom Slider.zip

Isometric depth Swaping in AS3.0

0

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

In AS3.0 always we facing the problem in depth swaping if it is in isometric view it take so troubles ,so below file is used to you to do isometric depth swaping easily

isoDepth.zip

depth.swf

Custom Event Dispatcher in AS3.0

0

Posted by Sankar.G | Posted in | Posted on 8:39 PM

The EventDispatcher class is the base class for all classes that dispatch events. The EventDispatcher class implements the IEventDispatcher interface and is the base class for the DisplayObject class. The EventDispatcher class allows any object on the display list to be an event target and as such, to use the methods of the IEventDispatcher interface.

We Can create a Custom Event Dispatcher in as3.0
we can send the Object,string through Event Dispatcher Class...


Below Link is Used to you to get the Example of the Custom Dispatcher in as3.0...

Custom_Dispatcher.zip

A Star path finding Algorthim in Actionscript3.0

6

Posted by Sankar.G | Posted in | Posted on 12:14 PM

A star is a Computer Algorithm that is widley used in path finding
the process of plotting an eficiently traversable path between
points called nodes A* is a very general and flexible graph traversal algorithm noted for its performance and accuracy.
As such,it is the most widely used graph traversal algorithm
A* is uses best-first search and finds the least-cost path from
a given initial node to one goal node

we are going to use this A* in our actionscript3.0
Note:
1) Click ok the grid you will place a green box
2) second click you place a Blue Box in the Grid
3) And After the Third Click you will place a black
boxes in the Grid ....

First Green box is the Orgin and second Blue box is the
desitination and black boxes are the Hurdles....
after place this press spacebar in the keyboard ....

Orgin Box will move to the desination box in the correct Path...

Below Link is used to get the a star path finding algorithm in AS3.0

pathfinding.zip

Add a External SWF library item using AS3.0

2

Posted by Sankar.G | Posted in | Posted on 11:47 PM

if we want to add a External SWF Libraries item to another SWF file using AS3.0.
we want to create a loader and URLRequest and load the external SWF file
and put addEventListener for loader.contentLoaderInfo with Event.COMPLETE

create a class and catch the event.target.content.loaderInfo.applicationDomain.getDefinition("box")as Class
box=external SWF library item linkage name & convert it in to object like below

var clsObj:Object=new cls();
cls=class name

Below link is used to add a items from external swf library

Externallibrary.zip

Adobe Stratus

0

Posted by Sankar.G | Posted in | Posted on 11:16 PM

Adobe Stratus enables peer assisted networking
using (RTMFP) Real Time Media Flow Protocol using this protocol
we can communicate the another SWF with out any server
using (RTMFP) the communication establish between client to client
with out any main server

Most Important features in stratus is
1)Low latency
2)end-to-end peering capability
3)security and scalability

But this RTMFP Protocol works only in flash player 10 or greater

More Information

EventDispatcher example in as3.0

0

Posted by Sankar.G | Posted in | Posted on 11:04 PM

The EventDispatcher class is the base class for all classes that dispatch events.
The EventDispatcher class implements the IEventDispatcher interface and is the base class for the DisplayObject class.
The EventDispatcher class allows any object on the display list to be an event target and as such,
to use the methods of the IEventDispatcher interface.

In general, the easiest way for a user-defined class to gain event dispatching capabilities is to extend EventDispatcher.
If this is impossible (that is, if the class is already extending another class),
you can instead implement the IEventDispatcher interface, create an EventDispatcher member,
and write simple hooks to route calls into the aggregated EventDispatcher.


EventDispatcher.zip

Prespective Ball Movement in AS3.0

0

Posted by Sankar.G | Posted in | Posted on 11:29 PM

In Flash we have only 2 axis x&y ,we dont have z axis in flash but in some time we want to show the z axis in flash the below file is used to you to guide how to create a virtual z axis in flash using ActionScript 3.0

PrespectiveBall.zip

Distance Between 2 points in AS3.0

0

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

Distance Between point A and B formula is
dx=point1.x-point2.x;
dy=point1.y-point1.y;
distance=Sqrt(dx*dx+dy*dy);
Below files is used to you to find the Distance Between
2 Points

distance.zip


distance.swf

LocalConnection Example in AS3.0

0

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

Local connections enable a communication between SWF files without the use of fscommand()
or JavaScript. LocalConnection objects can communicate only among files that are running on the same client
computer, but they can be running in different applications

LocalConnection objects to implement communication between two files,
it is helpful to identify the commands used in each file.
One file is called the sending file; it is the file that contains the method to be invoked.

The sending file must contain a LocalConnection object and a call to
the send()method.

The other file is called the receiving file;it is the file that invokes the method.
The receiving file must contain another LocalConnection object and a call to the connect() method.

Below link is useful to you to get the Example of a Local Connection

LocalConnection.zip

cell data in dataGrid in as3

0

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

Below files is used to handle the DataGrid Easily in as3.0
and it is used to take the cell data in DataGrid in as3.0

Below link is used to download the dataGrid handling file
DataGrid.fla

Below link is used to see the example of the file
DataGrid.swf