View Mode: Normal | Article List

pick site

[ 2009-06-11 23:00:11 | Author: liuhuan ]
css template: http://www.solucija.com/

storm

[ 2009-06-05 19:01:50 | Author: liuhuan ]
uploads/200906/19_190229_img_1687.jpg

use global item in as3

[ 2009-06-03 00:11:52 | Author: liuhuan ]
It's very fast for us to get to a certain object directly by _global or _root in as2. However, we can't simply use _global in as3, as there's no more _global.

For example, a.swf loads b.swf, if all of the code is in "as2 style" which spread roughly in timeline, how can we get a certain object in a.swf directly?

Of cource we can use path in b.swf such as: this.parent.parent....parent.mc. ...

Read More...

make the video smooth in FLVPlayback in as3

[ 2009-06-02 19:56:28 | Author: liuhuan ]
In as3, when using FLVPlayback, it gets pixeled when making the video bigger than original size. There's no smooth property which can be found in flash help document. However, there's a simple way to make that:(vp as the name of the FLVPlayback component)
vp.getVideoPlayer(vp.activeVideoPlayerIndex).smoothing = true;

Also the as2 version:(vp as the name of the FLVPlayback component)
...

Read More...
As flash player10 & as3 provides us with a bunch of new 3d methods, now we can make the page flip effect easily without complex math algorithms. I made a simple example, should be opened in flash greater than cs4.

No pv3d, just a "rotationY" is enough to make all these things.


(should be opened in flash player 10+)

source file:
[file=uploads/20090...

Read More...

incredible as3 loader: bulk-loader

[ 2009-05-30 16:40:03 | Author: liuhuan ]
bulk-loader is a library for managing multiple loadings with Actionscript 3 (AS3).

download here: http://code.google.com/p/bulk-loader/downloads/list
homepage of the developer: http://www.stimuli.com.br

sample:
package{
 import br.com.stimuli.loading.BulkLoader;
 import br.com.stimuli.loading.BulkProgressEvent;
 import flash.events.*;
 import flash.display.*;
 import flash.media.*;
...

Read More...

Dictionary class in as3.0

[ 2009-05-29 23:10:51 | Author: liuhuan ]
In as3.0, we can easily use the Dictionary class to store a set of information which is much more convenience than Array.
var myDict:Dictionary = new Dictionary();
for (var i:Number=0; i<10; i++) {
  var ms:Sprite = new Sprite();
  var round:Shape = new Shape();
  round.graphics.beginFill(0xFF0000);
  round.graphics.drawCircle(i*35+30,120,15);
  round.graphics.endFill();
  ms.addChild(round);
...

Read More...