ActionScript 2.0 :: Add Another Button That Pauses/plays The IntroPage.swf?
Jul 13, 2009
This code loads an external intro movie, and allows me to remove it when I hit the back button.I was wondering how I can add another button that pauses/plays the introPage.swf at whim from the container .swf file?
[code]...
View 1 Replies
Similar Posts:
Apr 25, 2010
I want to have a button that pauses the flash movie. When clicked, the flash movie stops and another animation plays.Specifically Im making a flash movie about the evolution of geometry for my math class. Animations are going to be playing, and when my teacher clicks the Info button, a screen pops down with the related information about the scene playing.
View 1 Replies
Nov 24, 2006
I have many buttons (symbols). This is what I want it to do: -Select a button on the screen, and then a movieclip plays. - If the user selects any OTHER button on screen, a message box displays a message.
View 2 Replies
May 2, 2006
[Code].....
Ok- so the idea is that when you click a button it plays the movies assigned to the variables gallery & button to the frames mentioned. Then the variables are changed and then when another buttons is clicked it does the same - 'except it doesn't - it does it once then sits there I have to use variables because there's a lot more buttons..but i don't understand why it doesn't work - it seems such a simple and obvious thing to try and do - why is it so HARD???
View 14 Replies
Jul 17, 2009
I have a simple movie clip of fading in text displaying on page with a sound. also have a button that allows user to go to the next frame. It is an exercise for students that basically goes like this: object presented in each frame, spelling (text) for that object fades in on mc with sound attached to mc, then button activates to let them move on to next. Since they are trigger happy, I don't want the button that allows to move on to activate on the frame until AFTER the movieclip and it's sound have played out (which is like 2 seconds so not a long wait) - otherwise, they would just keep clicking next and not listen to the material presented (it's very young children).
How do I set this up? I knew it's likely very simple, but I'm a newbie. Of course, I could always just do it on the timeline, but I have a ton of material, so am trying to use actionscript to be more efficient. for even younger kids, am considering setting this up so they can move to next frame through any keypress. I know how to set up a certain key, but not ANY key.
View 2 Replies
Nov 28, 2009
In my flash game, every time you click a button, it plays a short sound. Almost all of the buttons work - Except for a few random handful. Those couple play the sound twice. I don't know why either - I double checked everything.None of the frames have sound. The buttons that play twice are only set to play once. I didn't do anything different between the ones that worked and the ones that don't work.
View 2 Replies
Dec 11, 2011
I want my flash file plays one and stops in the end and only plays again if play again button is pressed.How do i do it?
View 1 Replies
Jul 28, 2009
I'm working on a flash content slider thing (i.e. it shows a message and then transitions to the next, and there are buttons at the bottom to navigate to each message). Now I want it to actually stop playing when you navigate to a specific message, instead of continuing to play from there. The problem is there's a fade transition, so I essentially need it to go to the first frame in the transition and play (what it does now), but then STOP once the transition is complete. I don't know how to do this without adding a global stop() to that specific frame, and I don't want to do that because I want it to, by default, rotate from one message to the other.
View 3 Replies
Jul 27, 2010
I'm trying to create a button that plays one movie clip to exit, then jumps to another frame to play a movie clip to enter another.[code]...
View 4 Replies
Aug 4, 2010
I have a movie clip with a sound at the beginning of my project, and when I click a button in another scene it starts playing the voiceover from that clip. I don't have the button linked to that clip.
View 2 Replies
Dec 15, 2010
I'm trying to make a button that plays a tween, and after that tween finishes playing it stops. If you press the button again it plays the tween backwards to the very first frame where you originally came from.[code]...
View 7 Replies
Feb 16, 2010
I have 4 buttons on the stage. Each button controls associated MCs. When the button is clicked, the MCs fade to invisible (alpha). Now I want them to fade back in when the buttons are clicked again. Is there a way to get them to play in reverse or would you suggest that I do all of the fading tweens dynamically instead of in the MCs timeline? By the way, there is a stop command at the end of each MC.
Code:
this.cloud_mc.cloud1_mc.stop();
this.cloud_mc.cloud2_mc.stop();
this.cloud_mc.cloud3_mc.stop();
[code]....
View 1 Replies
Aug 24, 2004
Button a, when pressed triggers a few things. I triggers a mask to tween in to uncover some text. But the movie will only play as long as i have the button pressed .
View 4 Replies
May 20, 2010
I'm trying to create a button that plays a movie clip and stops when it's moused over. I've attached a file (help.fla) that illustrates my problem.
View 8 Replies
May 3, 2006
I want to make it so that when I click on a certain button, it plays a new music clip. I am trying to do it by selecting the button I want, then going into behaviors, then +, then Sound, Play Sound... It then asks for the instance of the audio file that I want to play... but I don't know what it is.
View 6 Replies
Jul 30, 2009
This should be simple but...I have several buttons "Questions" on the main timeline. The answers to these Questions are at specific cuepoints in the flv. This .flv has nav.cuepoints inserted during encoding.Click the button needs to load the flv,then automatically go to the specific cuepoint. Then it needs to run, eventually, to the end of the flv.I dont want the user to have to load the video first then use the cuepoints.I also dont want the video to load at the start, only after one of the questions(buttons) have been clicked.
Will the flv buffer from the cuepoint or does it have to buffer from the start of the video regardless of the cuepoints?
code Im playing with:
import mx.video.FLVPlayback;
//play at start
var my_flvPb:FLVPlayback;my_flvPb.autoPlay = true;[code].....
View 2 Replies
Sep 2, 2009
All my sounds work however, the play button only seems to play my sound when I click on the pause or stop button first! Plus, my stop button acts like a pause button, it doesn't start the song from the beginning once it stops. [code]...
View 3 Replies
Nov 17, 2009
I'm using AS3 in CS4. I have a problem which i can't get past: I have a button which when clicked I wish it to play two movie clips (blind_mc, text_mc) when clicked.. however I do not wish them to play at the same time (as the script below achieves).. but to play one after the other.
I cannot put them on the same layer or join the two togther for many reasons including -- I have many different buttons i wish to apply this too all with different number of movie clips and orders of play, therefore I would have to create excessively long layers for each and every click.
function goHome(e:MouseEvent):void {
blind_mc.play();
text_mc.gotoAndPlay(2);
}
View 3 Replies
Jan 3, 2010
So I got a toggle button that plays sound when clicked, now I need it to stop playing sound when clicked again.
[Code]...
View 1 Replies
Jul 12, 2010
want to make a time line (timeline is my graphic not the timeline in cs4, like historical timeline WWI, WWII, ETC) with clickable dates (D-DAY, Pearl HARBOR), when you click on a date it will fade in a semi-transparent box that has text (still seeing the original stage in the background behind the semi-transparent text box), when you are done reading the text box you can hit GO BACK to go to the historical timeline.I only have been using flash for about 3 months so bare with me.
I understand button symbol, movie clip symbol, etc. I can make it so that when you are OVER the date it plays an animation of the text box fading in but is kind of bad because if you move the mouse off the date it goes away, which is why I want to make it clickable.Basically I thinkI am using CS4 by the way.In short, make a button that when hit plays a movie clip animation of the textbox fading in front of the historical timeline, I believe I can easily do the go back by using the gotoAndPlay(); feature on the go back button to go to the beginning of the scene.Sorry about the long text, I am pretty sure the answer is easy.
View 2 Replies
Apr 29, 2010
Im trying to create an e-mail button that displays a small progress bar that plays for a sec or two, the button itself and the progress bar have been done but i dont know how to make the button play the movieclip without going to other frames in the movie, seeing as ther is only one (its a side menu for my warcraft mapping website). ive tried the loadmovie option but it just doesnt seem to like loading onto the screen (it loads in random locations lol)
View 2 Replies
Dec 27, 2010
I'm using Action Script 2 and FlashMX version 6.I have a sound volume slider that I am trying to make visible on rollover and otherwise invisible all other times. The action script I'm using is:
slider._visible = false;
on(rollOver){
slider._visible = true;
}
[code]...
When I try to put the script on the instance of the button, the action window tells me actions can't be applied to it.When I delete the script, it still is the same problem...invisible on rollover...but the output messge is this:
Scene=Scene 1, Layer=Inv_btn, Frame=1: Line 1: Statement must appear within on handler
slider._visible = false;
I've tried to put the actions in a separate actions layer but sill have the same issue and the same output as when I put it on the invbutton layer.I want to use the sound slider to control the volume of the music in a flash animation.
View 9 Replies
Jul 12, 2002
look at the footer below, you'll see a circle around your head. That's your head. If you hold mouse button the MC plays. NOW...if the field vision (green thing) touches your head WHILE holding mouse button...it sends you to frame 2 or choose your own.
View 7 Replies
Mar 18, 2009
I have a movice clip of a container "traveling" down a conveyor belt. I duplicate this movie 30 times (to simulate 30 items moving down the line). The code I'm trying is below.My problem. When the 2 duplicate clip item is created - I want to pause the duplication, (stopping items on the conveyor belt) play a movie clip (next to second item to explain what has happened), then continue duplication, stop duplication again at eighth item, (do similar to #2) play another movie clip - then continue all duplication until I hit 30. At which point they all start falling off the conveyor belt.
// NOTE, this is a movie clip, not on the main timeline...so all control needs to happen in this movie clip's timeline
delay = 1
count = 0
i = 0
[code]....
View 1 Replies
Jul 18, 2011
Does flash pause its execution somehow if the browser tab in which its residing is inactive? developed a multiplayer game using cirrus and when I tried to play it by switching tabs, aking a move in each tab, there were some inconsistencies regarding the way the game executed as if the inactive tab pauses the flash execution and then resume once it was active.
View 2 Replies
Oct 15, 2009
I am going to have 2 flv videos on an HTML page and a footer link at the bottom that will pop up the terms and conditions with a video in that (silly yes but bare with me). Is there a way to stop all SWF videos once that link is opened so that video is the only one playing?
View 0 Replies
Jul 5, 2010
I want to make an instructional video with various panning, cursor movements, and info box popups. I'm going to attempt to do this video in all actionscript and expect to use the Timer class and Tweener for all the tweening. What's the best way of approaching a project like this? Can Tweener be stopped in between its tween in order to pause?
View 3 Replies
Aug 6, 2009
I'm trying to create a button that plays random frames, and not repeat the frame. Like, if Frame 3 was shown, it won't be shown again. I'm kinda new to Action Scripting.
View 1 Replies
Sep 5, 2004
Like if i have an instance of an mc called NavBT which is inside a button. now on the button actions can i put this code:
on (rollOver) {
this.NavBt.gotoAndPlay("lb-over");
}
so that when i rollover the button it goes and plays the label called lb-over which is inside the NavBT?
View 1 Replies
Jun 8, 2011
I recently made a flash file with a fps of 24 with a motion tweened oobject which moves from below and stops when it's already on the upper part. the only code i added is the stop(); on the last frame. When I Shift+Enter it, the motion tween works flawlessly. The problem is, when I Ctrl+Enter it, the motion tweened object suddenly pauses three times in the middle part.
All images included have "Allow Smoothing" checked.
View 1 Replies