Archive for April, 2008

Error #2037: Functions called in incorrect sequence, or earlier call was unsuccessful.

April 11, 2008

While working with the Sound object in AS3, I recieved the following error.

Error #2037: Functions called in incorrect sequence, or earlier call was unsuccessful.

I was trying to reuse my Sound object by loading a different external mp3 into it, which I used to be able to do no prob in AS2. We’ll like many things I have discovered with AS3, things have changed. After doing a bit of research I found the answer here on TroyWorks blog. Basically, Sound objects  now appear to be single use items, which means you have to create one for each sound you want to use, or recreate it if you want to reuse it, so in my case I needed to new my Sound object inside your function, instead of trying to do it in my class constructor and trying to reuse it. Hope this helps.

Flash CS3 and Soundbooth – Audio Only FLV’s with Embedded Cue Points

April 10, 2008

I set of this morning to accomplish what I initially thought would be a 20 minute job. I just wanted to create an FLV file with no video, just audio. Why would I want to do this you may ask? Well, FLV’s support cue points and cue points can be used to trigger things in your application. After messing about with Premiere, After Effects and Soundbooth, I found quite a few ways that don’t work and at least 1 way that did.

By the way, when it comes to cue points, you might be interested to know that they are not supported if you decide to use use H.264 and neither are alpha channels. VP6 is the way to go for if you need cue points and alpha in your video or in my case my video that contains only audio.

So what did I do?  Well, here goes…

1. I pulled my audio file into Soundbooth.

2. I set my markers in the markers tab. You can add them, give them a name and even add extra parameters if you want.

3. I exported to a Quicktime Movie. Why not just export to FLV? Well, my cuepoints never seemed to get embedded properly internally when I tried and I always wound up with ans external xml file with the cue points in it. Now I did also got an external file with cue points when I published the Quicktime, which led me to step 4.

4. So I now had a Quicktime movie and an external cue point file. I fired up the Flash Video encoder and added the Quicktime movie to the queue.

5. You’ll want to make a few setting changes before you turn it loose. Under the video tab, uncheck the encode video box. Make sure the encode Audio is checked under the Audio tab and under the Cue Points tab, load in your external cue points file.

6. Finally, click on the start queue.

Rejoice, you should now have an audio only FLV with embedded cue points.