Monthly Archives: November 2009

Useful MovieClip-child tricks in AS3

Some useful MovieClip / Display Object tricks in ActionScript 3:

1. Send to front / back

To set an MC on top of everything else:

setChildIndex(yourMC, numChildren-1);

To put an MC below everything else:

setChildIndex(yourMC, 0);

http://developer.yahoo.com/flash/articles/display-list.html

2. Remove all children

while(container.numChildren){
container.removeChildAt(0);
}

http://blog.devdeploy.com/2009/10/19/remove-all-children-as3/

Posted in Flash | Tagged | Leave a comment

Global Variables in ActionScript 3

Although there is no “direct” way to implement global variables in ActionScript 3, as there was in previous AS versions, I found this useful workaround, using a class with a static variable container:

http://greenethumb.com/article/11/global-variables-in-as3

Posted in Flash | Tagged | Leave a comment

SoundCloud – 1st anniversary and ActionScript 3 API

Web audio hosting and streaming service SoundCloud have many good news on their anniversary:

  • Cheaper premium accounts
  • New players
  • iPhone app

and much more:

http://soundcloud.com/pages/newsletters/2009/11/10/anniversary

I would also highlight the recent ActionScript 3 API wrapper:

http://blog.soundcloud.com/2009/09/18/as3-wrapper/

This library enables your Flash or Flex projects to communicate with SoundCloud’s API to upload tracks, create playlists, edit user info and so on. It handles all the complicated OAuth authentication in the background so you only have to deal with a few simple methods.

SoundCloud have also annouced today a Widget Javascript API.

Posted in Flash | Tagged | Leave a comment

Adobe AIR 2 and Flash Player 10.1 Beta Software Now Available

From EON:

Flash Player 10.1 is the first consistent browser runtime release of the Open Screen Project that will enable uncompromised Web browsing of expressive applications, content and high definition (HD) videos across the desktop and devices. (…)

Additionally, Flash Player 10.1 now leverages hardware decoding of H.264 video on Windows PCs, netbooks and mobile devices where available, to conserve battery life and deliver an exceptional video playback experience.

Adobe AIR 2 and Flash Player 10.1 also bring innovations and optimizations from mobile devices to the desktop. For example, designers and developers can now create entirely new types of applications that use multi-touch points and gestures on touch screen devices. Instead of using a mouse, users touch the screen to interact with content and applications.

From Webmonkey:

Support for local microphone access — This may well be the best news for developers since it paves the way to create online audio editors capable of the same sort of sophistication we’ve seen with online image editing apps.

The pre-release beta versions of Adobe AIR 2 and Adobe Flash Player 10.1 are available immediately as free downloads from Adobe Labs

Posted in Flash | Tagged | Leave a comment