This is a blog about Flash & AS by betaruce :-)



Calendar

December 2006
M T W T F S S
« Oct   Jan »
  1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

December 31, 2006

AS3: animated landscape

Filed under: My Flash Programs — betaruce @ 6:21 pm

More fun :)

Click here to have a look. A little bit CPU intensive. Move the mouse to move across the land. The upper left corner shows the perlinNoise map of the land. Refresh for a new map.

• • •

December 30, 2006

AS3: 3D Landscape

Filed under: My Flash Programs — betaruce @ 12:03 am

Still not completed, but looks quite good to me.

Click here to have a look. It may need a bit of time to load.

The upper left corner is the perlinNoise for creating the landscape. The right gradient is the coloring scheme.

Things that will be added: interaction, better rendering, animation, etc…

• • •

December 29, 2006

AS 3 tips: addEventListener

Filed under: Using Flash — betaruce @ 12:10 am

I was typing some AS3 one day and was a bit lazy. I did the following:

Actionscript:
  1. // I did not specify the object to add the event
  2. addEventListener(Event.ENTER_FRAME,some_fct);
  3. addEventListener(MouseEvent.MOUSE_MOVE,some_fct_2);
  4.  
  5. // but actually the above is equivalent to the following
  6.  
  7. this.addEventListener(Event.ENTER_FRAME,some_fct);
  8. this.addEventListener(MouseEvent.MOUSE_MOVE,some_fct_2);

The EnterFrame work, but not the Mouse event. This is because the mouse event does not respond to the timeline ("this" refers to the timeline).

Therefore, to make the mouse respond to the movement, I add the event to some object e.g. stage in my case.

Actionscript:
  1. this.addEventListener(Event.ENTER_FRAME,some_fct);
  2. stage.addEventListener(MouseEvent.MOUSE_MOVE,some_fct_2);

This is also true for Keyboard events.

• • •

December 28, 2006

AS 3 tips: Stage & stage

Filed under: Using Flash — betaruce @ 5:53 pm

Stage is only the class name i.e. flash.display.Stage, whereas stage is the thing referring to the real stage.

This can create lots of confusion, esp in the Flash 9 Alpha Stage is highlighted in blue but not stage.

• • •

December 4, 2006

Flash 8 Tutorial: Fire effect

Filed under: My Flash Programs, Tutorials — betaruce @ 9:26 pm

I find that many people want to make a fire effect with the new filters in Flash 8.

I have written a tutorial about my way of creating this effect. My way is quite simple and the effect is realistic enough, altho it maybe a bit CPU intensive. Anyway I hope this can be a useful one :) .

Read the tutorial here.

Basically you can use the same principal and write it in AS 3. If people think it is good and the response is good, I will write one in AS 3 later.

• • •

Powered by: WordPress • Template by: Priss

cheap phentermine phentermine site phentermine effects online phentermine phentermine prescription buy phentermine online phentermine alternatives phentermine deit pill cheap generic phentermine order phentermine online Clenbuterol Phentermine online pharmacy phentermine buy phentermine weight loss pill Cialis Comparison Viagra Cheap Viagra Online Prescription generic viagra sale viagra online viagra viagra pill discount sale viagra Generico Impotencia Viagra viagra sildenafil citrate Xanax Online xanax order xanax valium versus xanax