ActionScript

Creating a Splash Screen in AIR

A lot of desktop apps have a splash screen that brands the application while it is loading or performing other processes in the background. Adobe AIR does not have a direct mechanism for this- but the feature can be easily achieved with some nice windowing action. There are a number of steps to take when …

Creating a Splash Screen in AIR Read More »

AIR: Window vs. NativeWindow

This one threw me for a loop.  So I’ve been using the flash.display.NativeWindow class to create new windows in AIR (via Flex) since the beta releases.  Historically, this has been a pain when you want to add MXML components to the native window as addChild() does not work with the NativeWindow class unless that child …

AIR: Window vs. NativeWindow Read More »

Remoting through Flex with Coldfusion

I’m used to setting the ObjectEncoding to AMF0 when working with Flash Media Server 2, but haven’t realized till now that I also am required to do this when communicating with Coldfusion 8 through remoting: import flash.net.NetConnection; import flash.net.ObjectEncoding; NetConnection.defaultObjectEncoding = flash.net.ObjectEncoding.AMF0; The error “Unknown object type tag (17)” was being generated by CF8 as …

Remoting through Flex with Coldfusion Read More »

BitmapData.draw() Problem in AIR

I’m using AIR integration with Flex Builder 3 to contain and package an AS2 SWF which was originally using Screenweaver for deployment to a standalone app. The problem I’ve noticed is that I have two areas into which each are being drawn from another MC using BitmapData.draw() which work just great in Flash CS3 when …

BitmapData.draw() Problem in AIR Read More »

Flash Player 9 FSCommand() Bug

I’m working on a rather large AS3 project through Fractured Vision Media which relies on the flash.system.fscommand package to properly transmit data from the application to its container layer. Unfortunately, we’ve come across a bug in which FSCommand calls are ignored! Through some quick research (e.g. Google) it was discovered that more than a few …

Flash Player 9 FSCommand() Bug Read More »

E4X: Watch Your Namespace…

When using the new XML object in ActionScript 3 and parsing the data with E4X, if your XML data has a “xmlns” attribute- you may have a difficult time getting any accessible data out of it. The infuriating thing is that the process will fail silently without throwing any errors, returning null, undefined, or anything …

E4X: Watch Your Namespace… Read More »

Thoughts on Twitter…

Twitter is a really strange service. When I first caught wind of this, my immediate reaction was; do we really need to be pouring more ephemeral nonsense into an internet already smothering with useless information? I have to say that after using Twitter myself for the past few weeks, and playing around with the ActionScript …

Thoughts on Twitter… Read More »

SoundMixer.computeSpectrum() and RTMP Violations

Same issues as with BitmapData.draw() and RTMP… SecurityError: Error #2135: Security sandbox violation: SoundMixer.computeSpectrum: RTMP content cannot be accessed using this API. I hate to sound like a broken record… and I know there are probably some really good reasons for this- but there should be a way around this RTMP security restriction. Developers want …

SoundMixer.computeSpectrum() and RTMP Violations Read More »

Messing Around with Twitter

I’ve taken some time today to experiment with Twitter using the ActionScript 3.0 API that is available. It’s a very simple class library and, as such, pretty easy to build a widget around. One thing that has bothered me a bit is the seemingly lengthy amount of time the services take to update the API …

Messing Around with Twitter Read More »

Flash Remoting (AS2) in Flash CS3

I’m surprised that while any sort of remote connection classes you could want are included in the core packages of ActionScript 3.0, if you are working with ActionScript 2.0 within Flash CS3, the classes you need are still not included under a default install. I’ve lamented this fact for years as it has held true …

Flash Remoting (AS2) in Flash CS3 Read More »

Adobe to Open Source Flex

Adobe annouced today that Flex is going open source! Adobe is announcing plans to open source Flex under the Mozilla Public License (MPL). This includes not only the source to the ActionScript components from the Flex SDK, which have been available in source code form with the SDK since Flex 2 was released, but also …

Adobe to Open Source Flex Read More »