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



Calendar

July 2007
M T W T F S S
« Jun   Aug »
  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  

July 22, 2007

Experiments and problems with Papervision3D

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

After some experiments with Papervision, I must say it is not difficult to use and is really handy. I am trying to build a room and put up some pillars in it. The following is what I have done so far:

Walk with arrow keys, turn around with ur mouse.

http://as3.betaruce.com/room/room.html
Get the Source here.

The room basically is made up of several Plane objects, and the pillar with Cylinder object.

I come across several problems:

- the rendering of the pillar sometimes got “confused” with the walls, ceiling and floor, as below. I am not sure where the problem lies….and I find that this is particularly the problem with Cylinders, but less with cubes and spheres…

- I am not sure if there is a way of filling the objects with a bitmap like tiles but not stretch the bitmap to cover the whole surface?

- seems to me I cannot find a decent tutorial from the official site or any place like a forum for discussion (besides osflash list). I did go to http://forum.papervision3D.org but it seems it is not active….

It would be great if someone could give me some ideas about these :)

• • •

July 20, 2007

Papervision3D 1.5 official release

Filed under: Using Flash — betaruce @ 8:21 pm

check it out here :)

• • •

July 1, 2007

AS3: what to do without getURL()?

Filed under: Using Flash — betaruce @ 3:15 pm

In previous versions of AS, just a few lines of simple codes will allow you to click on a button and go to another website. In AS3, however, getURL() is replaced. You have to do the following:

Actionscript:
  1. import flash.net.*;
  2. import flash.events.*;
  3. //
  4. btn.addEventListener(MouseEvent.CLICK,onClick);
  5. var ur:URLRequest = new URLRequest("http://www.adobe.com");
  6. //
  7. function onClick(e:Event):void{
  8. navigateToURL(ur, "_blank");
  9. }

btn is a movie clip on stage. When someone click on it, it will trigger the onClick() function and bring the user to adobe web.

Then, you have to declare the url with the URLRequest object. Last but not the least, we have to code the onClick() function.

getURL() is replaced by navigateToURL(), which belongs to flash.net. The syntax is:

Actionscript:
  1. public function navigateToURL(request:URLRequest, window:String = null):void

The 1st parameter is the URLRequest object that contains the target url. The 2nd parameter defines whether a new window will pop up or open the website in the current window.

• • •

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