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



Calendar

August 2007
M T W T F S S
« Jul    
  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  

August 9, 2007

Tile-based Flash game: Bloxorz

Filed under: Miscellaneous — betaruce @ 12:43 am

http://www.miniclip.com/games/bloxorz/en/

found this in miniclip, and got addicted to it. Read the few rules and start playing :)

• • •

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.

• • •

June 29, 2007

Video: Superb HTML example

Filed under: Miscellaneous — betaruce @ 12:59 pm

an insane Japanese guy playing with HTML

http://www.youtube.com/watch?v=NqFOB77jLaE

• • •

June 23, 2007

To HK bloggers: Adobe AIR Developer Derby

Filed under: Flash Events — betaruce @ 2:54 pm

This is probably one of the hottest news recently.

If you are >18yo and you are a HK citizen, you are eligible to enter the Adobe AIR Developer Derby.

You can create an Adobe AIR application (aka Apollo) and there are several categories to classify your work.

The prize is definitely amazing, which include:

  • One Mac Pro 8-core system with 4 GB RAM and 1.5 TB storage
  • Two Dell 2707WFP 27-inch widescreen monitors
  • One Sony PlayStation 3
  • One $200 Amazon.com gift certificate
  • One Herman Miller Aeron chair
  • One pair of Bose QuietComfort 3 noise canceling headphones
  • One copy of Adobe Flex Builder 3, Macintosh edition
  • One copy of Adobe Creative Suite 3 Master Collection for Macintosh
  • A trip and conference pass to the Adobe MAX 2007 annual user conference

etc etc....

Is there anyone in HK planning to enter that competition?

• • •

June 19, 2007

PhotoFlip: Editors’ pick in Yahoo Gallery

Filed under: About this Site, My Flash Programs — betaruce @ 11:27 am

http://photoflip.betaruce.com

Thanks for all the support.

PhotoFlip is still an online album with its basic functions only. More updates will be done to the program soon :)

• • •

June 9, 2007

PhotoFlip - Create a flippable album and put on your site

Filed under: My Flash Programs — betaruce @ 4:10 pm

I have converted my previous pageflip program into one that allow people to load in their photos from external source. I build this website which allow people to define some variables (e.g. page colors, album title, etc), generate codes and paste to their site easily.

Here is an example which load in my Flickr photo set.

(more...)

• • •

June 1, 2007

AS tips: \ in String

Filed under: Using Flash, Actionscript — betaruce @ 2:01 am

If there is "\" in a String variable, it will be "deleted" automatically and immediately (since "\" is usually used to represent something e.g. "\n" means a line break), and you won't be able to replace it e.g. with regular expression. To overcome this, you may use "\\".

Actionscript:
  1. var link:String="C:\Program Files\Adobe";
  2. trace(link);
  3. // ouput --> C:Program FilesAdobe
  4.  
  5. var link2:String="C:\\Program Files\\Adobe";
  6. trace(link2);
  7. // ouput --> C:\Program Files\Adobe

However, if the value is taken from a textfield (either dynamic or input textfield), the "\" will still remain.

Actionscript:
  1. // There is a dynamic text field on stage
  2. // with value "C:\Program Files\Adobe"
  3.  
  4. trace(txtField.text)
  5.  
  6. // output --> C:\Program Files\Adobe

• • •

My Apollo app: PhotoFlip

Filed under: My Flash Programs — betaruce @ 1:08 am

I have converted my pageflip program, which was written in AS1, into AS3, and integrate into an Apollo application PhotoFlip.

The app allows you to type in the full link to a local folder containing your photos and display it in the book-like album.

Download the .air file

This is still the alpha version (so not much function besides flipping), but I think the pageflip program is better being used as a web rather than a desktop application. I will convert it to a web app which can load in photos from various source e.g. Facebook, Flickr, etc, and allow user to put it to their blog.

• • •
Next Page »

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