ActionScript 3.0 and the Flex SDK

In my free time (right!) over the past few months, I’ve been working on some basic ActionScript 3.0 projects to familiarize myself with the new version. I’ve been using FlashDevelop linked into the Flex SDK to write and compile my code. While I have no gripes with Flex Builder 2, I find it amazing that anyone can just download the Flex SDK for free and start producing Flash with pure ActionScript. I’ve lately been very focused on keeping my code clean and self-contained. With AS2, I’ve always needed to tie everything to an FLA in the Flash IDE, even if

Continue reading »

Fullscreen Flash Player ‘Gotcha’

I’m not sure whether this should be classified as a bug or not. I’m currently working on a project which utilizes the new fullscreen capabilities of Flash Player 9. The module in question retrieves images, audio, video, and other objects for display one-by-one in an individual presentation format. One thing we’ve included in the application is the ability to link to external video from YouTube, iFilm, Yahoo Video, or wherever a user’s personal video material may be hosted. This is where the problem occurs. Flash Player security policy dictates that data linked across domains cannot be loaded into the player

Continue reading »

Drawing a BitmapData Object from a Masked Source

I recently stumbled upon a really nice trick while using the BitmapData object. The problem occurs when attempting to use the draw() method on a MovieClip instance source that had a mask applied via setMask(). Either nothing would be drawn, or the content would be drawn incorrectly. I’ve found that setting the cacheAsBitmap property to ‘true’ for both the source content and the mask itself will get around this issue. 1 2 3 leftContent.setMask(leftMask); leftContent.cacheAsBitmap = true; leftMask.cacheAsBitmap = true;leftContent.setMask(leftMask); leftContent.cacheAsBitmap = true; leftMask.cacheAsBitmap = true;

Continue reading »

Work on DUVAGAII Mentioned in The Latest CTL Newsletter

DUVAGAII is an application which heavily relies on a number of Flash modules written in ActionScript 2.0 for delivery of images, audio, and video content. We have also integrated the Flash Media Server to produce some really amazing video editing tools. The only people who have access to the system right now are faculty and students who are using it in the classroom for the organization, arrangement, editing, and presentation of digital objects. There will be a public side to DUVAGAII once we complete the core functionality and build up our collection of copyright free objects. A PDF of the

Continue reading »

Forcing XML Refresh in ActionScript 2.0

I’ve been working with Flash since version 4 but only came across this trick a few weeks ago. Normally, when using the XML object in ActionScript to load data into your application, if the XML file has been cached, Flash will not reload updated XML data until the cache is cleared or expires. For many applications I’ve worked on, this has been a small issue as data can be updated many times during the day. To force Flash to always retrieve a new version of the XML, you must append a unique identifier to the URL in the load method.

Continue reading »