ActionScript 3.0 :: Get My Moveiclip To Stop Playing?
Dec 25, 2011I can't get my moveiclip to stop playing.[url]....................
View 2 RepliesI can't get my moveiclip to stop playing.[url]....................
View 2 RepliesI am making this website, which contains a load file, which contains a movieclip holder, which holds all the different parts of the website.
Now within the portfolio.swf, which is within mcholdr, inside load.swf, there are several images, which are buttons. On clicking one image, I have code which dims, i.e. reduces _alpha for all the buttons and disables them. Now when I test portfolio.swf alone, this code works, but when I access portfolio.swf through load.swf, the code is not working.
[Code]...
Nothing works. Is this a path problem??? How do I access these buttons?? I want to use the loop, as there are many buttons, so a simple img1._alpha will not work, as I will have to type this out for each button. How can I get the same effect using the loop??
I am using AS2 in CS5.5.I am creating a project for a class that introduced me to adobe flash. The issue is I have gotten to a certain point about 15 scenes. During say the 15th scene scrolling through the timeline animations works fine, playing it on test scene works fine. When I go to play it on test movie it stops at a certain point. At first I thought it might have been a misplaced stop action but there is none to be found. The weird part is every other scene I create after that continues to freeze as well, the images are there, but the animations won't play. All my previous animations play before those with the issue, it's justThese new ones won't play for some reason in test movie, but work completely fine in test scene and the timeline.
View 4 RepliesI am creating a game that has 6 movieclips all on the main time line of the game. Each movie clip has three buttons that when clicked plays, pauses or stops a sound clip.When I press any of the sound clip play buttons that sound starts playing, the problem is when I click any of the other sound clip play buttons those sounds also start to play. Is there a way I can disable the other sound clip buttons while the current sound is playing then enable all of the buttons when the current sound has stopped.
This is the code that creates one of the sound objects
[Code]...
So I made a few buttons with sounds within them and when I publish it they work just fine. But what I want them to do is;
Say I click a Button.The sound starts playing.Then I click it again, before the sounds done playing.I want it to stop the playing sound and start playing the button I just clicked on, whether it be the same button, or a different one.Right now it just ends up sounds like an echo because it'll play it as many times as you click it.
The problem I have is I click the play button and start playing. Then I click next and when I click play for another song the songs overlap. How can I stop whatever song is playing and start playing the new one? Has to stop the prev song when I click play_brn.
[Code]...
ok so i have a button that plays an animation for fire when held down. and when realsed goes to and stops and frame one. when it reaches the end of the time line it goes to and plays at frame 10 and goes back to the end of the timeline. I have a sound for the fire animation that plays for the effect. The problem is the sound keeps going untill its over even if the button isnt held down. and when the playhead reaches the end of the timeline it goes to and plays and frame 10 and it replays the sound. if i hold it down it will just keep playing the sound over and over from start to finish. what i want it to do it when i hold the button down i want it to play the sound and when released it stops the sound where ever it is at. I also dont the sound to play again if there is a sound already going to stop it from playing 20 sounds at one time it gets loud and you need asprin after about 5 seconds of that.
View 2 RepliesI have an mp3 file that i dragged into a layer, which starts playing at the beginning of my movie.if i preview, i can hear it playing.
annoying problem is that if i stop or pause the preview, the music keeps playing and if i start it again, another instance of the audio track starts playing again so that they are playing at the same time.
Ive got a project with a fairly complex arrangement of menus and a narrated tutorial of sorts that is large (in terms of Mb) compared to the menus themselves. Since the tutorial is likely to be played only once, if at all, I don't want to load the asset unless needed. To do this I'm using the following code to load an external swf (the tutorial) and attach it to an mc container (mc_launch). A loader bar will be added later but for now it works, except: if the user navigates away from the tutorial (jumps to another frame in the menu timeline) the audio of the child attached to the mc_launch continues to play even though the instance of the mc_launch is no longer on stage. Shouldn't all the child objects of the container go away once the instance of the container is gone? If not, do I specifically have to execute a mc_launch.removeChild(loader) before navigating away from the instance of mc_launch?[code]...
View 5 RepliesI have an swf loading on to my main timeline:
_root.createEmptyMovieClip("container", 1);
loadMovie("bucs.swf", "container");
container._x = 549 ;
[code].....
i have a simple website i'm building. 4 sections/nav buttons. on the main homepage a video automatically starts playing, but when you click on another nav button which takes you to another frame in the site that displays another section - the video from the first homepage section is still playing.here's the code i'm using on the buttons that go from one section to the next:
Quote:
home.addEventListener(MouseEvent.MOUSE_DOWN, homeNav);
function homeNav(event:MouseEvent):void {
gotoAndPlay("home");
}
[code]....
what do i need to do so that the video stops playing when you go to another section from the homepage/section?
I've just posted a reply in the ActionScript3 Forum as someone else has had the same problem, but I can't find a solution so posting again here as it's taken me about 5 hours of getting nowhere and I'm sure this is really easy... have one frame on my time line called "theatre" and another called "Video" the buttons between the two work but the video continues to play in the background when I go back to the "theatre" frame on the same time line and I can't find a stop function that will work A button on my main page links to Video on the timeline with following AS3
btnVid.addEventListener(MouseEvent.CLICK, clickbtnVid);
function clickbtnVid(event:Event) :void {
gotoAndStop("Video");
[code]....
I have several buttons on the stage, each one will play an external sound file when clicked. If the user has clicked say button_1 and then clicks button_2, I need to stop the sound currently being played, before starting the sound from button_2
This is my code:
import flash.media.Sound;
import flash.media.SoundChannel;
import flash.net.URLRequest;
import flash.events.Event;
[code]....
So... how can I stop the sound currently being played, when the user clicks on the next button...
I've agreed to helping a friend out to make a few changes to her website.
One of the things I need to do is make the music turn off when you click 'musicff'. It doesn't work at the minute and for the life of me I can't seem to figure it out. Below is the coding on one of the frames [code]...
1) I'm on the portfolio page, and I click a button to load a video.
2) Let's say I change my mind and press "back" button BEFORE the video has a chance to load completely.
3) I am back at the portfolio page. Everything looks okay BUT the video eventually loads. I can't get rid of it if I remain on the portfolio page.
i have a problem that i've already see that is pretty usual, the videoplayer that i have works fine but when i click in a button to go to another page the videoplayer doesn't stop,the audio continues playing even when i'm not on the videoplayer page.I've already found some solutions in the web but none of them worked,probably because i didn't put them in the right place
The code is a little long:
// ###############################// ############# CONSTANTS// ###############################
[code]........
How can I stop a scene from playing until I tell it so?
View 4 RepliesI am having a problem stopping external swf from playing. I am currently using FlashCS4 and publishing to Flash Player 10. I would really like to use the code
"loader.unloadAndStop();"
to stop the swf. I tried using it but I keep getting the following error:
1061: Call to a possibly undefined method unloadAndstop through a reference with static type flash.display:Loader.loader.unloadAndstop();
I read somewhere that since the swf files were published in Captivate (also using Flash player 10) I have to load the swf into a flash movieclip first then try the loader.unloadAndStop code.
fscommand("allowscale","false");
fscommand("showmenu","false");
//import flash.display.MovieClip;
var Xpos:Number = 220;var Ypos:Number = 105;
[Code] .....
I have a instance on MediaPlayback and a button on one of my frames, i need to the button to either stop/pause the media file, is there anyway of doing this?
View 3 RepliesHow do you stop a FLV from playing automatically when the user ends up doing something that doesn't include pushing the stop button but causes the FLV to no longer be visable. The project I'm working with. [URL]
View 4 RepliesI have used previous versions of Adobe Flash and now have Professional CS5.5, and I am coming to you with an embarrasingly, ridiculously stupid question that is absolutely stumping me. My movie cannot stop playing, no matter how many stop(); I've embedded in there. I created a layer on top, added the stop(); code at the end of the scene, and the swf ignores it and starts playing the next scene. As an experiment, I put a stop(); on the very first frame of the .fla, but that too is ignored. I have dozens of stop(); action commands riddled throughout the movie, but not a one of them is capable of stopping the exported movie from playing and looping. I assume there must be some simple, easy property or code trick or document preference or something that I've overlooked, but I can't for the life of me figure out what it is.
View 3 RepliesI have a flash web banner that I need to embed in some pages. The banner is a small movie. I don't want it to play on some pages as it can get annoying. I tried setting the following but it didnt do anthing:
Code:
<param name="play" value="false" />
How can I prevent it from playing?
I have this code in the second frame to play a song, and it works fine. The class of the sound in my library being "MySound". var snd:MySound = new MySound snd.play(); Now I need the song to stop playing from a latter frame.
View 1 RepliesI have some navigational buttons and one being a video player using XML to load the videos. When I click to navigate to another section, the page comes in however I can still hear the video.
Here's my code for the button sequence:
asstgm.addEventListener(MouseEvent.CLICK, asstClick);
function asstgmOver(event:MouseEvent):void
{
asstgm.gotoAndPlay("_over");
[Code].....
Is there a way to just disable the video player (xmlPlayer1_mc) from working once I click out of that section?
I made a simple audio player following a tutorial on Youtube. It seems pretty good, except that the tutorial just starts and stops the sound file. I need it to be playing and for it to pause and resume.As it stands now, the music does play, but the pause button does nothing.Here is the script:
Code:
var loadSnd:URLRequest = new URLRequest("http://jeffreyworthington.com/intro_music.mp3");
var thisSnd:Sound = new Sound();
[code].....
I am trying to get the video clip, which is swf format, I have loaded it in and placed it where I wanted it to be. I did this in AS3 here is the code
// adds the the opening swf movie
var opening_loader:Loader = new Loader();
opening_loader.load(new URLRequest("opening_movie.swf"));
[code].....
how to stop an swf playing movie?
View 4 RepliesI've got my preloader working where it loads up the external swf. The thing is what I want to happen is instead of once the loading progress reaches 100% and starts playing my swf, I want the preloader to hold off on playing the Swf and simply allow me to trigger the playback with a button. I can't seem to figure out how to stop the swf from playing once it reaches 100%. here's my code
Code:
var mcl:MovieClipLoader = new MovieClipLoader();
var mclL:Object = new Object();
mclL.onLoadProgress = function(target, loaded, total) {[code].........
I have a micro site that is really one large flash file with labels driving the navigation. I have a couple of videos in certain sections, but when I click onto another button while the video is playing, you can still hear the audio.I want to disable the player once you "click" away.The code I have for the button(s) on the page is as follows:
servicesBtn.addEventListener(MouseEvent.CLICK, serviceClick);
//Back to the Main stage for navigation
function serviceClick(event:MouseEvent)[code]....
audio of a movie playing when I exit the frame - it's probably something simple that is yet evading me ...
The FLV works just fine, auto plays when entering the frame and uses a preset skin. The frame it's playing on has AS code stop(); on it.