Flash actionscript 3.0

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

Data Transfer using Flash AS3.0 to Red 5 Server

0

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

Go to red5 installation path open the Red5 folder and open the webapps Folder inside you have test folder copy the test folder and paste it in the same place and rename it as second

Open the second folder you have WEB-INF folder and index.jsp file open the WEB-INF folder you have
1)Classes
2)lib
3)src
4)flds
Folders &

1)red5 web prperties
2)red5-web.xml
3)web.xml

Files

open this 3 files in notepad in the re5 web properties file
you have webapp.contextpath=/test
delete the test and type second (foldername)

open red5-web.xml file you have 3 beanid delete last 2 beanid (test service & echo)beanid's

in the web-handler beanid you have class path delete the class path and type
"second.Second" and save it

And open the web.xml file using notepad in the last context-param you have param-values /test delete the test and type second (foldername) and save it

now we want to create a java file to connect the red5 server with flash
so please open the Eclipse (Java IDE)in the work space launcher set work space
c:\programfile\red5\webapps or red5 installation path and click ok

go to windows --- show view --- package Explorer open the package explorer
go the file--new--java project in the project name textbox type second (foldername) in webapps click next button and click finish

right click on the second project in the package Explorer new--package and name it as
second Right click on the package second go to new--class and name it as Second and click ok button now second java is created

now project is created we want to configure buildpath so right click on the project name second and go to buildpath--configure buildpath make a click on the source tab and click Add folder and select src folder from WEB-INF and click ok button

In the bottom default output folder Click on the browse button and select classes folder and click ok button now project in ready to write the java now we want to add the jar file in our project right click on the project and go to properties and click the libraries tab and click add External jar Button

Go to red5 installation path and select red5.jar and click ok now red 5 jar is added on our project or

Download the File from below link Extract it cut the second (folder) and paste it in the red5/webapps

start the red5 server and Compile the first.fla type some name and click the button
that name will send to red5 server and return to our flash and trace

Java file coding & flash file Coding in the Below Link

FILE.ZIP

Simple Multiplayer using red 5 Server

1

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

I create a simple multiplayer game concept using red 5 Server
Before compile this fla you must install the red5 Server in your system
if you want Red5.exe file please see my previous Blog

After Install the Red 5 Server Download the Below File

DEMO.ZIP

Star the Red 5 Server
C:\Program Files\Red5\red5.bat using this batch File
Extract the Zip file and Compile the Demo.Fla

after you get Demo.swf

Open 2 Demo.swf and make a click on the Box the box will get movement on that 2 Demo.swf this is the Simple Multiplayer Demo using red 5 Server