ActionScript 3.0 :: Buttons After Stop(); Wont Work?
Dec 31, 2009
Buttons after stop code (vidPlayer.stop();) wont work.
I figured out the stop code needed to stop my videos from playing when you click another button, but with my stop code being on top of my "gotandStop ("label")" my buttons doesn't perform that function. I take the vidPlayer.stop(); off the buttons the buttons work fine, but then my videos wont stop playing when I click another button. Help, how I can get my buttons back working and still stop my videos from continuely playing when another button is clicked.
[Code]...
With the code exactly the way it is; when I like on the services button it wont work (unles I start from the about btn, which houses the vidPlayer) I want to beable to go into my website and click any button and it work, not go to the about button first an then to any other button.
View 8 Replies
Similar Posts:
Aug 2, 2010
My site has a thumbnail gallery that loads larger images that then jump to sections containing flash video. Everything works great when I test my movie and all buttons work. But after clicking on one certain button (my "about" button in the header), all of a sudden the large image buttons stop working and won't jump to the sections. Although they do still display correctly when over, down,ect.
View 0 Replies
Mar 8, 2008
I'm making a main page for my website in Flash 8, and I need to know how to stop the animation on my web page from looping, but not have the stop command affect the ability to use the buttons.
The web page: [URL]
The stop command hits after the flower-links finish blooming, but the same stop command also nullifies the ability to click on the flowers. While some of the stuff is running from movie clips, the animation on the flowers and title are in the main movie, and it would be too complicated and out of the question to make them all into movie clips..
View 3 Replies
Jul 8, 2009
I use eventListeners to jump between frames.One of my frames displays a video. I imported the video as a component using the 'import video' function.It plays fine.When navigating away from the video I use the myVideo.stop(); command in AS3 to stop the video from continuing to play.or some reason, when I do this the buttons on my main page stop working.The code I use on the movie frame is:
cr_back_btn.addEventListener(MouseEvent.CLICK, onCRBackClick);
function onCRBackClick(e:MouseEvent):void
{
[code].....
View 5 Replies
Feb 19, 2010
I have a container mc called lightBoxCont that I load a class into
Code:
lbx.initLightBox(12, Number(slideIndex), urls, titleText);
lightBoxCont.addChild(lbx);
when the user clicks on a thumbnail the user can close the lightbox by clicking on a button like this
Code:
this.removeChild(lightBoxCont);
This all works (or seems to). If the user then clicks on another thumbnail the light box appears again, but the buttons don't work. These were added in the class lightbox.
Interestingly if I trace teh number of children that lbx has I find that each time the user presses on a thumbnail it goes up. First time its about 30, next time its about 60, next time its 90 and so on.I think this is causing the problem with the buttons not working.
View 5 Replies
Jan 19, 2011
I just started using flash and Im hoping someone with more experience can help me out. When I add the stop code to frame one to stop the timeline on my homepage, the buttons Ive set up in my navigation bar do not work. But, if I do not have the stop code in the timeline, the buttons will work correctly. Without the stop code, though, obviously the whole timeline plays through and doesn't stop on the homepage, which is not desirable. So how do I stop the timeline on the homepage and still have my buttons work?
View 5 Replies
Aug 27, 2010
I have some bombs like this :
var sjunkBomb:Array = new Array;
for (var i:int = 0; i < sjunkBombMaxAntal; i++) {
var bomb = new sjunkbomb;[code]....
Each movieclip sjunkBomb contains an animated movieclip. When the bombs reach the bottom I want to stop the inside animation.I guess it's better to stop them so they affect the rest of the game if there are a lot of bombs. I know how to hide them with sjunkBomb[x] .visible = false; but if I want to stop them? sjunkBomb[x].stop(); doesn't work!?
View 1 Replies
Jul 1, 2009
I'm making a website using flash,And on my movie it says Welcome to Blah Blah Blah,And then a button appears, To make sure my button works,The writing turns to bold and goes bigger,When the button appears it works and goes bigger, Until it reaches the point in the timeline where it has stop();It stops my movie from looping or restarting which is what i want, But it stops my buttons from working aswell, How to keep my button working but movie stops,If you want me to explain more just ask
View 1 Replies
Aug 7, 2009
I have a movie clip with 15 frames. Each frame has buttons on it (mc's)... I was going to put the actions on the main timeline/stage and navigate within the MC from the main timeline. Is that possible? I can get the buttons on the first frame of the MC to work, but I can't seem to figure out how to target/make the buttons on the other frames work? I was thinking I could identify the path of the MC with the frame labels, but that doesn't seem to work. like: _root.RMChanger.(frame label).buttonOnFrame = function
I have to move a text box in and out over the MC backgrounds on the main stage... which is why I was thinking to do it this way? I've been switching back and forth bwtween AS2.0 and 3.0
View 9 Replies
Jul 8, 2005
I am having trouble with a job I am doing at the moment which has an mc with buttons within it. I want it so that when I roll over the mc it tweens from a small version to a larger version, and on this mc there are some buttons. At the moment I can get the mc to move but the buttons remain inactive and also the rollover states on the buttons don't work. I have attached a simpler version of what I am trying to do to this post.
View 3 Replies
Sep 14, 2009
I have three buttons and when I click the second one, the first stops working (e.g. no trace event and it won't go back to the frame "tab1") but the third still works. Then when I press the third button both the first and second no longer work. If I take out the gotoAndStop lines, the buttons work fine. The subsequent frames simply have stops on them.
b1.addEventListener(MouseEvent.MOUSE_UP,b1Pressed);b2.addEventListener(MouseEvent.MOUSE_UP,b2Pressed);b3.addEventListener(MouseEvent.MOUSE_UP,b3Pressed);
function b1Pressed(event:MouseEvent){ trace("b1 pressed");
[Code]....
View 4 Replies
Dec 4, 2009
I'm having problems with the flash buttons on the flash website i made for a client. or some reason the buttons in the top and bottom menu work on some people's computers but on some they don't. I don't know what to do, i had this code for all the buttons,
on (release) {
getURL("http://legaldepartment.ca/","_self");
}
and they worked on my computer but on others the buttons didn't work at all so i added this code to each button also
on(press) {
_root.getURL("http://legaldepartment.ca/","self");
}
and they still work on my computer and some other people's computers but still some they don't work on some people's computers.
View 2 Replies
Jun 1, 2011
I am using Flash CS4 with actionscript 2 to create an interacitve portfolio.I have 2 text buttons that work when I test them with "enable simple buttons." When I publish to IE these buttons won't work. I have created over 50 buttons using the same methods, they all work.
View 8 Replies
Jan 18, 2007
I am making a web site on flash. Im trying to do much of it with AS.Only on 2 movieClips I have more then 1 Frame and on the first frames both have them stop(); command, however both those stop(); commands do NOT work upon site load.
View 6 Replies
Sep 10, 2009
I can't even get a stop action to work.Ok I have a simple little tween of a box moving across stage. The instance name of the box is "box_mc" the tween ends on frame 25 on frame 25 on an actions layer I have the following actionScript3 written:
ActionScript Code:
import flash.display.MovieClip;
box_mc.stop();
View 2 Replies
Mar 1, 2009
I have an animation with 11 layers, 4 of them have a regular time line, 4 others have a actionscript animation(moving left to right and replacing left when disappear(they are clouds)), 1 other is just a layers for actions, and the last 2 contains a MovieClip named "fond_mc" and "verdure_mc"(i'm french, in english: "background_mc" and "grass_mc").
[Code]...
View 1 Replies
Dec 5, 2009
I have a stop(); action on the last frame of my main timeline, but it's not working. The movie just keeps on looping.
I've tried:
addEventListener(Event.ENTER_FRAME,myFunction);
function myFunction(event:Event) {
stop();
}
but that doesn't work either. Neither does this.stop();
View 3 Replies
Nov 15, 2009
I checked out a lot of sites but can't figure out how to do this. without the mask my animation of a button growing bigger works well, the stop command is respected. But i want an image inside the form of the button that grows larger, so i took a picture on a layer below it, and made the button into a mask. visually, it works fine, but it loops, since the layer in mask mode doesn't respect the stop ();
View 1 Replies
Jan 3, 2010
I follow this tutorial to T and try look on google but can't answer to this one all want button do play movie and stop when click on the button .here my actionsript 3.0 code can you please tell me what i'm doing wrong.
Quote:
go.addEventListener(MouseEvent.CLICK, startplaying);
function startplaying(event:MouseEvent):void {
[code]...
here error getting in flash cs4 when try test movie
1120: Access of undefined property Puase 1120: source Puase.addEventListener(MouseEvent.CLICK, stopplaying);
View 7 Replies
Sep 16, 2011
I'm creating a flash of a piano in which you hit a button and it plays that key. I have a single file of the entire scale, and I tried to put a stop(); command after each note- however it's not stopping. Shouldn't the stop command respond to the actionscript since the sound file is in the timeline?
Here's a link to the FLA file- I've barely started working on it, so it's hardly coded except for the stop actionscript.
music_scale.fla
View 1 Replies
Dec 30, 2010
When I work on my Air Project, I used stop(); to stay in a frame(which is my menu), I built the .air for testing purposes and the frames keep looping, as in, it plays all the frames, and it won't stop as it's instructed to. I'm building my Application in Flash CS5, not Flex.
View 1 Replies
Oct 2, 2010
I am trying to stop a function in as3, I tried: delete.functionName - but it didn't work, I tried to achieve the same things using addEventListener and then removeEventListener, but that is not what I need that function has caurina tweener inside it and it has multiple tweens with multiple delays seconds, so all of the tweens are started and the seconds continue to tween but what I want is to simply stop that by stopping the function which holds the tweener so it should stop everything what is inside that function for example it could stop that function when it is mouse hovered on any object
View 11 Replies
Oct 28, 2009
Demonstarting basic AS3 to my Flash class tonight I discovered a strange anomoly. I created a scene with multiple frames and added a stop(); action on the first frame. Simple! But when i save the fla file to a USB drive and test the movie or even publish it to an exe, the stop command no longer functions. Save the fla to the hard drive and test/publish, it works fine. I tried this on multiple computers using CS4 with different USB drives and even different fla files created from scratch. The problem is consistent. gotoAndStop( ) also ceases functioning when the fla file is saved to the USB drive and then tested/published. (BTW, I also tried to do it with AS2 and the stop() command functions correctly on both the USB and hard drive).
View 12 Replies
Jul 24, 2007
I've used the stop(); function on my actions frame, top layer, on all of my frames. I've tried using it on keyframes for all of the frames, and on one "master" actionscript frame (spans the movie).
stop(); won't stop my master timeline. I've traced it, and it isn't being activated--so that tells me that for some reason, the actions on the frames (not in the document class file) aren't being triggered.
Is it related to the fact that I have a custom document class? I can't think of anything in there that would cause this to happen, and I even put a stop(); in the beginning of the constructor function. (Didn't work so I took it out.)
This isn't a looping movie clip inside of my timeline, it is the master timeline itself.
View 6 Replies
Jan 5, 2009
I am using CS3 actionscript 2. I am having trouble with the preloader. It works, but it is causing the stop commands throughout the rest of the movie to not work. I know it is the preloader because when I remove it, it works. It is just a basic preloader. index12.fla has it with the preloader and index13.fla doesn't.[URL]...
View 3 Replies
Aug 18, 2011
I am looking for a code or method to stop a SWF decompiler from taking my work. Is there anything I can do to protect my files from a decompiler? I searched but could not find any info on how to protect my SWF.
View 4 Replies
Apr 15, 2009
I am trying to get a play/stop function to work in one button. I know how to stop the play head and start it again with two separate buttons but can't do it with one button that toggles between the two states.
View 5 Replies
Nov 3, 2004
I created 3 movieclips each are loaded externally.
videoHolder1.loadMovie(movie1.swf);
videoHolder2.loadMovie(movie2.swf);
videoHolder3.loadMovie(movie3.swf);
I have a play and a stop button. So when user clicks on the stop button all 3 movie will pause and play will resume the movie.
playBtn.onRelease = function(){
videoHolder1.play();
videoHolder2.play();[code]....
What happens is, the play and stop button works fine when running on the Flash Player. However, when I used IE to open the swf file, the movie and everything appears and working, just that the play and stop button won't work in IE or other browsers.
View 2 Replies
Dec 10, 2009
I'm trying to create an informative flash program on Mt. St. Helens about the dust cloud it created when it errupted. I have everything ready to go including the buttons and the pages the screen or next image it should take you to. I'm just stuck on how I get the buttons to actually take you to the next frame.
View 24 Replies
Feb 4, 2010
if i'm on the home page of this flash site, a button on the nav menu loads the correct scene the first time it's clicked, but if you nav to another scene and click the first one agin to return to it, nothing happens. why would a button behave one way on a scene and another way on another scene?
View 1 Replies