资 源 简 介
> This is a simple swf shared framework
>
---
> To share a swf
```
// SWF shared instance
var swfShared : SWFShared = new SWFShared();
// add a swf
swfShared.add( "myswf.swf" );
// To laod
swfShared.load();
// To listen complete event
swfShared.addEventListener( SWFSharedEvent.COMPLETE, complete );
function complete( e:SWFSharedEvent ):void {
// To extract a clip
var myclip : Sprite = e.target.getDisplayObject( "SpriteAnimated" );
// To extract a class
var class : Class = e.target.getClass( "MaClasse" );
}
```
> Or more simply to load
```
// SWF shared instance
var swfShared : SWFShared = new SWFShared( "myswf.swf" );
// To laod
swfShared.load();
```
> Or more simply again to load
```
// SWF shared instance - second parameter is boolean to define autoLoad
var swfShared : SWFShared = new SWFShared( "m