maandag, augustus 13, 2007

Adobe AIR and Flash CS3: Demo with source

Here is an AIR demo that encapsulates some neat AIR and AS3 tricks.
It is called the Kevin Bacon Drag and Drop.
You have to drag an image file (jpg, png or gif) to the top of the screen.
When you drop the file it will fall down.
Make sure it lands on Kevin's camera and your picture will appear on the screen behind Kevin.

This a summary of all the features implemented in this demo:
1. compiled and written within Flash CS3 (not Flexbuilder)
2. the Adobe AIR drag and drop API
3. pixel perfect collision detection in AS3
4. the use of custom events and event bubbling
5. Ratio scaling for images

Thanks to Grant Skinner you can now compile AIR files from within Flash CS3.
Download and read the instructions here:
http://www.gskinner.com/blog/archives/2007/07/creating_air_pr.html

The Adobe AIR API documentation is build in the Flex3 Language reference (look for the classes with a blue dot next to them)
http://livedocs.adobe.com/labs/flex/3/langref/

Download the installer file here:
http://cases.boulevart.be/blogs/DragandDropGame.zip

Download the source files here:
http://cases.boulevart.be/blogs/DragandDropGame_source.zip

Here's a few mac and windows screenshots:

picture-3.png

picture-2.png

picture-5.png

picture-7.png

crossposted at labs.boulevart.be

5 opmerkingen:

Anoniem zei

Thanks designed for sharing such a pleasant thought, article is
pleasant, thats why i have read it completely
credit card consolidation loan

Anoniem zei

Ѕo - "Adobe AIR and Flash CS3: Demo with source"
- I wouldn't have thought it would be so good reading as this. Now I must finally go and do some work.

Feel free to surf to my web-site :: cheapest secured loans

Anoniem zei

Plenty has beеn discusseԁ abοut this аrea previοusly, but therеs
a сοuple of replieѕ woгth remembeгing.
Favourіteԁ.

Also viѕit my web-site: personal loans

Anoniem zei

I'm wondering what age you start to get more grown up and get used to all this rubbish.

My web blog; fast cash loans online

Anoniem zei

ӏ might gеt around to dοing ѕomethіng similaг mуself very ѕoοn,
if I сan finԁ the funding.

Here іs my webpage; fast cash loans online uk