Posts Tagged ‘as3’

Actionscript 3 Resources

Thursday, July 26th, 2007

Trevor McCauley aka Senocular has been very active since the public got their eyes on Actionscript 3, in helping the community get up to scratch with whats new and whats changed in the new language, firstly by providing, probably one of the most useful posts i have seen across any of the major Flash Forums since the good old days of Were-Here, with an Actionscript 3 Tip of the Day thread, containing a collection of over 100 posts containing Actionscript 3 tips and tricks.

Secondly, a very accurate/comprehensive tutorial that will get people started using Actionscript 3 in Adobe Flash CS3.

That’s a whole lot of writing!

Undocumented Actionscript 3

Wednesday, November 22nd, 2006

A little undocumented feature for you that might come in useful, mainly for people who use the Flash 9 Authoring Tool to create their Flash Movies.

(more…)

Actionscript 3 - FZip

Monday, November 20th, 2006

I must have missed this one in the aggregators, so thought it worth mentioning. Claus Wahlers has put together a rocking Actionscript 3 class that can progressively load and unpack the contents of zip files in Flash Player 9, which is really useful for image galleries and other such applications that involve lots of external files, simply because you can stuff all the files inside just one zip file, stick it on the server and load that into your application, then unpack it on the fly and access the files inside. Checkout FZip.

Flash Player 9 Update Beta

Thursday, October 5th, 2006

Adobe have just recently released a beta version of an update to Flash Player 9 that adds new Full Screen capabilities to the Flash Player. This feature was primarily introduced into the update so that video players can go fullscreen, but it has lots of other uses aswell.

Full Screen mode is activated using either Actionscript 2 or Actionscript 3 by setting the value of a new property Stage.displayState, it can only be set in response to a mouse or keyboard event, which stops malicious use of this new feature. Keyboard events do not occur when the Flash Player is in full screen mode, so input fields will not work.

More information on fullscreen mode can be found here.

The new player also introduces some much needed displaylist events, namely ADDED_TO_STAGE and REMOVED_FROM_STAGE and the new player now works with Microsoft Vista.

Flash 9 AS3 Preview

Wednesday, June 28th, 2006

Windows users can now download a preview release of Flash 9 on Adobe Labs that is basically the same as Flash 8, but allows Flash Developers/Designers to output their content to Flash Player 9.

There is however one new awesome feature included in there for you to play with, the Document Class feature, which makes it easy to assign an actionscript class to the main timeline (the main timeline then becomes an instance of the specified class) instead of using the old hack which was basically to have something like the following on the first frame of the main timeline:

import com.flashguru.someProject.SomeClass;
this.__proto__=SomeClass.prototype;
SomeClass['apply']( this , null );

BitmapData.loadBitmap gone in AS3

Tuesday, February 21st, 2006

When playing with the BitmapData API in Flash 8, it was often necessary to work with an image embedded in the library. To achieve this you could assign a 'Linkage Identifier' to the image in the library and then use BitmapData.loadBitmap to retrieve a BitmapData instance pre-populated with the specified image from the library:

Actionscript:
  1. import flash.display.BitmapData;
  2. myBmp = BitmapData.loadBitmap('theLinkageId');

Naturally things have changed somewhat in Actionscript 3. There are no longer Linkage Identifiers and there is no longer attachMovie. Everything is created using the new operator.

So, how do you go about embedding an image inside a Flash Movie in Actionscript 3 you might ask? and then how do you get a BitmapData object for that embedded Image? Well im going to show you because these questions seem to be coming up alot of late.

(more...)