Practical Web Applications for Daily Living…
actionscript
Update on the Android Game that I am Building
Jun 27th
Well, the code behind it is already 60% to completion, I just stop for awhile , because some urgent task are at hand in my day job, I already have stable 10 downloads a day from the Android Market, not bad for an experimental project.
Later I will buy a lotto ticket here in Singapore, jackpot is 3million sgd , somebody told me.
I have a lot of task in my notes, daymmm…
still have to go to Church.. I haven’t talk to my Girlfriend for more than 48 hours already. Got to call here, and…
mmmmmm
Yes, I want to have a magic money to appear, so I can cash in the 15” MacBook Pro that I want… and what else…
Ahh.. yes, last night was awesome, I finally find a thing that will drive the industry, and I am not telling these to anyone hahaha… poor things, they are playing the wrong game.
anyway here is a clue, I can use my .net capabilities on this, and… its a billion dollar industry, daymmm….
Adobe Flash Player and Android
Jun 27th
If Android Devices support Flash Player and Android Air is going to run on Android, then… there is no need for me to study Java codes to create games and applications. Or is it?
What are the advantages of building your application using java compared to using action script 3?
mmmm….
Iphone 4 is advocating HTML5, while Android is trying hard to save Flash Player,
This business is getting too complicated to create decisions already.
HTML5 surely is the future for Rich Internet Applications Experience in the browser,
Converting AS3 codes to native Android Codes? Is it really opmitized to run well on the Android Devices?
mmmmm….
I don’t know how to decide on this, but… It is my decision to stop my flash career.
I am still waiting for something this year to begin my full attack on the android games and apps before my transition to Iphone next year, but still it depends upon the demand of the market.
Augmented Reality using Flash in your Browsers
Nov 25th
I will post some tutorials on how to do augmented reality using flash for your websites next week. For now, I will post here the link for my sample augmented reality demo.
click here for the sample.
Sample Code for Displaying 3D in Flash using papervision3D
Nov 20th
Assuming that you already have the papervision3D library installed in your server… here is the code for display a rotating cube,
import flash.display.Sprite;
import flash.events.Event;
import org.papervision3d.view.Viewport3D;
import org.papervision3d.scenes.Scene3D;
import org.papervision3d.cameras.Camera3D;
import org.papervision3d.materials.ColorMaterial;
import org.papervision3d.materials.utils.MaterialsList;
import org.papervision3d.objects.primitives.Cube;
import org.papervision3d.render.BasicRenderEngine;
public class PV3CUBE extends Sprite
{
private var viewport: Viewport3D;
private var scene: Scene3D;
private var camera: Camera3D;
private var material: ColorMaterial;
private var primitive: Cube;
private var renderer: BasicRenderEngine;
public function PV3CUBE():void
{
//viewport = new BasicRenderEngine(width, height, scaleToStage, interactive);
viewport = new Viewport3D(550, 400, false, true);
addChild(viewport);
//instantiates a Scene3D instance
scene = new Scene3D();
//instantiates a Camera3D instance
camera = new Camera3D();
//renderer draws the scene to the stage
renderer = new BasicRenderEngine();
//ColorMaterial, doubleSided draws the color on both sides of the geometry normals
material = new ColorMaterial(0xFF9900);
material.doubleSided = true;
var materialsList:MaterialsList = new MaterialsList();
materialsList.addMaterial(material,"front");
materialsList.addMaterial(material,"back");
materialsList.addMaterial(material,"left");
materialsList.addMaterial(material,"right");
materialsList.addMaterial(material,"top");
materialsList.addMaterial(material,"bottom");
primitive = new Cube(materialsList,500,500,500,3,3,3);
scene.addChild(primitive);
//primitive = new Plane(material applied to object, width, height, wSegments, hSegments);
//set up enterFrame event
addEventListener(Event.ENTER_FRAME, onEnterFrame);
//define enterFrame Method, render the PV3D Scene and animate the primitive
function onEnterFrame(e:Event):void
{
primitive.rotationY += 2;
renderer.renderScene(scene, camera, viewport);
}
}
}
}
