Cache on Timeline?
Recently I created a function on a swf that basically hides some buttons until the audio playing on that frame is over. When this happen a function is called and the buttons became visible again.
The code is very simple. It's like this:
var my_sound:Sound = new Sound();
my_sound.loadSound("audio/som1_1.mp3",true);
my_sound.onLoad = function(sucess:Boolean){
if( ( _root.temporizador == 1 || _root.temporizador == undefined ) && sucess ) {
botao_avancar._alpha = 0;
botao_avancar.enabled = false;
my_sound.onSoundComplete = doSoundComplete;
}
}
function doSoundComplete() {
botao_avancar._alpha = 100;
botao_avancar.enabled = true;
}
My problem is, whenever I change the frame, and the button is in a different place on the screen, it appears on the same position as the last frame, kind of a cache, I guess. Someone know a way to fix this? It's really weird.
I have a .fla sample of this in the link: http://ouromoderno.com.br/flashError/demo.fla
And I have an online sample, so you can see what happens: -> http://ouromoderno.com.br/flashError/
Appreciate any ideias.
(Sorry for the very bad horrible awful english
)
