Posts RSS Comments RSS 71 Posts and 117 Comments till now

Archive for March, 2008

AS3 Migration

For those of you who don’t know this yet, if you’re migrating from AS2.0 to AS3.0 or if you’re constantly using AS3.0 to develop your projects, this is a very handy ActionScript 3.0 Migration PDF reference. It clearly shows the difference between AS2.0 and AS3.0 and tells you what to import when using certain objects, it also tells you what objects has been removed in AS3.0. Certainly good to have it with you when developing AS3.0 projects or if you’re starting to learn AS3.0. There are also other cheatsheets for other platforms like AIR and Papervision which can be found here.

Link: ActionScript Physics Engines List

minidxer kindly collected all physics engines available.

Fullscreen Flash is so COOL! BUT…

There are some security restrictions. The full article can be found in Adobe’s website. Two restrictions are very important:

  1. “Users cannot enter text in text input fields while in full-screen mode. All keyboard input and key-related ActionScript is disabled while in full-screen mode, with the exception of the keyboard shortcuts that take the viewer out of full-screen mode. ”

    This restriction keeps most website/application away from fullscreen mode. Almost all websites and applications need keyboard interaction. Bringing the user out of fullscreen mode to fill up a form is not user-friendly.

    It was stated in Square Factor’s blog that the reason for disabling input is to avoid phishing activities. “…attacker could mimic the look of the operating system / browser to force user to enter sensitive data, such as passwords or serial numbers.”

  2. “The ActionScript that initiates full-screen mode can be called only in response to a mouse click or keypress. If it is called in other situations, it will be ignored (in ActionScript 2.0) or throw an exception (in ActionScript 3.0).”

Flash website tracking with Google Analytics

google analytics screengrabThe success of a website is evaluated by its traffic. Important data like pageviews and visitors are collected using web tracking technologies. The simplest form would be the old school visitor counter. There are many commercial web tracking services for big websites and there are also free services such as “Google Analytics(GA)“. It’s simple yet extremely powerful.

GA is a javascript based solution. Using GA in HTML is very simple. Paste in the scripts and the site is tracked instantly. To track a Flash based website is not hard either.
Continue Reading »

Limitations of Papervision3D

papervision3d logoPapervision3D brought 2D Flash into a 3D world. It’s exciting and there are lots of cool websites and applications developed with PV3D. But nothing is perfect in the world. It also has some limitations:

Continue Reading »

Actionscript 3 scrollbar

I created this scrollbar some time back. I did not use it in a actual project yet but I think it should be useful for those who are doing websites in AS3. It is customizable with Tweener effects selection. It scrolls mainly movieclips, so as long as you convert your text or images to movieclips, you can scroll them. Here is the scrollbar source.

This movie requires Flash Player 9

XFL new Flash file format coming in Flash 10

Flash CS4 will be able to export *and* import a new source format called XFL. An XFL file is a .zip file that contains the source material for a Flash document. Within the .zip file resides an XML file describing the structure of the document and a folder with the document’s assets (graphics, sounds, etc). - From Colin Moock

Extend Flash

snippets panel screen shotOn Lee Brimelow’s blog he has created a few handy flash extensions to make coding in AS3 easier. I suggest getting the code Snippets panel extension and the Event Generator extension.

With the Event Generator just select an item on stage and select what you want to do with it in the panel. Click copy to clipboard and then open the actions panel and paste the code there.

Gaia Flash Framework

gaia logoThis may not be new news per say. But in my opinion should be quite useful. There is this new flash framework known as Gaia that seems to be useful in speeding up the flash production process. By using the framework, you can get a simple flash project up in a flash. If you find it troublesome to change your workflow, the least you can do with it is to create a prototype in a very short time to present to your client. In conlcusion, this framework is worth a try.

http://www.gaiaflashframework.com/

_global in ActionScript 3

There’s no more “_global” in ActionScript 3. I wrote this class to bring it back. Here’s an example of exchanging values between two .swf files. example.swf assigns value into “_global” and external.swf watches it. The source file is here.

This movie requires Flash Player 9

There are other solutions. AS3 Global Object is a powerful package that goes beyond “_global”. Jonathan Greene’s solution is very neat and easy, too. The basic of all solutions is to use static variables and functions. Using static variables and functions is the easiest method to communicate between classes and movie clips. I’ll explain that in future posts. Meanwhile, this entry in help manual helps to understand what “static” means.

Next »