View Mode: Normal | Article List

As3 Collision Detection

[ 2009-08-23 14:38:17 | Author: liuhuan ]
uploads/200908/23_140651_untitled1.gif


I used the CollisionDetection(by scratchbrain) to detect collision between complex shapes. download: http://www.libspark.org/wiki/scratchbrain/CollisionDetection


package {
  import flash.display.*;
  import flash.events.*;
  import flash.geom.Rectangle;
  import fl.controls.Button;
...

Read More...

Pv3d: Random tree

[ 2009-08-21 17:19:13 | Author: liuhuan ]
uploads/200908/21_165050_untitled2.jpg


Caution: bigger number may greatly slow down the computer! Slide to re-generate random tree.


package {
  import flash.display.*;
  import flash.events.*;
  import flash.filters.*;
  import fl.controls.Slider;

  import org.papervision3d.materials.*;
  import org.papervision3d.objects.*;
...

Read More...

AS3 flag using as3dmod

[ 2009-08-18 23:05:55 | Author: liuhuan ]
uploads/200908/21_170001_untitled3.jpg

We can easily create flag effect in Actionscript 3 using as3dmod+PV3D.



refrence: http://as3.miguelmoraleda.com/2009/03/07/flash-actionscript-3-as3dmod-flag-effect-modify-objects/

download as3dmod: http://code.google.com/p/as3dmod/
package {
  import flash.display.*;
  import flash.events.Event;
...

Read More...
The stockquote webserivce enables us to get real stock data, which we can use in flash to create a stock information application.

WS url: http://www.webservicex.net/stockquote.asmx



Here we explore how to access webservice in Actionscript 3.0:
Quote
package {
  import flash.display.*;
  import flash.events.*;
  import flash.net.*;
...

Read More...

as3: ALFluid

[ 2009-08-17 17:40:05 | Author: liuhuan ]
uploads/200908/21_170321_untitled4.jpg


ALFluid create melt effect on bitmap in Flash, developed by alumican.net(http://alumican.net/)


download: http://www.libspark.org/browser/as3/ALFluid/
package{
  import flash.display.*;
  import flash.events.MouseEvent;
  import net.alumican.as3.alfluid.*;
  
  public class Main extends MovieClip{
...

Read More...