ActionScript 2.0 :: Stop() Or _root.stop() Doesn't Stop?
Aug 26, 2009
I have a contact form for which I have a tween. That contact form consists of two keyframes, first the form, I tried putting the code stop(); in the first keyframe but it didn't stop. I then changed stop(); to _root.stop();, which didn't work either. I have to stop it because otherwise users would see a thank you note before they even enter their details. What can I do? Converting to movieclip didn't work either, besides it puts a funny character when I press AltGr
View 2 Replies
Similar Posts:
Jan 5, 2010
Im attempting to make a preloader. I am very new to action script so this is what i have.
Code:
ifFrameLoaded ( "UC" ) {
gotoAndPlay ( "home" );
}
as simple as it gets, right? Wrong, the preloader works however is get this error 1087: Syntax error: extra characters found after end of program. The preloader it self works it plays and when the movie is loaded it begins the movie, however the movie doesnt stop at any of my stop commands and keeps looping through itself over and over again till i exit the window.
View 1 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
Nov 1, 2010
When my animations are playing in the flashplayer and you rightclick and uncheck the play command only the animations in the main timeline stop playing. All the child animations continue to play. How do I make it so they all will stop playing when play is unchecked?
Is there a event listener that monitors if the movie has been stopped?
View 11 Replies
Jun 12, 2009
I thought I had a handle on the timer class (even just a beginners understanding), but I'm having trouble with it.I have an event listener for the timer and it starts fine i get a delay, then a tween,but when I place a myTimer.stop();in the fuction the listener called (to stop it) it dosent stop.it will repeat placing the first image, and then call the first function again
......Wait its placing the first image in (a couple of lines before the start), so Its restarting the whole movie, not just the function?
myTimer.addEventListener(TimerEvent.TIMER, tweenone)
myTimer.start();
function tweenone (event:Event):void[code]...........
View 6 Replies
Nov 19, 2003
I put the "stop" action at the end of my movie on the last keyframe, but the movie doesn't stop!
View 14 Replies
Jul 30, 2011
I have a movie with 3 scenes, the last one has only just one statement on the timeline:_root.stop(), and there are not library objects neither ones created by code. Just and empty stage with the statement I told.I know I am not an expert in Flash yet, the entire design of code in timeline and movieclips are not very clear and tidy.When the movie reaches the scene three, it stays one or two seconds (not the same amount of time in each playing) and replay from scene one and the things become chaotics from there. I revisited one and two times the code and objects from movie explorer tool and can't figure out what demon makes re-start the movie when it must stop in the last scene
View 1 Replies
Feb 1, 2008
I just got Flash CS3. I'm trying to get my main timeline to stop in the begining, on button press to play and at the end stop again. In AS2, you would just put stop(); on the first keyframe and stop(); on the last key frame and program your buttons accordingly.
The stop(); does not work!!!! It's driving me crazy. What am I missing? I've gone through the tutorials in Flash and they don't work either.Also, if you have MovieClip that contains an animation and you don't want the movie clip to be on a continuous loop how do you stop it from playing. In AS2, I would put a stop(); on the last keyframe of the movieclip's animation. This also does not work in AS3.
View 9 Replies
Oct 13, 2011
How do I stop a class file from automatically inserting itself into the .fla file. I want to insert it manually into a frame, and then tell it to stop after I leave the frame.The following is the code included in my .as file.
ActionScript Code:
package {
import flash.display.*;
import flash.events.*;[code].........
View 3 Replies
Jun 21, 2009
I've tried a couple dozen things to try and stop this movie clip, even down to the bare bones basics and its not working.I have an imported TIFF sequence that i imported onto the stage of a movie clip. Its 73 frames long, i want it to stop on frame 73.So i add the usual stop(); command but it doesn't stop, it keeps looping.On the main layer i put this movieclip in i have an AS layer that also has stop(); and moviclip.stop();But it doesn't stop at all. it just keeps repeating.I put it down to this bare basic setup just to see if i could even stop it. But its not stopping.Layers -> and stuffScene 1Content - movieclipMCActionScript - stop(); movieclipMC.stop();Movieclip - keyframes consisting of image sequence 1-73. frame 73 has stop();
View 1 Replies
Jun 8, 2005
I have a movieclip that I want to be scaled to 400.After that I don�t want it to scale anymore.How can I stop it going back to it�s original value and scale again and again.I have the as in "On enter frame",I dont want a button to be pressed to start scaling.
View 6 Replies
Mar 13, 2007
i have programed a play button using:
[Code]...
now i am trying to program the stop button to allow the user to stop mid song....
View 4 Replies
Jul 12, 2010
Have a question about the _root.stop(). I have a pause and play feature in a flash player so the user can stop the presentation along with all the voiceover that streams with the presentation. I used the _root.stop() in the flash player hoping it will stop the main timeline, but also other embedded movieclip timelines. It stopped the main timeline, but not the other ones. How do I stop both timelines at the same time? the _root.stop() was not working for me.
View 3 Replies
Jan 29, 2010
my reverse button causes the timeline to ignore the stop() function on its keyframe and play backwards all the way to the start. Since it keeps trying to play the previous frame, it's frozen at frame 1.
Code:
stop()
// Reverse button //
var reverse:Boolean;
rev_btn.addEventListener( MouseEvent.MOUSE_DOWN, down );
[Code].....
View 12 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
Sep 10, 2011
On a recent project I am working on, I created an event-based sound engine. Different components within Flex will be registered, and then the controller will listen to events and handle the information correctly. So, it just takes a custom SoundEvent or ChannelEvent to alter one of the channels, or play a sound.
I can not quite figure out what is wrong with my code, and I am finding myself snow-blind to the issue at hand. At first, I was going to rewrite it but I figured it would be better to learn from my mistake. Also, I realize that this is not correct for streaming sounds, but I am working off a local sound library until I get it up and running smoothly.
Here is the code for the SoundEvent:
package code.events
{
import flash.events.Event;
public class SoundEvent extends Event
[code]....
View 3 Replies
Dec 9, 2009
i have mp3 player that i've written now i load that swf file into my new project bu i can't stop it when i go to another menu
could i write SoundChannel.stop and stop all channels?
View 1 Replies
Jan 2, 2004
Is it possible to play and stop a number of frames later, without using stop() in the frames? Like when I click a button frame 20 will start playing and it stops 30 frames later, all defined by the actions of the button..
View 3 Replies
Jan 2, 2004
Is it possible to play and stop a number of frames later, without using stop() in the frames? Like when I click a button frame 20 will start playing and it stops 30 frames later, all defined by the actions of the button.
View 3 Replies
Aug 1, 2004
I have a MC that follows the mouse. I want to do so the MC will smoothly/softly stop when i stop moving the mouse. Is it hard to code, And it would be very nice if someone could do some code for it
View 2 Replies
Jun 5, 2010
how to stop spray when the mouse is stop
import com.greensock.*;
import com.greensock.easing.*;
stage.addEventListener(MouseEvent.MOUSE_MOVE,spray Flowers);
[Code]...
View 9 Replies
Feb 8, 2007
I have an interactive flash application that I'm building, but it's gotten kinda large (~200k) because of one large png file. So, I want to build a preloader for it, but I seem to have some difficulty getting it to a) stop looping back to scene 1, or b) look good if I use stop();
for some reason, the folowing scene's moving elements look crappy if I use stop(); in it's first frame in order to stop it from going back.
I don't want scene 1 to continuously reappear, but stop messes with the moving elements in scene 2.
View 3 Replies
Aug 29, 2009
I have my Flash piece with three tabs...HOME, VIDEO and PHOTOS. If you go to VIDEO I will have several buttons that you can choose to play different videos. Right now I just have one setup. Once I click the button I jump to a new frame where i have the FLV player ON THE STAGE. The video runs great.....until I go to another frame label like Photos or HOME. The FLV player is NOT on the frame where these others are but yet it still keeps playing.
When I started to try and stop the movie I put "myFLVplayer.stop();" within my button code for the PHOTOS button. This stopped the FLV ONLY if I had went to the VIDEO section and started a movie. If I click the PHOTOS tab before the movie was played I get an error message "TypeError: Error #1009: Cannot access a property or method of a null object reference.at fish_2009_AS3_fla::MainTimeline/photos_clicked()"
Here is my code on Frame 1 of my file with the code in each button...this DOES NOT WORK....why?
ActionScript Code:
stop();
home_btn.addEventListener(MouseEvent.CLICK, home_clicked);
video_btn.addEventListener(MouseEvent.CLICK, video_clicked);
[Code].....
I also tried taking the "video_player.stop();" code and placing it on each of the three frame where I jump to for each section. That did nothing. In the old days when I did this I would have one FLV player on the stage spanning several frames. I wold then jump to specific frame and just load the new FLV into the player. Once I left that frame the movie stopped.
View 4 Replies
Jan 1, 2012
what wrong with the functin 'stopFish' Without this function the fish in the tank swims but when I add it, it doesnt anymore. I just want the fish to stop swimming after I clicked it and start swimming after another click.
View 1 Replies
Dec 1, 2004
give me the actionscript for a bar that has a play and stop button to play and stop frames in a flash movie. i would be gratefull if you could as i am really stuck
View 2 Replies
Dec 22, 2008
I have a swf with 4 scenes, in each scene there's a FLVvideo. I have buttons going to prevScene and nextScene and when goback and forward I hear the sound of another FLV,?the code for the buttons (for example) is
button1.addEventListener(
MouseEvent.MOUSE_UP,
function(evt:MouseEvent):void {
[code].....
View 3 Replies
Jul 20, 2009
I am trying to create an app that lets the user draw on a stage. I can start drawing, but the app doesn't stop drawing. I don't know if this is an Action Script issue or if I have created a structure that just doesn't work. Here is my code:
[Code]....
View 5 Replies
Oct 14, 2009
I'm experiencing difficulty when playing sound files. When I start the playback of the timelime using the enter/return button everything plays as it should. When I press it again to stop, the visuals stop but the sound file in the timeline just keeps playing until it reaches the end of the track- even if I have cut some out of the timeline. I used to use mx 2004 and never had the problem. Note: I am using this in college not on a personal computer.
View 1 Replies
Jul 14, 2010
I have movie clip buttons with a dynamic sound withing a slide show. Slide show consists of 3 movie clips connecting on frames 1, 300 and 900. The movie clip buttons with sound over are within the connecting movie clips. My problem is that although the sound and buttons work fine most of the time, sometimes, particularly if I mouse over the button wile it's transitioning on one of the connecting frames (300, 900), the sound doesn't stop... I'm sure I'm missing something in the Action Script?? Here's the script I'm using for the buttons:
stop();
import flash.display.MovieClip;
import flash.events.MouseEvent;
[code].....
View 3 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