Tag: Flash

VideoEvent.COMPLETE and SoundMixer.stopAll()

16th September 2009 | 0 Comments

I just ran across a strange behavior in flash that might save you a few mnutes of head scratching. I had a video playing using a FLVPlayback component.  I also had a button with a roll over sound on it.  On roll over I used SoundMixer.stopAll() to kill any extra roll over sounds.  Well this also kills the video sound and triggers the video complete event.  My best guess is the SoundMixer class is killing all of the video streams in addition to any audio streams.  Lesson learned.

FLVPlayback Not Playing

1st June 2009 | 2 Comments

I ran across an interesting bug within the FLVPlayback component include with CS4 today.  About half the time the component wouldn't play a video (I think its related to a combination of other classes imported in my FLA).  I tried setting just about every property I could to no avail.  I manage to track down the problem to the event model.  The video progress event would say that the entire video was downloaded, but the video complete event woudn't fire.  The workaround I came up with was to check if the video was downloaded in the progress event then fire the play command.  Its seems to have fixed my problem for now.  Hopefully you won't have to waste a few hours of troubleshooting like me.

Orphans and Widows

7th May 2009 | 0 Comments

If I've only learned one thing from designers, its that they hate orphans/widows. As a flash developer I often have to work with external text and there is a good chance you'll end up with an orphan.

Read: Orphans and Widows

Adobe AIR

20th November 2008 | 0 Comments

I finally made my first AIR app today.  It's a simple Excel to XML file converter I made for work.  I decided to use Flash CS3 to build it because I thought it would be easy, boy was i wrong.  CS3 doesn't have any internal AIR documentation even after installing the SDK.  You do get code hinting, but that's only helpful if you know everything about the API.  So I had to find a copy of Flex's AIR documentation and use that for reference.  CS4 apppears to have AIR documentation inside of it; however, CS4 tries to grab the documentation from online instead of using the local copy (There is a perference for that, but its hidden).