[CS3, Actionscript 2.0) How To Stop Actions From Running Across Scenes
I'm not even sure that I am putting this in the right place. I originally posted it to the AS3 forum, but when I open a new flash movie, I am choosing 2.0. When I realized that, I posted it here. I apologize if I've posted to the wrong place.
I am using Flash CS3. I'm new at actionscripting and I do not understand it completely. I have a movie that has a few (2-4) scenes in it. Each scene is like its own "commercial" I created a holiday movie that has snowflakes falling using an online tutorial. The movie works fine by itself, but when I load it as a scene in the movie that has my "commercials", the snowflakes continue to fall throughout the rest of the scenes. The holiday movie has a movie clip that has a snowflake falling straight down. The actionscripting duplicates the movie clip randomly as well as its opacity, postition, etc. I understand what I did during the tutorial, but I'm not sure how to get the snowflakes to stop falling throughout the rest of the scenes. I've tried entering a stop after the script but it just seems to stop the scene there without continuing to rotate through the rest of them. I don't quite understand where to tell it to stop. Somewhere else on the actions timeline? In the movie clip itself? Here is the actionscript code I'm using:
this.createEmptyMovieClip("canvas_mc",10);
var i = 0;
myInterval = setInterval(addFlake,500);
function addFlake() {
if (i<20) {
var t:MovieClip = canvas_mc.attachMovie("snowflake","flake"+i,canvas _mc.getNextHighestDepth());
i++;
t._xscale = t._yscale = Math.random()*80+20;
t._x = Math.random()*Stage.width;
t._y = -50;
t._alpha = Math.random()*40+50;
}
}
I hope I've provided enough info. Any help you can provide is greatly appreciated!!!!
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 11-17-2008, 03:09 PM
View Complete Forum Thread with Replies
Sponsored Links:
Stop Actions In Scenes & Layers
Hi...i have a problem & I need someone's help...
I have scene 1 & scene 2 & each scene has a number of layers
there is a button in scene 1 that take u from scene 1 to scene 2
my question is:
should i put the action stop at the first frame of each layer of each scene?????? or is it enough to put only one stop action at one layer??????????????
This is the first time i deal with scenes...& um so much confused...so...can anyone help me?? plz??
Any help is appreciated
Thanks in advance
View Replies !
View Related
Stop Actionscript From Running
hi there,
First of all I have to say that these forums are an amazing help for my flash projects and i got alot of answers to my problems here.
But here's my current problem:
In the project i'm working on i want to make an animation that switches between frames after a certain time.
So when the counter reaches 0, it goes to frame 2 and starts playing that animation. But the actionscript I have in frame 1 keeps running when i'm in frame 2. I've looked everywhere but i couldn't find out how i can stop the actionscript from running.
Any help would be appreciated, i attached the code from my first frame in the post.
Zyrax
p.s Sorry for any grammer / typo's , english is not my native language
ActionScript Code:
aantalLetters = 200;
minSpeed = 1;
maxSpeed = 4;
displayTime = 10;
countDown = function () {
displayTime--;
if (displayTime == 0) {
_root.gotoAndStop(2);
}
};
vliegText = function () {
//this._x += Math.sin(this.spread);
this._x = this.spread;
this._y -= this.speed;
if (this._y<5-Math.random()*50) {
this._y = 420;
this._x = 250;
}
};
for (i=0; i<=aantalLetters; i++) {
var mc = _root.attachMovie('text', 'text'+i, i);
mc.onEnterFrame = vliegText;
mc._alpha = 50+random(50);
mc.spread = i*2.5;
mc.speed = minSpeed+Math.random()*(maxSpeed-minSpeed);
mc.gotoAndStop(random(15)+1);
}
timer = setInterval(countDown, 1000);
stop();
View Replies !
View Related
Running Actions After Attaching
I think my problem is best explained with an example.
I have a movieclip with the linkage "Alfred", and inside on frame one there is a function called "Hillary".
However, once Alfred is attached, I want the actions in frame one to run instantly, so that something like this would work:
Code:
attachMovie("Alfred", "Alfred", 0);
Alfred.Hillary();
I know there are ways around this, like putting the function in the timeline I attach the movieclip from, but is this at all possible?
View Replies !
View Related
How To Keep Interactive Scenes Running?
I can shift about from scene to scene using buttons in the movie..but how do I keep the scenes active at all times, so I can change to another scene when I want..instead of time running out?
the movie is actually a menu bar type thing, so I need it active after it plays out and stops at the last frame, but without it looping to continuously show the submenus appearing?..is there anyway to do this?
http://www.geocities.com/halo806/pro...nteractive.swf
View Replies !
View Related
How To Keep Scenes Running Without Looping?
I can shift about from scene to scene using buttons in the movie..but how do I keep the scenes active at all times, so I can change to another scene when I want..instead of time running out?
the movie is actually a menu bar type thing, so I need it active after it plays out and stops at the last frame, but without it looping to continuously show the submenus appearing?..is there anyway to do this?
http://www.geocities.com/halo806/pro...nteractive.swf
View Replies !
View Related
Scenes Running In Background?
I'm making a game, using different scenes for different levels, each level has several onClipEvent (enterFrame) { bunch of functions, some with calls to _root functions }.
When the user moves from Scene1 to Scene2 (Level2), do the onClipEvents on Scene1 keep running?
And is _root separate in each Scene?
thanks,
winky
View Replies !
View Related
Running Actions From A Loaded Movie?
Greetings!
I have been working with Flash for the past several years, but I just ran into something that I thought should be sooooo easy and work right the first time, but it didn't. I've never had a need to do this before.
I am loading an SWF from a web server into an instance of a Movie Clip in my main timeline (_root). The loaded SWF replaces the Movie Clip. That's working just fine ... BUT ... I need to run action scripts from the Movie Clip I load into the _root to control the timeline of the _root, but They Do Not Work!
I have made a very simple file to test this which is attached. This is going to be a part of a larger application that will be checking to see if an internet connection is present. If the SWF loads from the web, then I want the _root timeline to gotoAndStop("CONNECTED");
I can watch the file load from the web and then the action script which is in the external file is suppose to make the _root timeline go to "CONNECTED", if not, then the _root timeline will continue to play until it gets to FRAME 75 where there is a stop(); action and the text changes to UNABLE TO CONNECT.
Here's what is in the SWF that is on the server;
FRAME 1-15
Just a simple shape tween to give something to look at
FRAME16-24
Same as above only tween is stopped
FRAME 25
_root.gotoAndPlay("CONNECTED");
FRAME 26-34
nothing
FRAME 35
stop();
THAT's IT!
VERY SIMPLE.
So why can't I get control of the main timeline that this SWF is loaded into by using action scripts contained in the SWF I am loading from the server?????
PLEASE HELP!
THANKS IN ADVANCE!!!!!!!
View Replies !
View Related
[MX04] Actions Not Running On Duplicated MC...
Hi,
I'm using MX2004
I have an empty MovieClip on my stage. In this MC, I've put the following code in the first frame actions to make it expand and contract...
PHP Code:
this.onRollOver = function() {
trace("RollOver Beethoven");
this._xscale=150;
this._yscale=150;
}
this.onRollOut = function() {
this._xscale=100;
this._yscale=100;
}
Next, I duplicate this MC a number of times depending on a pre-determined and loaded variable denoting a total number of stored JPeg images.
The JPegs load into the duplicated MCs no problem and I've checked they are duplicated by changing some properties of the original and making sure they propegate to the duplicates. I also checked the above code works by putting a square or something into the original MC to make sure it scales up and down with the mouse interaction.
My problem is that once the initial script to duplicate the MCs and load in the Jpegs has run, none of them scale upon Mouse Roll over as I'd expect.
Anybody know why this is and how to make each of the images scale onRollover?
Ta.
Neily
View Replies !
View Related
Single Background Animation Running Through All Scenes?
Hi guys,
Here's the deal-i currently have 6 scenes in my current movie. It's going to be an online portfolio and each page is a section of the portfolio. However, i have an animated background (400 frames long) that i want to be played throughout the entire site. Of course, when i try and do this the animation resets every time the scene changes. The best i could do so far is to have it running on every page this way but like i said, it resets every time the scene changes.
I'm just wondering if it's possible to set this background to run smoothly through the portfolio without reseting?.
Thank you
View Replies !
View Related
Button Actions In Other Scenes
there is a tutorial here on how to make an infinite menu. I have made some modifications on it, but am not able to get the buttons to do anything in the main scene. Please let me know what I can do. The link is:
http://www.kirupa.com/developer/mx/infinite.htm
View Replies !
View Related
Button Actions In Other Scenes
there is a tutorial here on how to make an infinite menu. I have made some modifications on it, but am not able to get the buttons to do anything in the main scene. Please let me know what I can do. The link is:
http://www.kirupa.com/developer/mx/infinite.htm
View Replies !
View Related
How Do I Stop This Script Running
hey all,
I'm pretty new to Flash and am trying to learn - I found this script which I have been messing around with converting to MX - but it slows everything else down. Is this code still from an older Flash version?
Can anybody help me - how can I stop the script from running continously and sucking processing power?
here it is:
onClipEvent (enterFrame) {
cloudSky._visible = 0;
i = Number(i)+1;
if (Number(i)<180) {
duplicateMovieClip("cloudSky", "cloudSky" add i, i);
}
cloudSky._x = random(100-n/2)-50;
cloudSky._y = Number(random(5))+Number(i*0.88);
cloudSky._xscale = Number(random(10))+Number(i*1.5);
cloudSky._yscale = Number(random(10))+Number(i*1.5);
trace("cloudSky" add i);
}
thanks for any help - pondgirl
View Replies !
View Related
Can't Stop Preloader From Running
Hello all, I'm new here. Using flash mx.
I've searched all through the site and can't seem to find an answer to this particular prob.
I have a site with an intro that covers the time it takes for the images in the site to load (56k users) but wanted to have a skip button for people with broadband or who had seen the intro before.
I added a percentage preloader which i connected to the skip button so that someone with the site in their cache or broadband would be able to go straight to the menu but 56k users would have to wait for the images to load if they pressed the skip button.
I only want the preloader to appear if the skip button is pressed. I have tried putting the preloader in it's own scene and skipping it using a gotoandplay but the movie always starts the preloader.
thanks in advance, any help would be appreciated,
rich
View Replies !
View Related
Running The Stop(); Sign ?
I am perplexed by the what should be the simplest of tasks.
I have an fla (FlashMX 2004 Pro - WinXP) consisting of three layers in this order:
actions
(c) symbol
Movie
The (c) symbol is a simple grahic that places a copyright symbol over the Movie... which is an imported QT.
I have done 33 different swfs using this same procedure; but for some reason, on this particular one, the movie doesn't stop(); at the actionscript keyframe and always jumps back to the start and sits there.
This has been driving me crazy for over two hours - and as I've never had anything so 'simple' not function as expected I resort to asking if someone can shed some light on this.
I even tried using one of the 33 files that work just fine, replacing the Movie with the intended movie and it still does the same thing.
Thanks - I feel like an idiot but am not to humble to beg.
driver198
View Replies !
View Related
Stop Running All Scripts
Hello,
I was wandering if there is anyway to stop all scripts from running?
I use a script to stop all movieclips(nested) playing and that works great.
But in some of my external loaded swf files there are scripted animations.
Is there anyway to stop this? Does anyone have any idea?
View Replies !
View Related
How To Stop All Running Timers At Once?
I'm working on a game that has lots of timers in different classes/objects.
Once a player has finished a level i'd like to stop all those timers. There are quite a lot of them, so i was wondering if AS3 has something that can stop and reset them all, instead of stopping/resetting them all 1 by one very specifically on the event of a finished level. (Which could be very complicated to do)
Does anyone know if something like that exists or how that is generally done or if there are any solutions/workarounds to this?
View Replies !
View Related
How To Best Stop A Running Video?
I have a basic site that is made up of several layers with some Flash in a few of them. One layer contains a video player that plays an flv file (not embedded). It works well and I have made the typical video controls - play/pause, rewind & stop. When you click 'stop' it will stop the movie and replace the video skin with the original background.
My question: How can I stop the the video when someone navigates to a different layer without clicking 'stop' first? The video layer is now hidden and the proper layer is displayed, but the video is still playing (you can hear it.) What can I do?
If someone needs to see the site I could upload it to a test area.
Thanks for any ideas.
-Bill
View Replies !
View Related
Stop Function From Running
Last edited by permort : 2007-06-29 at 01:40.
I got this function that I can´t find a way to stop running. I want to stop it and start it later.
ActionScript Code:
var rain = function (raincounter) {
for (i=1; i<=raincounter; i++) {
this.attachMovie("rain", "rain"+i, this.getNextHighestDepth());
}
};
rain(100);
Is there any way to break out of this loop from outside the function?
I have also tried to call it again from another place in the flash with:
rain(0);
but it won´t stop "Raining". Can anybody help, please?
View Replies !
View Related
Flash 5: Button Actions = 3 Scenes
This is probably so simple that I will kick myself in a bit. But I am stumped, and I've tried to simplify this a lot.
I have 3 scenes to my movie. The only difference is:
Scene 1: has a few animations, and has unique text in the center of the stage.
Scene 2: No animations, looks exactly like the final frame of Scene 1. The only change is that the text in the middle of the page has changed. I want to go to this scene when a button in Scene 1 or scene 3 is clicked.
Scene 3: No animations, looks exactly like the final frame of Scene 1 and Scene 2, except that the text in the middle of the page has changed and is a scrolling text block, saved as a movie clip. I want to go to this scene when someone clicks a button in Scene 1 or Scene 2.
For my buttons, I thought I could simply use:
on (release) {
gotoAndPlay ("Scene 2", 1);
}
But it's not working. When I play my movie (publish preview, default html) the first scene works fine...the animations work, but Scene 2 comes up without ever clicking the button. I have two other buttons in each scene which open a new URL, and those work fine. Obviously I am doing something wrong...and it's most likely because I tried to simplify this, in my brain at least. (I previously had the various pieces of text saved as MC's, but I couldn't get those to work properly either.)
Any thoughts anyone would care to share? And is having the 3 scenes going to increase overall movie size dramatically?
SQ (dazed and confused...and this isn't even a complex issue)
View Replies !
View Related
Problem With Scenes And Movieclip Actions, Help
I have a question that is (hopefully) quite simple, it's a while since I did serious Flash work...
I have a (Flash 5) movie with two scenes.
In the second scene I have an animated movie clip.
I want to use a frame action within the movie clip to jump to a frame in the second scene of the main timeline.
For some reason this doesn't seem to work - If I don't use tellTarget in the action it just jumps within the movie clip timeline. Fair enough. But if I do use a tellTarget (I have tried: "_root", "_parent", "_level0" and more...) it always jumps to a frame in Scene 1... even though the clip is in Scene 2.
This happens even when the action in my movie clip is:
tellTarget ("_root") {
gotoAndPlay ("Scene 2", 80);
}
It ignores the "Scene 2" and goes to frame 80 of Scene 1.
Somebody please help me, I'm tearing my hair out... I don't understand!
View Replies !
View Related
Remembering Actions From Prev Scenes?
I want to able loop Scene1 until the user clicks on the mouse or hits the right arrow key. Then Scene2 will play, which is a user controlled slide show. here are the problems...
Problem1
Scene2 works if Scene1 does not play before it! It obviously remembers an action from scene1...
Minor Problem 2:
When I press a key (Scene2) it goes through the frames like crazy. How can I get it to just stop on the frame until I press the arrow key again?
Thanks
Brian
<<enclosed .fla>>
View Replies !
View Related
Stop Pause Script Running
Hey everybody,
I found a simple pause script.....
function tapePlay() {
clearInterval(myInterval);
play();
}
myInterval = setInterval(tapePlay, 2000);
---------------------
the script works fine..no problems there..
Here's the problem how can i stop the script...it's keeps on running...I tried everything but noting seems to work..
let say on the first frame i put the script and on the 5th frame the script has to stop....how can i do that?
Any help is appreciated..
THXS...
Marvin
View Replies !
View Related
[CS3] [AS2] Code Doesn't Stop Running
This has become frustrating! I'm trying to figure out how to stop code that generates a starfield for the intro sequence. It works where it should, but oddly enough - even using a blank keyframe - It still spills out into the second frame. Stop(); is included in all the frames, but it doesn't make a difference. I tried onEnterFrame();, and that only made it worse - causing the entire thing to start "skipping" as if there were no Stop calls in the code at all.
It should basically stop running in frame two, but doesn't - here is my code thus far, all located in frame one:
Code:
var frame:MovieClip = attachMovie("frame_mc", "frame", 1000000);
for (var i = 0; i<950; i++) {
var nm = "star"+i;
_root.attachMovie("star",nm,i);
_root[nm]._x = Math.random()*750;
_root[nm]._y = Math.random()*400;
_root[nm].distance = Math.random()*200+1;
_root[nm]._xscale = 250/_root[nm].distance;
_root[nm]._yscale = 250/_root[nm].distance;
_root[nm].speed = 50/_root[nm].distance;
_root[nm].onEnterFrame = function() {
this._x += this.speed;
if (this._x>750) {
this._x = 0;
}
};
}
stop();
View Replies !
View Related
Please Help Me, Lost With Movie Clips And Scenes Actions
Hi there!
well ive done some posting with this same topic on the MX side.
I have recieved afew helpful comments thanks to afew, but for the most part they have only confused me more with all their action script jargon.So i would like simple answers please hehe.
Ok my prob is this.It has to do with scenes(which everyone is telling me not to use).Well scenes and Buttons inside of movie clips.
I need to use scenes as im doing a mammoth of a project and will go nuts without using scenes.Anyways.
The prob im having is that i have to have a movie clip with several buttons on several key frames within that MC.This MC is on scene1.
Inside this MC on the first button, when click i need it to go to scene2, frame 1. This does not work!!! I was then told to use frame labels instead as that might sort the prob out.It didnt unfortunately.
Anyways so im noticing that buttons inside movie clips do not seem to understand simple On press go to scene2, frame 1 and stop command.
what on earth am i doing wrong.If someone is kind enough.I would like to send the FLA so you could check and see this small mistake which i must be doing.Ive been stuck on this project for 2 days now and am ready to give up!!!arghhh!
Many thanks for your time!
Chris
View Replies !
View Related
Stop All Code Running On Enter Frame
Hi
I have just started trying to write a game using Actionscript 2.0. All is go well except I can not find a way of stopping Actionscript running all functions attached to a frame when entering a frame. I only want the functions to run when a set criteria is met.
I have added the functions at the end of the code and, once the frame is running, they only appear to be called when the criteria is met. However, for some reason when entering the frame, all of the code is executed once, including the functions at the end, even though the criteria has not been met (I have used the 'trace' function to confirm this). I am hoping there is a simple command I can place between the main code and the functions to stop this happening. If only it was as simple as my childhood programming of using 'goto' and 'gosub'.
Thank you.
View Replies !
View Related
Easy Way To Stop Flash 5 Player Running MX SWFs?
Yes, I want to stop Flash 5 player running version 6 SWFs; I thought if you compressed them they'd be unplayable but no.
Why? There are tons of pages I have to sort out where to check player they've put a little version 6 swf which takes you on to the desired URL and if it doesn't kick in, HTML sends you to the player download site.
They thought Flash 5 wouldn't play them, and neither did I.
These little forwarding movies need to be small and simple (so the clients can make them in future, choose the URL themselves).
Any help appreciated.
View Replies !
View Related
Stop Running The Rest Of This Event Listener/function
How do get the rest of the code in a Event listener to stop running...
ActionScript Code:
function yesClick(event:MouseEvent):void {
currentMC.visible=false;
if (event.target.parent.name=="step_1_mc") {
if ((check_1_On) ||(check_2_On) ||(check_3_On)) {
trace(check_1_On);
step_1_mc.error_mc.visible = false;
step_2_mc.visible=true;
currentMC = step_2_mc;
} else {
step_1_mc.error_mc.visible = true;
// after the above else statement has run
// I want yesClick to stop running
}
thingsIDontwantToRun1.x = 45;
thingsIDontwantToRun2.y = 700;
}
View Replies !
View Related
Animated Running Legs Stop After 1 Cycle With Keyboard Event
this code only does 1 cycle of the animation(btw, the KeyMover class moves the movieclip forwards and backwards, there is no issue with that):
Code:
import controls.KeyMover;
var keyMover:KeyMover = new KeyMover(character);
this.stage.addEventListener(KeyboardEvent.KEY_DOWN, pressed);
this.stage.addEventListener(KeyboardEvent.KEY_UP, released);
function pressed(event:KeyboardEvent)
{
character.gotoAndPlay(2);
}
function released(event:KeyboardEvent)
{
character.gotoAndPlay(1);
}
i have the lower half of an animated character made. the first frame of the movieclip is set to stop at normal standing position, the second frame on is animated for one cycle of running and when it hits the last frame it automatically goes back to frame 2 for another cycle and so on. it actually goes a bit further than 1 cycle, which confuses me. i figure that the key to make the animation run is constantly setting off the function so it sorta overrides the code in the animation that makes it cycle over and over, but the fact that it doesn't stop at the end of the first cycle makes that an unconvincing theory. any help would be appreciated.
View Replies !
View Related
Stop All Actions
I have a button that takes me to a frame way down in the timeline... but my AS code is still executing on the previous frames.
ActionScript Code:
function skipIntroMovie(event:MouseEvent):void
{
stop();
gotoAndStop(80);
skipIntro.visible = false;
}
What do I need to do to stop everything?
View Replies !
View Related
Stop The Actions For 1 Sec
hello again.
i need a second or less in between 2 consecutive actions.
i need a function.. like delayfor(seconds) which I have to insert between 2 actions.
i tried something with getTimer.. but the computer then works slow because it checks the time very often.
this is my buttons code:
on(release) {
for (p=0;p<10;p++) {
// i need here a second to stop/pause/delay/to do nothing but wait (*)
line.lineTo(.......);
}
}
so i need a second delay between every action in that "for".
can you help me please?
thx
View Replies !
View Related
Stop MC Actions When Mouse Is Out
- I have a MC (mc1) that is on my stage
- mc1 contains another MC (mc2), which has a Slide Menu Bar
- On that Slide Menu Bar are Buttons (btn1 - btn5)
When a Button on my stage (btn6 - btn 10) is pressed, mc1 slides out (with mc2 on it) and acts as a submenu with the Slide Menu Bar there to select from. My problem is that when you select btn1 - btn5, then move your mouse to another part of the stage, the Slider Menu continues to follow the mouse, and esentially Slide, and I have boundries on the slider, so it slides to the end.
I would like the slider to stop. when I leave the area of mc1. any ideas on the coding? thanks for the help.
Alex
View Replies !
View Related
How To Stop Button Actions In A Swf That Is Below Top Most Swf?
Ok here is what I have done. I have my main movie that loads 6 different swf files into 6 blank MC containers at the start of the movie all takes place in a single frame. They load one on top of another with the navigation buttons all in the same location in each swf. Only thing different is in some of the swf I have removed a few of the navigation buttons but this is where the problem begins. When you are in the active swf file and there is a button removed you can still roll your mouse over the location and the button that is on the swf under it is still active and will still work you just can't see it since it was removed. Or at least this is what I am guessing is happening.
Is there any way to disable the buttons in the lower swf when in the active swf or maybe unload the container movieclip all together so that the only active movieclip is the one that has the swf that you are currently in?
View Replies !
View Related
Some Help Using Stop, And Gotoandstop Actions Please?
I can't figure out how to make a movie stop on frame one, wait a moment, then move on to frame 2 and stop there.
I have a movie clip nested in frame 1. I want that clip to play, wait a few, then move to frame 2. This is the code I have on frame 1 of the main timeline:
Code:
stop();
var time:Number = 0;
if (time == 1000) {
gotoAndStop(2);
}
time++;
I'm fairly certain I must be missing something silly, but I can't figure out what. I guess I should add that I have very little programming knowledge as I am a graphic designer specialized in typography who recently took up Flash in order to diversify my income streams.
View Replies !
View Related
My Stop Actions Won't Work?
I have a movie and on 3 frames I have 3 stops actions where I want it to stay. When I click on a button I want it to jump to 2nd frame and stay upon closing go to frame 1 and stay. but they play at there own will. Very disheartning
View Replies !
View Related
My Stop Actions Are NOT Working
I have a flash website I've created and if you click the "Portfolio" link the site will go to the portfolio area and load the content. If you click another link before the portfolio has loaded, the movie will cycle through the entire timeline, which has several stop actions in it. Why does the player ignore the stop actions?
Here's the link to the site: kdwa.net
View Replies !
View Related
Stop Other Actions OnRelease?
Hey all.
I have a problem with a presentation that includes a skip button.
If you look here:
http://www.hammarman.com/stralfors/ml003_setemp2.htm
There you can see the presentation in (almost) all it's glory.
If you click the "framåt" button at any time during the "intro" you'll see that the playhead skips forward and all looks well... until all of a sudden the things I wanted to skip starts to play in the background.
I know what the problem is, I'm just not sure how to solve it.
The way I've set this up is that all animation is executed by script but I use the timeline to go from step to step of the animation by using setInterval.
This in itself doesn't cause a problem, not until I try to do my little skip button thingy.
The skip button does what I was helped with here: Removing multiple MCs onRelease
So the button skips to a different part of the animation.
But as you can see depending on when I hit "Framåt" the intro part of the animation keeps on playing in the background (slightly altered though).
It does this since the flash player reads and executes the code that's on each keyframe.
I need to add something to the skip fuction so that other code isn't executed until the playhead is where it should be on the timeline.
I hope I make sense.
regards / Johan
View Replies !
View Related
Button, Stop, Scenes Uh?
i've just started flash and i've been searching the net for problems to my movie as they come about. at the moment i have two scenes , at the end of scene 1 i have a nagivation menu, which links to scene 2 (and more as i make them). at first the buttons weren't working and then i realized taking out the stop function allowed the buttons to work, i think, but then it runs strait into scene 2. i know im coming off as a huge newb, but any help would be great... project is due tomorrow lol going crazy.
View Replies !
View Related
Goto And Stop With Scenes
this takes me back to the begining of my movie...
PHP Code:
on(release){
_root.gotoAndStop("2", 25);
}
as does this...
PHP Code:
on(release){
_level0.gotoAndStop("2", 25);
}
this button is inside a movie clip, is there a way to control scenes on the main timeline from inside an MC?
View Replies !
View Related
Can't Get Movie To Stop On Scenes
Hello All;
I would really appreciate anyones help. I have this movie that uses buttons to go from frame to frame. In order for it to be interactive I need it to stop. I use the stop(); function on the frame I want it to stop and wait for user input. But no matter where I put a stop it doesn't stop at all? Anyone have any idea why?
View Replies !
View Related
How Do I Make The Scenes Stop?
hi..i just learned how to use flash as my proj requires me to..i have a BIG prob..I created a few scenes..i've added a 'button' at every page..i dont seem to know what i shld do to prevent this movie from playing by itself..
Note: i've added a command on every 'nxt' button..shld i add in a stop function?
on (release) {
gotoAndPlay("Scene_2", 1);
}
View Replies !
View Related
Help With Getting Animation To Stop In Other Scenes
I am using Flash CS3. I'm new at actionscripting and am not quite sure I understand it completely. I have a movie that has a few (2-4) scenes in it. Each scene is like its own "commercial" I created a holiday movie that has snowflakes falling using an online tutorial. The movie works fine by itself, but when I load it as a scene in the movie that has my "commercials", the snowflakes continue to fall throughout the rest of the scenes. The holiday movie has a movie clip that has a snowflake falling straight down. The actionscripting duplicates the movie clip randomly as well as its opacity, postition, etc. I understand what I did during the tutorial, but I'm not sure how to get the snowflakes to stop falling throughout the rest of the scenes. I've tried entering a stop after the script but it just seems to stop the scene there without continuing to rotate through the rest of them. I don't quite understand where to tell it to stop. Somewhere else on the actions timeline? In the movie clip itself? Here is the actionscript code I'm using:
this.createEmptyMovieClip("canvas_mc",10);
var i = 0;
myInterval = setInterval(addFlake,500);
function addFlake() {
if (i<20) {
var t:MovieClip = canvas_mc.attachMovie("snowflake","flake"+i,canvas _mc.getNextHighestDepth());
i++;
t._xscale = t._yscale = Math.random()*80+20;
t._x = Math.random()*Stage.width;
t._y = -50;
t._alpha = Math.random()*40+50;
}
}
I hope I've provided enough info. Any help you can provide is greatly appreciated!!!!
View Replies !
View Related
How Do I Make The Scenes Stop?
hi..i just learned how to use flash as my proj requires me to..i have a BIG prob..I created a few scenes..i've added a 'button' at every page..i dont seem to know what i shld do to prevent this movie from playing by itself..
Note: i've added a command on every 'nxt' button..shld i add in a stop function?
on (release) {
gotoAndPlay("Scene_2", 1);
}
View Replies !
View Related
Stop Carousel In Other Scenes.
I hope I can explain this well... I am using Carousel and I have it configured so that after you click on an icon and it comes up next to the content from the XML one of the content blocks becomes a link that goes to a different scene or frame, etc., and that works awesome, however, even if I go to a different scene/frame the Carousel comes back up (on whichever frame I've landed on). I've tried deleting the functions that I though would cause it to be shown to no avail. Since the icons, etc are called with code there are no layers I can delete to stop it from showing. Does anybody know what I would do to cancel it? Here's the summary of what I want to happen:
1. Click on an icon from the Carousel (this works)
2. Icon comes up with content block (just like the original, this works too)
3. Link within the content takes you to another scene/frame and the Carousel is no longer active or displayed. <-- currently I can link to another scene/frame, but Carousel is still visible.
Thanks all.
j
View Replies !
View Related
FLASH CS3 Ingores Stop Actions
My stop action is being... IGNORED!!!
I have a movie instance that plays for 50 frames and then has the following action: parent.gotoAndPlay("next") ;
However, even though there is a stop(); action, Flash just keeps playing from the "next" label. Flash is IGNORING the stop action.
This must be a bug in CS3... I hate new versions of software.
View Replies !
View Related
|