Monster Racer Rush
Select between 5 monster racers, upgrade your monster skill and win the competition!
4.23 / 5.00 3,881 ViewsBuild and Base
Build most powerful forces, unleash hordes of monster and control your soldiers!
3.93 / 5.00 4,634 ViewsAh I see, however I don't use buttons in my scenes, it's just textboxes with the action script I pasted, so tjhere's no skpBtn on my timelines. What do I do?
At 11/18/14 07:02 AM, Gimmick wrote: You could lower the sound volume in the movie to 0 and then later set it back to 100. Since you're using Flash 8 you're using AS2, so it'd be something like this (haven't really tested it but I think this'll work):
//create some sound object
var snd:Sound = new Sound(some_movieclip)
var vol:Number = 0
function fadeVol()
{
snd.setVolume(--vol)
if(vol < 0)
{
onEnterFrame = null
vol = 100
}
}
button.onPress = function()
{
onEnterFrame = fadeVol
}
Man, thank you so much for even replying! You're awesome! Though I just put it in the flash, and I placed it in the same frame as the script for stopping the frame for a textbox. Nothing really happened.. Do I put it in a different frame in the timeline? Or do I put it in the same frame as the script for stopping the animation for pressing space on the text box? Here's the action script for it by the way.
stop();
onEnterFrame = function () {
if (!Key.isDown(Key.SPACE)) {
_root.allow = true;
} else if (Key.isDown(Key.SPACE) && _root.allow == true) {
play();
_root.allow = false;
}
};
Hello, I'm a flash animator currently working on a series that requires button pressing to go through dialogue. Problem with this is, I cant completly edit the music fade out at a certain frame like other animators do who don't use the button thing. I've only seen one animator properly find the secret behind this, and that was alvin earthworm in his last smbz flash SMBZ ep 8, where when the first scene was over, right when you pushed the final button of the scene, the music faded out properly. Anyone know a script or something that can get the music to fade out after ending a button pressing-based dialogue scene? If I wasn't clear, please let me know! Thanks! Oh also, I think I should mention I'm using Macromedia Flash 8