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 ViewsHello everyone,
Simple question , what code can i use so that when i press a button the gotoandplay action will be used?
For example , my animation stops at frame 1 using stop() , and to go to frame 2 i would have to press button "A".
I have looked up some codes and watched videos but when using them i keep getting errors. Most of them are probably out of date.
Thanks in advance.
Thanks , it's solved now
i used this actions for my button now:
I need to find a way to stay on one frame but be able to switch between songs/audio
For that i need to use a button and a action , can anyone help me with that ?
And for what i know the only way to do that is trough actionscript.You're overcomplicating things. Let's get to the bottom of this.
The picture you added is something i can't do , I will upload my timeline
at 20th frame i used the action "stop" , and from there on an audio loops.
I have used way too many actions to put them all here but what i need now is to stop that looping audio at frame 20 , and start another one.
And there are no other ways but to use actions for that.
You can see at the bottom , there is the sound playing , after clicking one of the buttons that are on frame 20 you go on to frame 21 , on frame 21 the audio that plays stops and another one starts. But issue is on frame 20 here.
So again , i just need a action for a button that stops one audio and starts another one.
Hi , i have just recently started to work with flash and don't know much of the program yet. So i have this question here:
When the animation starts a music starts to play , and it keeps on repeating for a few times. The thing is that i made a button which is supposed to stop that music and play another one (also repeating for a few times) And for what i know the only way to do that is trough actionscript. I need a code for when i press the button that will stop one audio from playing and make another one start playing. Could anyone help me with that?
I have already looked at a few actions i could choose from but they didn't help , nor did i find any tutorials.
This is what i have so far:
button_20.addEventListener(MouseEvent.CLICK, fl_ClickToPlayStopSound_2);
var fl_SC_2:SoundChannel;
var fl_ToPlay_2:Boolean = true;
function fl_ClickToPlayStopSound_2(evt:MouseEvent):void
{
if(fl_ToPlay_2)
{
var s:Sound = new Sound(new URLRequest("(Jingle Bell Parody)"));
fl_SC_2 = s.play();
}
else
{
fl_SC_2.stop();
}
fl_ToPlay_2 = !fl_ToPlay_2;
}