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]https://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 »

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]https://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 »

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 »