ActionScript

Creating Custom Context Menus in Flash

The assets for my 5 minute quick tip talk for the 2011 Adobe Education Leader Institute are located here. This is the completed example (Flash Professional CS5.5): [download AEL2011_FlashContextMenu] Here is an image preview: Here is the SWF: [SWF]http://inflagrantedelicto.memoryspiral.com/wp-content/uploads/2011/07/contextmenu.swf, 350, 300[/SWF] And here be the code bits! package { import flash.display.Sprite; import flash.ui.ContextMenu; import flash.ui.ContextMenuItem; …

Creating Custom Context Menus in Flash Read More »

CodeBass Article: AS3 Audio Libraries

An article I had written on using a variety of ActionScript and Alchemy-based audio encoding libraries in Flash Player has been published over at CodeBass. Check it out and even play with the demo set from within your web browser. Full source code and links to referenced AS3 libraries is also available. Nice to finally …

CodeBass Article: AS3 Audio Libraries Read More »

InsideRIA: AIR 2.0 NativeProcess API – What’s It Good For?

Just a quick post to encourage everyone to check out my article over at InsideRIA: AIR 2.0 NativeProcess API – What’s It Good For? While there are a few examples available for connecting AIR applications to native operating system processes today, most of them are basic “Hello World” examples, or happen to be purely theoretical. …

InsideRIA: AIR 2.0 NativeProcess API – What’s It Good For? Read More »

Strange ActionScript dispatchEvent / addEventListener Gotcha

I came across a strange situation over the weekend where a custom event being broadcast through dispatchEvent() was not being caught by the registered listener object. To make things even more bizarre, hasEventListener() definitely showed the event as registered, and I could even trace the type out through willTrigger(). Relevant example code is below: private …

Strange ActionScript dispatchEvent / addEventListener Gotcha Read More »

YouTube AS3 Example Using Flash Professional

Based on comments received in my previous article I’ve decided to also produce an example using Flash Professional CS4. The approach is different in some ways, but very similar in others. View the Example: [SWF]http://inflagrantedelicto.memoryspiral.com/wp-content/uploads/2009/10/YouTubeAS3_CS4.swf, 480, 500[/SWF] References: The ActionScript 3 YouTube Chromeless Player is Now Live YouTube ActionScript 3.0 Player API Reference Download the …

YouTube AS3 Example Using Flash Professional Read More »

Scaling Your Images in Flash Player? Smooth Those Things!!!

I actually forgot to apply the “smoothing” property to a flash.display.Bitmap display object being scaled inside Flash Player. Just look at the difference such an oversight made! Since I was using a flash.display.Loader display object to load the image up, and Loader has no smoothing property, I totally spaced on this and it’s been out …

Scaling Your Images in Flash Player? Smooth Those Things!!! Read More »

Runtime Armatures in Flash CS4

I have such terrible luck with Runtime Armatures in Flash CS4. It’s really not funny anymore. Most recently stumbled across the following compilation error (fatal warning?) when working with the “New Flash Component” feature of Flash Builder 4: Warning: 5002: The main timeline’s frame scripts have been ignored because a compiled clip contains a definition …

Runtime Armatures in Flash CS4 Read More »

Quick Tip: Display Application Version in your AIR App.

Just a quick tip for those looking to somehow display the AIR application version from the descriptor file. I’ve found it very helpful in troubleshooting is users can say EXACTLY what version of the app they are running. AIR 2.5 and later: private function getAppVersion():String { var appXml:XML = NativeApplication.nativeApplication.applicationDescriptor; var ns:Namespace = appXml.namespace(); var …

Quick Tip: Display Application Version in your AIR App. Read More »