Tag: actionscript | Preview mode: Common | Row form

Looking for components that can re-use in your Flex projects? Below you can find some useful resources:

Libraries

ZIP andd other Packign formats

Etc

 

Click here to read this article...

Tags: actionscript components Flex projects

Categorize: Flex | Link | Comment:0 | Read times: 384

FZip is a cute little Actionscript 3 class library enables you to load standard ZIP archives and extract contained files while the archive is still loading, modifying, and creating standard ZIP archives. It parses ZIP archives progressively, allowing access to contained files while the archive is loading.

FZip is released under OSI approved zlib/libpng license.

Tags: FZip actionscript library zip compressed files

Categorize: Flex | Link | Comment:0 | Read times: 535

List of ActionScript 3D engines for Flash developers

I don't know why the Flash plugin is non-open source, but we can found many perfect open source projects. the following is a list of Open Source realtime 3D engine for Flash in actionscript. I love open source!

Papervision3D

An open source 3D engine for the Flash platform. It is written and maintained by a small core team, and contributed to by its ever-growing community.

papervision3d

Click here to read this article...

Tags: actionscript 3D engine developer Open source

Categorize: Flash | Link | Comment:0 | Read times: 84

Implement custom events in ActionScript 3.0


In ActionScript 3.0 you can now create your own Events that extends the Event class.

package.events
{
 
     public class CustomEvent extends Event
     {
 
          public static const CUSTOM_TYPE:String = "customType";
 
          public var customProp:String;
 
          public function CustomEvent( type:String, cp:String, bubbles:Boolean, cancelable:Boolean )
          {
               super( type, bubbles, cancelable )
 
               customProp = cp;
          }
 
     }
 
}


This can be used like: dispatchEvent( new CustomEvent( CustomEvent.CUSTOM_TYPE, "myProp", true ) );  It works fine until you need to re-dispatch the event,  If you do re-dispatch the event like below:

myDispatcher.addEventListener( CustomEvent.CUSTOM_TYPE, onCustomEvent );
 
private function onCustomEvent( event:CustomEvent ):void
{
     dispatchEvent( event );
}

the event is cast back to the type Event. To solve this you need to override the clone method inside your custom event class. This will keep your event as its original type.

Click here to read this article...

Tags: custom events actionscript

Categorize: Flash | Link | Comment:0 | Read times: 45