Flash actionscript 3.0: March 2010

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