ActionScript 3.0 :: Can't Make It Stop Snowing
Dec 21, 2009I am new to Flash and certainly Action Script. I recently created an animation with the help of an IStock Flash animation.[code]...
View 2 RepliesI am new to Flash and certainly Action Script. I recently created an animation with the help of an IStock Flash animation.[code]...
View 2 RepliesI'm using the code contains onClipEvent(load) and onClipEvent(enterFrame) and duplicateMovieClip() to make the snowing effect in the 2 first movie-clips but then, I cannot stop them in the next movie-clips. (All of my movie-clips in 1 scene only.)
View 1 Replieshow to stop the script when it's running.To make the sky no more snowy and make snow disappear.
View 1 RepliesI saw the snow tutorial on this website and i plan on using it for 20 seconds (500 frames) in my introduction. It works perfectly fine, but after that time, it doesn't stop. It keeps on going and going and going... how to make it stop or make it go into the background? used the code provided by the tutorial. I know this is sudden by can someone answer today because i have to put it together before thursday.
View 1 Repliesi currently have my animation looping but i want to set it up so that one of the layers/animations on my timeline do NOT loop (just fly in once)... i tried adding a stop(); but it seems to stop everything that is moving instead of just the target timeline.
View 1 RepliesI want to make a button open a new scene,I have that working but it keeps looping,How to make the whole movie stop at the end of scene 2,Ive tried putting stop(); but that brings errors,I want to stop the whole movie, How would i do this?
View 1 RepliesI have an mp3 player on my website that load a track list from a xml file.the problem is that the player start automatically when the website is loaded...and i want to make it stop since the beginning...so that if i want to here the music i have to push play
View 2 Repliesi am creating a web page and my problem here is that on my intro part or home part there is a sound playing but if i will go to other pages the sound should stop playing.
View 5 RepliesI have a tween (code on main timeline) for a mc and on hitTest (code on mc) its supposed to stop, but it doesnt. This is the code on the mc:
Code:
onClipEvent (enterFrame) {
if (this.hitTest(_root.rivalMc)) {
[code]......
I've downloaded a template from [url]..... but i cant make it stop.So i cant use it in my intro because it is always playing again and again..This is the code:
ActionScript Code:
import fl.transitions.Tween;import fl.transitions.easing.*;
import fl.transitions.TweenEvent;
import flash.text.Font;[code].................
PS: this is an exersice for my university that's not going to be published.
I got couple of buttons (minus and plus) and a dynamic text the problem is when i click the minus button when its 0 it goes -1 -2 how do i stop that ?
View 8 RepliesI had download a snow fla from this site. And i put at my moive. But when i want the snow to stop somewhere of the frame. ITs still keep going falling snow. Anyone know how to fix this problem?The code as below
//
// Snowfall algorithm by Grant Skinner. Check out http://gskinner.com/ for updates, more source code and other good stuff.
[code]....
What code makes my movie only play once?stop() ; <-- Not sure if thats even code
View 1 RepliesI have an image that the width is like 2x bigger than the stage. I made an actionscript that the image mooves like my mouse moove. so, if i am mooving my mouse to right, the image mooves to right too.My problem is: i want to make the image stop when i reach her end in one of the sides.when i moove the mouse and the image mooves too, i want that, when the image reachs her total left or right to stop so i do not have the stage with no image in the background.Since the image has his ref point in the top left, i made something like this:
if (_root.image._x > 0){
trace ("you have reach the left maximum of the image");
}
i have created my flash document in CS4 using AS3 and everything is done apart from the two links i need to add on two buttons i have created and i need to write the script to make the movie stop instead of looping.
View 6 RepliesI have a slideshow of images which a user can cycle through with the next button, but I want it to stop on the last frame/image so they can then use the previous_btn to go back? this is my code,
[Code]...
I am new to Flash action script and i have problem with action script code. Even though i comment the mvMyVid.play(); still the audio plays for fraction of second and stops.[code]...
View 1 RepliesI have a funtion set up in my actionscript and I have the function start at frame 5 by doing:
functionName();
I'm trying to get the function to stop once it gets to frame 20. I was thinking something like functionName(stop); but that did not work.
how to make the function stop working?
I have a button that I only want it to work when certain conditions are met, and if not, then this button will not work.
homeMC.gotoSleep_butt.addEventListener(MouseEvent.CLICK, toSleep);
function toSleep(evt:MouseEvent):void{ dayChange_MC.gotoAndStop("1"); day += 1;//add 1 to var day stat_day.text = String(day);}
[code].....
I am currently making a banner ad. Within this there is a note about an event that happens at a certain date.Is it possible to make this note play until that date, and then stop playing while the rest goes on?
View 3 RepliesI followed a tutorial to create a countdown in Flash CS4 and it works except that I would like to have it countdown to a specific time of day. I will be updating something at 10pm each week and I would like my countdown to stop or countdown to 10pm on that day but I don't know how to make it do that. Is this possible? I haven't been able to find it anywhere. Below is the actionscript I am using. [code]...
View 7 Replieshow to make some scroll buttons. Not like a regular scrollbar button, but just two graphics that have a rollover function. I got the buttons to work except that I can't get it to stop. Here is the code I wrote:
[Code].....
Once I rollover, it keeps going forever unless I rollout, but it doesn't stop at 43 or -167. It only checks the boundaries at the start of a rollover, but I thought it would run the function every 10 milliseconds to see if I had passed the boundary.
I made a multibutton menu and I have a sound set to play when you click each of the buttons but the sounds play over one another if buttons are pressed one right after the other. I know theres a way to make each sound stop using an if statement just cant figure it out.
View 0 Repliesmake the sound play first and then stop it?
var music:Sound;
var trans:SoundTransform;
var channel:SoundChannel;
var musicOn:Boolean = true;
[code]...
One of my school projects require that we make use of button in a small flash animation but the teacher has only taught us how to create buttons but not add script to them. My question is how can I make the animation stop on frame 1 as soon as it loads up and how can I add code to my play button so I can play from frame 2. Most of the code I found end up being in Actionscript 2 or something or just didn't seem to work at all.
View 3 RepliesI am wanting to make a game, and I need a gravity code that works great. I want gravity, a jumpibg code, and then a code to make something stop when it hits another thing.
View 2 RepliesI was wondering how to make a scroller stop at a certain spot. I have it set up as to when you push the button it scrolls the way you want it to. But I want it to stop after a certain length, which is when the information would stop.
View 2 Replieshow to move from one frame to another (once clips complete their actions). I had previously posted some questions regarding this matter, but I think the post got too long and confusing (at least to myself).SO I'm starting over from scratch and want to go step by step so I can understand. I have a line clip on stage that I move down the screen and center and expand it at the same time to fit the width of the stage. Now I have this code for that:
[AS]
goDownAndCenter=function()
{
[code].....
how to let the vibration occur for a finite timeframe. i.e. how do i make it stop?
View 3 RepliesCurrently I'm trying to make a basic game (using AS 2) but I'm having trouble getting the basic physics to behave. I have a ball which is supposed to fall until it touches the ground. It can also be dragged around the screen by the cursor.I want the ball to fall only if it isn't being held, but for some reason the condition isn't working properly. No matter how I structure the condition, the ball still falls even when it's being held (in fact I can move it from side to side, it is still being held even though it's falling downward).I've tried putting this on the ball to make it fall conditionally:
Code:
onClipEvent(enterFrame){
if(hitTest(_root.ground1) == false){
[code].......