Stopping Buttons
how can i make my button be a different colour once it has been selected
thanks
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 07-08-2003, 03:36 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Stopping And Buttons
I am having problems with my buttons not working as soon as the movie hits the stop command.
at the end of movie I put in a keyframe on a completely seperate layer (not a button layer). Then I put in the actions stop();.
What happens, the buttons don't link to the next pages at all once the movie runs to the end. They only work as soon as they fade in.
Can someone help?
Check it out at www.innovativeconcrete.ca
Stopping Sounds On Buttons
Hi all,
yups I'm new to the forum and not very advanced in the art of flash.
I've started on a flash project - www.noahs.dk/suede.html - and have run into a problem :
how do I stop the sounds on the buttons playing multiple times when the mouse is passed over them...
ideally i'd like the sound on the button to stop and restart if a mouseover occurs before the end of the sound file and if a new button gets a mouseover.
thanks in advance.
[F8] Stopping Circling Buttons
I'm making a Flash page in which the buttons are circling the content. When the cursor scrolls over the buttons, I would like them to stop spinning. However, I am having trouble doing this. I have the buttons where I want them and I have them circling the content. I just cannot get them to stop. Can anyone help me out?
Starting / Stopping FLV's With Buttons
Basically all I want to do is have a flv play, then stop...2 buttons come up and depending on which you click on, plays the associated video. Kind of like a choice thing. Video plays -> make choice 1 or 2, plays video 1 or 2.
Shoved the video in the timeline on the main layer.
Created a new layer. Put the text button on the last frame that the video plays on.
Opened Actionscript on the keyframe of the button.
Added in
stop();
mybutton.onPress = function() {
gotoAndPlay(710);
}
710 is the frame on which i had the other video start, on a seperate layer might I add.
However the result is .... movie plays .... briefly see button flash....next video plays without me clicking the button :(
How do I go about making this happen?
Thanks,
- GoOsE
Buttons For Stopping/Starting Sound
I am trying to make a button for stopping sound and also a different one for starting sound..i have 3 tracks and want to have one button to stop the sound then a button for to start each track...how would i go about doing that..thx!
Charles ><>
Stopping All Buttons Working In A Movie?
Hi,
I would like to know if there is a way to completly stop all buttons working on a movie. The reason been is that they keep working underneath movies above them in a higher level. I have worked around this problem for ages now by taking the movie underneath to a section where the buttons are not there, but it looks visualy the same and holding that movie there till the user has unloaded the movie above it and wants to return.
Just would like to know if there is a more easier way of doing this. What im after is the best way to stop buttons working under movies in a higher level.
Thanks in advance.
Ritchie
Playing And Stopping A Movie With Help Of Buttons
Hi,
I have made a flash .fla file in which i have few layers. In one layer named movie i have a .swf movie which i had exported to the library. I also have a background screen in another layer in which this movie should paly. Now i want play and pause buttons to control the .swf movie. I am actually new to action Sript and tried to do it but no result. Can anybody please help me. i want the movie to stop when i click the stop button and it should play again when i click the play button.
Thanx
Naaz
Stopping Multiple Buttons From Playing
Hello. I have a kind of complicated question. It has to do with sounds on buttons. I have run a site that administers quizzes to children. Some of these children are very young and cannot read so we have to have icons that they can click on and the instructions are voiced to them. My questions has 2 parts:
1. IS there a way to only play a sound once when a button is clicked? These are very young kids who will continue to click on the icons therefore causing the voice to repeat, and repeat.
2. The second question has to do with allowing multiple buttons to "disable" themselves until the one that is playing finishes? There's multiple buttions on a page which can be distracting to yound children who want to click on all of them.
- I have 168 buttons to edit, so the easier the suggestion the better.
Thanks!
Stopping Buttons Working Under Movie Clips
On my stage I have a button, when you click it it pops up a window ( a movie clip using set visibility)
This new window has buttons in it, but the original button behind still 'shows through'. You cant see it but the cursor changes as you hit it so looks confusing.
Can this be stopped?
Stopping External Movie Whitout Buttons. Help
Hi,
I have a main movie with a container movieclip. I load an external movie "Ext1.swf" into this movie clip. It works.
I want to control the container (stop and play). It works with buttons, but I want to make two functions named Ex1Stop and Ext1Play to stop and play the container WHITOUT any buttons.
Any help on this?
Regards
Stopping A Movie Clip Without Disabling Nested Buttons
I am making a flash file that uses an automatically scrolling menu bar movie clip with imbedded buttons in it that link to frames on the main timeline. I am trying to make it so that the menu bar stops scrolling when the mouse moves over it, so far I have:
on(rollOver){
stop();
}
on(RollOut){
play();
}
This works fine except the stop command also disables the buttons nested in the movie clip, making it useless. Is there any way to stop the movie clip without disabling the buttons?
Thanks,
-kagemeister
Stopping A Action Scrpit Without Stopping The Movie ?
Hello all,
I new to flash and used a snow script i found on flash kit. Anyway my problem is i cannot stop the snow half way thought the movie ?
Link to the working file
http://www.megaupload.com/?d=S0ZNMFP6
Thanks
Stopping A Action Scrpit Without Stopping The Movie ?
Hello all,
I new to flash and used a snow script i found on flash kit. Anyway my problem is i cannot stop the snow half way thought the movie ?
Link to the working file
http://www.megaupload.com/?d=S0ZNMFP6
Thanks
Stopping A Movie Without Stopping Submovies
I have a looping animation contained in another movieclip, the parent clip stops on about frame 20 and this causes the submovie to stop playing, is there anyway round this.
Stopping All MC'S?
is there anyway using code to just stop all playing mc's and then resume them all?
thanx
Stopping A Mc From Another One...
Whats going wrong with this script?
I try to control a mc from another one:
-----------------------------------------
1. MCName is my variable for the clip!
2. Both mc`s are in a mainmovie!
-----------------------------------------
on (release) {
MyClip = "_root"+"."+_root.MCName;
MyClip.gotoAndStop(2); -> I think here is my mistake!
}
------------------------------------------
Thanks!!
Mikalux
Stopping A MC
Hi All,
I'm struggling with this one and i'm sure that it's an easy one to solve.
After downloading a menu system from flashkit i've amended the code and design slightly to give me the look that I want. Each button is allocated to a wedge on the menu system, which when clicked opens and when hovered off closes.
you can find the menu at www.partyboy.org/flashstuff/
Each button has the code:
on (rollOver) {
revolver_mc.carrRotate(number);
}
on (rollOut) {
revolver_mc.cartRetract();
}
on (release) {
revolver_mc.cartOpen();
}
Where the number is the relevant wedge to rotate to.
2 Questions for ya:
1. How can I force the movie to finish even if say, i've hovered over another button. eg. I hover over the "journal" button, I want that movie to finish playing even if I move the mouse over the "link" button before it's finished?
2. I have a text effect which I want to apply to my buttons. I want this effect to play when the page loads up and stop. How do I apply it without affecting the action of the buttons i've already added?
Anyones helps is much appreciated!
MP3 Is Not Stopping
I am only a novice so don't laugh.
I am creating a Flash movie and i want to have an MP3 soundtrack playing in the background. When i test the scene, the animation finishes and the music keeps on playing, then when i want to test the scene again, i have to wait for the original music to finish otherwise i get an overlap of music with multiple amounts of the same track playing at once.
All i want to do is to have the music stop when the animation is finished.
Thanks for your help
My movie so far can be seen here: http://freespace.virgin.net/pete.wills1/Test/_notes/The Iron Stick Tornament Round 1.swf
Stopping _x-=#
Hey-
I am wondering how to make the script:
onClipEvent(enterFrame){
this._x=this._x-=#;
}
I can get itto move, but not stop! Any help is appreciated.
Why Is It Stopping?
Here is the code:...
onClipEvent(enterFrame)
{
_root.loadMovie(_root.path[_root.i]);
trace(_root.i);
}
this is hooked into one of the MC's and it works, The mc loads the picture and I can see it and everything, problem is, it seems the loadMovie method stops the running of the mc. cause when the trace window shows up I see the number for the frame where it loaded the image from loadMovie, but then there is no repeating in the trace window. Now if I comment out the loadMovie method. the trace window pops up and I see i flip through like normal.
Why is this?
Cedric
Stopping ?
Is there a way to stop a flash but still have the last frame/image/button remaining visible?
Stopping A Swf
I am really new at this flashMX...been playing with it for a couple days...my question is:
I have 2 buttons START and STOP on a bitmap picture...when I press the START button the movie "norma_girl_Scene 1.swf" plays...how do I make it stop and exit with the second STOP button...the script for the START button is..........
on (release) {
loadMovieNum("norma_girl_Scene 1.swf", 1);
play}
Stopping
ok I got a bunch of crap goin on in my movie it play till about frame 355 then it supposed to go to the main page. It keeps loopimng and goin back to the beginning and only flashes the main page quickly.
I;ve tried just the StopO; command but it still loops back to the beginning. How do i make it sit and the main page?
Stopping
I have an amination already created and i want it to stop repeating itsself. How o i go about doing this?>
Also i would like to post this animation on my website. How can i display this on my site.
Stopping All MCs At Once
Anyone have any ideas on stopping all MCs (_root, nested, etc) with one button click fromthe _root timeline?
Any help is appreciated!!
Stopping _x And _y
Code:
onClipEvent (load) {
_x = Math.round(_x/5)*5;
_y = Math.round(_y/5)*5;
dx = _x;
dy = _y;
}
onClipEvent (enterFrame) {
if (Key.isDown(1)) {
// Mouse click
dx = Math.round(_root._xmouse/5)*5;
// Round off
dy = Math.round(_root._ymouse/5)*5;
// to nearest 5
}
if (_x != dx) {
_x += dx>_x ? 5 : -5;
// Add 5 or -5 depending on dx>_x
}
if (_y != dy) {
_y += dy>_y ? 5 : -5;
// same as before
}
if (_root.follow, hitTest(_root.line)) {
this.stop();
}
}
see where it says this.stop(); ? well the _x and _y do not stop they keep on going.. i've tried _root stop(); everything..
i want to stop the script from continuing..if it doesn't then the mc will just keep going and going..
please help!
Stopping
Hi All,
I'm just learning AS so if this is a really dumb question ... sorry.
I have a remote control with 6 buttons ... screen changes for each button press and displays new info on a TV screen.
Button 6 - which will play frame 7 (code below) will play an embedded wav file also.
MY PROBLEM IS THIS ... I cant work out the code, how to stop the audio when another button is pressed eg button 4 or 5.
Please help ... deadline is in 6 hours and I'm really stuck__________________________________________________ _____
on (press) {
tellTarget ("led") {
gotoAndPlay(2);
}
tellTarget ("_root.tv.channels") {
gotoAndStop(7);
}
if (_root.tv.boxen.boxen_anaus == 0) {
tellTarget ("_root.tv.boxen") {
prevFrame();
}
}
}
on (release, releaseOutside) {
tellTarget ("led") {
gotoAndPlay(1);
}
}
__________________________________________________ ___
Stopping It
Alright guys I need a little help here. Me and a buddy are making a flash intro in Flash 8 Professional. So we have a star coming across the background from the left hand side and using the "explode" effect we have it break apart or explode into peices as music is playing in the background. We have our video done right?...or so we thought. We only want to video to play once..but it continues to loop over and over again. So how do we stop it from looping?
Is there a setting to do it?
Any help is much appreciated. Thanks!
Stopping An MP3
Hi so iv created 2 scenes which are connected by a button which iv managed to code ok but now my problem is when I use the button the next scene appears but the mp3 from the previous scene keeps playing. Is there a code I can put into the actions of the button to stop the mp3?
Stopping An MC?
A vairable is set that is the frame that I need an MC to stop on.
How can I make it so that the MC keeps playing through and when the variable gets set, it plays through the animation and just stops on that frame. So if the stop frame is 5 and when the var is generated the mC is on frame 6, the MC wont just jump to frame 5, it will play through 6-30 then 1-4 and stop on 5...
Thanks
[F8] Stopping Xml
Hello everyone was wondering if anyone could help me. I have built a map that pull all the data off an xml sheet. Anyway i need to breakdown the map by catogories so have started building other xml sheets. (client choice) How do i get flash to stop loading one and start loading another xml sheet. Is this even possiable. Thanks in advance
Stopping Flv
How do you stop an flv on a cue point? How do you load a movie clip on a different cuepoint?
I just want a progressive flv to stop/pause at the end of the clip instead of going back to the beginning. I also want to load a sound clip in the middle of the video on a cue.
Stopping Mc - Still Not There
on actions layer, frame 1 inside my movie clip I have:
counter
on the last frame of an animation layer inside the same mc I have:
if (counter < 4){
counter += 1;
gotoAndPlay("frmStart");
}
(and) it is still not stopping as desired....
please- any advice would be helpful
Stopping MC's
Hi all, thought I would post this in the Newbie section, because it seems like a newbie type question...
MC's automatically loop by default. So if you have a twenty frame MC, you better place a stop(); action on frame 20, or else you are in for a loop....
My question is, what if you have a 1-framed MC...does that continous loop also if you DON'T place a stop(); action on the first frame? Or is Flash smart enough to recognize and automatically stop this MC?
Lets just say you place a graphic in that first frame of the MC, and the only reason you did this was so that you can target the graphic later. IS there a need to place a stop(); action in the frame?
I always place stop(); actions in my MC's out of habit (don't want any surprises down the road)...just wondering if this was necessary for 1-framed MC's.
Thanks.
Stopping Everything Where It Is
Last edited by cybling : 2002-06-26 at 04:18.
Hey,
I dont want everything to stop now, i figured what i want out..
I'm creating a game in whihc you have to shoot ducks/elephants etc, a funfair game.
The probem is this:
I have a duck whihc is a button. On the up state i have an MC where is rolls across the screen. I have another MC where the duck falls where it stands. I've put this MC onto the hit state. I dont know how to tell flash that when ou click the duck, play the falling duck movie exactly where you clicked the target. At the moment i can't even get the falling clip to work never mind making it play when you shoot. I have this so far...
http://www.cyblingdesign.com/external/duckshoot.swf
Just ignore what comes after the first part..
Please help me! My deadline is in 2 days. Thanks,
Aidan
Stopping ONE Sound
I originally set up my music to "stream" so that when the next sound started streaming it would obviously stop the first one. However, I hate streaming music because of the choppiness. If I therefore want to run the music on "event" or "start," is there a script to tell a _specific_ sound to stop playing at a particular keyframe? Do I nest it in a movie clip and then control the sound by pointing to the instance of the movie clip? Or is there an easier way? And what is the script?
Thanks so much for your help!
-Dave
Stopping The Motion
I'm sorry if this sounds dumb. Ok I have a movie clip, and the instance name is "ball". Now in frame one of the movie clip there is an image of a round circle. And I want this circle to move from left to right so I put in the action script:
_root.ball._x += 10;
and in frame two of the movieclip I put in:
goto and play frame 1:
so that the stage will update the position. Now what I want to know is how do I stop my movie clip image in a certain area of the stage?
Thanks
From Playing And Stopping...
I hope someone of you can me tell something.
I stopped a movie called Movie1 in this case. Now I want to play again the Movie1...
here is the little script:
number = 1
// 'number' is dynamic (and has to be dynamic !)
eval("Movie" + number + ".GotoAndPlay(1)")
...any suggestions what I am doing wrong ? There is no error in Flash when I play it...
Please, My Work Is Stopping. HElp ME.
I created a door animation opening and closing while navigation between the pages.
but when I navigate from a page to another, the door closes then the browser pops up to load the opening door. ( I hate this pop up. ) are there any ideas to avoid this pop up between pages? this pop up because it loads another html page.
Please HELp mE.
the link is:
http://www.steelnetwork.com/trial/flash/software.html
Stopping A Counter
Hi,
I'm trying to rework some code I got from someone. It makes a movieclip scroll continuously through actionscript. Here's the code:
...................
onClipEvent (load) {
// set vars
old_x = this._x;
trace("old_x = "+ old_x);
speed = 4;
counter = 0;
// how often can i move the MC ?
max_counter = (this._width/speed)/2;
trace ("max_counter " + max_counter);
}
onClipEvent (enterFrame) {
// move the MC
this._x -= speed;
// counting the "times moved"
counter++;
// is the whole MC was moved begin from the start
if (counter>=max_counter) {
this._x = old_x;
counter = 0;
}
}
.......................
Now I want to add a stop function to the scrolling.
So on the stopbutton I placed the following code:
...................
on (release) {
_root.webskills.text.speed=0;
// where are we when we stop the movie?
stop_at = _root.webskills.text.counter;
gotoAndStop(2);
}
..................
To start playing again I use the this code on the play button in frame 2:
.................
on (release) {
_root.webskills.text.speed=4;
// where are we when we restart the movie, substract stop_at from this
// number
_root.webskills.text.counter = _root.webskills.text.counter - stop_at;
gotoAndStop (1);
}
................
I thought I could use the counter variable but I can't figure out how. The problem is that the counter keeps adding because it's in an onClipEvent (enterFrame) function. Thus making the movie jump to the beginning when the original counter is bigger than max_counter. The example is here: http://home.wanadoo.nl/d.roberts/stuff/webdesign.html
Press the first stop button (next to web vaardigheden) to see the effect.
Is there a way to tune this or am I looking in the wrong direction entirely?
Thanks very much for any help.
Kind regards,
Danielle Roberts.
Stopping A Scroller
I've been working on stopping a scroller. I downloaded a simple photo scroller from Flash Kit: Photoscr-Barry_Dr-6066
It is they type that scrolls opposite the direction of the mouse (move mouse left, scroller scrolls right).
I've been trying to program it so I can click on a picture and it will stop the scroller from scrolling.
As I get more advanced with it I want the photo I click on the ease to the center on mouse release. Then it will launch a movie, a larger version of the photo, zooming to full size. Then I'll click and button that will send it back to the center and then the scroller begins scrolling again.
Any ideas? Any help will be appreciated.
Thanks.
Stopping The Scene When....
...I do a hitTest. I cant figure out how to stop the scene that i am on when i do a hitTest on an object..
Code:
onClipEvent (enterFrame) {
if (_root.guy.hitTest(_root.object)) {
tellTarget ("/guy") {
gotoAndStop (10);
}
}
}
This is the code i have now. and once i can stop the scene, i would like to stop the scene about 5 frames after the object hits it by using "_currentframe + 5" how can i do this?????
Stopping Sounds
I have a number of sections in my movie, each with sounds attached. I want the viewer to be able to skip ahead to different sections without the sound from the previous section continuing over the new section's sound.
Right now, I have this on the first keyframe of each section:
mySound.stop();
Stopping Sounds - Help
Hi,
I have a series of buttons which play different movie clips. When one is clicked, I want the other MC's to stop. I used this script on the buttons to stop the others:
on (release) {
MC1.gotoAndPlay (2);
MC2.gotoAndStop (1);
MC3.gotoAndStop (1);
}
The problem is.......the sounds in the clips carry on playing and overlapping eachother. Is there a way to stop this???
Stopping Certain Frames
I have these certain things fade in only in certain frames and I put the stop action in and it stops the whole movie,my buttons won't work anymore. So how do I stop certain frames. Thanks!!
-Jordan
Stopping Certain Sounds.. But Not All?
Hey. I need some help with what im doing. I have an external movie (which is a sound loop that plays throughout all my scenes) loaded into level1 of my main movie. Then, I'm playing different sounds that are in my library throughout my movie. Is there a way to stop those sounds when I need to, but not the sound loop thats loaded in level1? This has to be possible... it would save me soooo much time.
Stopping Sounds
one more problem that I have that isn't as imparitive that I find the asnwer to compared to the last thread is this - instead of using a jukebox player to play loops (7 different ones) I would like to have a specific loop for each area of my site. When I go to do this, the sounds tend to "run into each other" so to speak. In one section I have a loop either set to event or start - I've tried both - and when I go into the next area of the site with a different loop, both loops play at the same time. The previous loop should have stopped. I've tried using the stop all sounds command, and all sounds do stop at that time, but when going into another area of the site with another loop, there is still no sound. I've also tried using blank movies with two frames and a stop action for both frames, one frame has the loop set to event or start - again I've tried both - and the other has none selected for the sound. I use a tell target on a button when going to a different area of the site to go to frame 2, hoping that the loop would stop and the new one would start up in the next section, but still both loops overlap and play over one another. Is there any way around this? I would like to just have something where I can go from one area of the site with one specific loop, to the next area of the site playing another loop, without the two of them playing over each other, I think it would set a specific mood in the site that I'm trying to get. Any help would be appreciated.
Dynamicly Stopping MCs
I need to know how to stop a movie clip thats nested, and numbered dynamically. (ex. rung.rung1.stop(); rung.rung2.stop()
If you need more information, see below.
Information:
I have a movie clip (ladder), that uses:
Code:
duplicateMovieClip(rung1,"rung"+numRungs,numRungs);
in the parent of that very same movie clip, I have the lines:
Code:
if (ladder.numRungs == 32) {
for (x=1; x<33; x++) {
ladder.eval("rung"+x).rung.stop();
}
ladder.numRungs++;
}
The important part is:
ladder.eval("rung"+x).rung.stop();
I guess thats not legal, because it doesn't stop any thing at all. If I use:
lader.rung1.rung.stop();
it works fine..............
What do you do to dynamically stop MCs
|