Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








My Button Doesn't Stop...


I am trying to create a pinwheel effect on a button that when you mouse on to the button it starts to spin slowly then speeds up to full and when you roll off slows down to a stop.
The problem I am having is that it will start spinning on it's own then when you mouse over it starts and keeps going (the way it's suppose to) and when you roll off it slows down to a stop (great), but then will start spinning again.

If you don't mind taking a look at what I have done, and advising on how to fix it, I would be very greatful (and less bald as I am currently pulling out my hair!!)

Thanks




FlashKit > Flash Help > Flash Newbies
Posted on: 03-24-2006, 01:23 AM


View Complete Forum Thread with Replies

Sponsored Links:

New Button Doesn't Stop Previous Button Videoplayback.
Hello.

I'm very new to ActionScript, just trying to put a simple portfolio site of mine and don't have enough time to dig flash properly. My site contains buttons, which after click go to given frame in the time line and display videoplayer. Autoplay is false, but when you hit play on the player and the video rolls with audio and then when you don't press stop just another button (all buttons are visible all the time on the stage) it gives another frame and another video player with different content, but the previous audio is still playing! I don't know how to fix it fast and in least complicated way.

ActionScript for button:

this.buttonname_btn.addEventListener(MouseEvent.CLICK, clickListener0);
function clickListener0(event:MouseEvent):void {
gotoAndPlay("framename");
}

And at given frame is a keyframe with videoplayer, and frame after it is actionscript saying gotoAndPlay("previousframe"), so multiple button click doesn't goes to next keyframe with another player.

In short: i need to stop all ongoing playback after button click, but still be able to press play on the player and get content.

Thank you in advance for your help.

View Replies !    View Related
[MX]gotoAndStop Button Doesn't Stop;
Seemingly simple, yet very frustrating. I've got this button:

Code:
on(release){
gotoAndStop("Game", 1);
}
and in the scene it goes to there's just a stop(); , BUT it doesn't stop and goes instantly to the previous scene with the button again.

Is it just some problem MX has, or what could be wrong?

View Replies !    View Related
Button-controlled Clip Movement That Doesn't Stop On A RollOut
Hello,

I have a movie clip that moves veritcally along the y-axis when a button is rolled over or out.

It works fine, but I'm having problems modifying it. What I want is for the clip to start moving up on the rollover (which it does currently), but cannot move back down until it has reached the top destination. Despite including the "if" statement it, as soon as the button is rolled-out, the clip starts dropping down no matter where it is along the y-axis. Does anyone know how to control that? Thanks in advance for your help.

Here are the scripts I'm using:

for the movieclip (name is boltgunSlider)
**********************************
onClipEvent (load) {
this._y = 490;
_root.boltgunSlider.newdest = 490;
}
onClipEvent (enterFrame) {
this._y += (_root.boltgunSlider.newdest-this._y)/3;
}
**********************************

for the Button
**********************************
on (rollOver) {
boltgunSlider.newdest = 325;
}
on (rollOut) {
if (boltgunSlider.newdest = 325){
boltgunSlider.newdest = 490;
}
}
**********************************

View Replies !    View Related
How Do I Disable The Enter Button So That It Doesn't Override The Stop() Function?
In the game I'm making, the stop() function keeps people from skipping levels but pressing enter overrides the stop() command and lets them go on to the next level. Anyone know how to disable it?

View Replies !    View Related
Making A Stop Button, Or Telling A Button To Stop A Streaming Video
Hello,

I've searched the forums and tried to find an answer to this question, but most of the posts go unanswered or are way beyond my understanding.

I'm using a form based application in Flash professional 8.

I have a .flv video of a movie trailer that I created from Quicktime. I intend to stream this video.

I also have a button called "Trailer". When I click on the "Trailer" button, I see the .flv video I created along with the play/pause control skin that I added in the import video wizard. I press the play/pause button, and the movie plays.

This is as I had expected it to be.

Now, when I want to go to something different, for example clicking a "Photos" button that displays a slideshow, the video continues to play.

Is there a way I can tell the "Photos" button to stop the streaming video?

I've searched the forums, and found a few answers, but I don't really understand them. I added them to the script of the "Photos" button anyways to see if they did anything, and every time the video still kept playing.

Here's what I've tried so far:
------------------------------------------
button.onPress = function (){
player_mc.clearVideo();
}

Where player_mc is the instance name.
-------------------------------------------
Adding a stop component, but this isn't really what I want. I'd like the "Photos" button to stop the movie without the user having to hit a separate stop button.
-------------------------------------------
.stop() and ._visible=false;

I don't really understand this.
-------------------------------------------
removeMovieClip("component_mc");
-------------------------------------------
instance.stop()

From what I understand this is only for adding to a keyframe to stop a movie that's looping, and not for what I would like to do. Is that correct?
-------------------------------------------

I would greatly appreciate any help, not only just for me, but for any other newbie who may run into this problem.

Thanks!

View Replies !    View Related
Sound Doesn't Stop
i'm new on flash, but i feel, that flash will be part of my life

my problem is following. i've got to soundloops, for two scenes. But in scene 2 the sound-loop is still playing.
where's my mistake? thx in advance for any answer (hopefully solution)

View Replies !    View Related
Music Doesn't Stop, It Does But....
Ok, I'm in trouble once again: I made a MC with some music, everything is fine, I created a button for music on/off, fine. Starts the movie, I turn off the music and go on connecting to other frames in the scene, but when I go back to the main page the music starts again even though the button is off, what's wrong with it??? I'm going insane. Thanx for your help!!!

View Replies !    View Related
Gotoandstop Doesn't Go To, Or Even Stop
Here's what I'm experiencing: I have a game charachter who contains banks of animations on seperate frames. Depending on which button you press, it moves him to a specific frame, so the animation will play. The problem with this has been that it tries to go one frame beyond where I tell it to. And when it gets there, the movieclip on that frame stays still. And it's the wrong frame! And then it plays on to the next animation randomly! O_o

Really, it's gottent to be a terrible mess now. After some working on it, I've gotten it to be functional, but only by adding an additional frame, so the numbers don't match up. If anybody can figure out what went wrong without my needing to post the code, I'd appreciate it. If it's not enough information, I'll post the code later. Thanks.

*Just a note... when I was testing the game once, everything froze, and then my computer rebooted... But since that hasn't hapnnened after that, and one harddrive was powering up at the time, I didn't think there was too much of a connection...?

View Replies !    View Related
StopDrag Doesn't Stop
I'm making a "makeover" game of one of my teachers to show to the entire school (with his permission) on Tuesday. I am using the following code to drag the articles of clothing.


Code:
on(press) {
this.startDrag();
this.gotoAndStop(2);
}
on(release) {
this.stopDrag();
}{
My problem is that stopDrag doesn't stop the Dragging everytime. About 10% of the time, the piece sticks to my mouse and i drag it all over, no matter how much i click. How can i fix this?

View Replies !    View Related
[F8] [AS 2] GotoAndStop And It Doesn't Stop, Please Help.
Hello,

My problem is that I'm trying to use a simple "gotoAndStop" and it doesn't stop. I do know why, what I don't know is how to fix it.

There's a small square button with the number 15 that you click and it should take you wherever #15 image is and stop... but it's not stopping.

You can see the intro here: http://www.ricardozea.net/images/lk-jewelry.html

In between each image I'm using a Timer, it waits/stops for 3 seconds and then continues, here's the code:


Code:
stop();
wait_time = 3000;
start_time = getTimer();
this.onEnterFrame = function() {
//trace(now_time - start_time)
now_time = getTimer();
if ((now_time - start_time) > wait_time) {
play();
}
};
I see that this piece of code is not letting the simple "gotoAndStop" work, but I don't know how to fix it.

Can anyone please give me a hand?

Thank you.

View Replies !    View Related
AS3 Stop(); Doesn't Work
Hey, 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. Help!

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. Any help would be great!

Thanks!

View Replies !    View Related
Sound Doesn't Stop
I just import my audio into my library, and I chose a keyframe and below in the properties inspector you get to choose the sounds in your library. I did it that way, but when you pause the movie the sounds keeps going.

So, I want it to stop the sound when the user right-clicks on my animation and un-select the play in the menu.

Any help would be great!!

View Replies !    View Related
Help Stop() Doesn't Work
I have been working in flash for years and this has never happened to me before. I am creating a calendar with a labeled area for each calendar, plus a labeled area for each month to load an external intro movie for the month.

There are just basic stop actions in the labeled areas and I cannot figure out why it wouldn't be working. Is there some bug in Flash 8 that I haven't been able to discover?

View Replies !    View Related
Tween Doesn't Stop
Hello

My problem is that I have a movieclip that initiates a function when clicked. This function contains if-statements to find out if the movieclip has been pressed before. I then uses w.stop(); to stop a tween started before, but i doesn't work!

I want to stop the tween because otherwise the onMotionFinished-statements are executed and I don't want that until the tween really is finished. Can anyone help me?









Attach Code

function showModel() {
var box = this.imageholder;
var image = this.t;
var w:Tween = new Tween(box, "_width", Regular.easeOut, box._width, 300, .8, true);
var h:Tween = new Tween(box, "_height", Regular.easeOut, box._height, 400, .8, true);
var tx:Tween = new Tween(image, "_x", Regular.easeOut, image._x, 10, .8, true);
var ty:Tween = new Tween(image, "_y", Regular.easeOut, image._y, 10, .8, true);
w["onMotionFinished"] = function():Void {
//my statements
};
if(box._width < 83) {
thumb._alpha = 100;
} else {
this._alpha = 100;
w.stop();
h.stop();
tx.stop();
ty.stop();
}
}

View Replies !    View Related
GotoAndStop() Doesn't Stop
Gentlefolk;

Lots of discussion here on gotoAndStop(), but the solutions are not working for me.

My use of gotoAndStop("Frame1); plays the entire movie clip. Where am I erring?

the code, attached to a button, is:

on (release) {
gotoAndStop(5);
contentHolder_MC.attachMovie("InitialRequest_ID","InitialRequest_MC",1);
contentHolder_MC.InitialRequest_ID.gotoAndStop("Frame1");
}

What is supposed to happen is on release, the main timeline goes to frame 5 and stops.
That works correctly.
In the movie clip called ContentHolder_MC, which is a box holding content in the MC "InitialRequest", the MC does display in the ContentHolder.

But, the second "gotoAndStop("Frame1"); ends up playing the entire movie and not stopping on "Frame1".

I want to use this technique of using named frames to display different content in "ContentHolder" but can't get the called MC "InitialRequest" to stop on the specified frame.

Can someone correct my approach?

Many thanks!

Don

View Replies !    View Related
AS3 FLV Sound Doesn't Stop
I have a swf with 4 scenes, in each scene there's a FLV video. I have buttons going to prevScene and nextScene and when go back and forward I hear the sound of another FLV, any ideas?

the code for the buttons (for example) is

button1.addEventListener(
MouseEvent.MOUSE_UP,
function(evt:MouseEvent):void {
myPlayer.stop();
SoundMixer.stopAll();
prevScene();
}
);

View Replies !    View Related
Scroll Doesn't Stop :(
I wrote this code for scrolling content:

ActionScript Code:
onClipEvent (mouseDown) {    if (this.hitTest(_root._xmouse, _root._ymouse)) {        var uppressed = true;        updateAfterEvent();    }}onClipEvent (enterFrame) {    if (uppressed) {        if (count != 125) {            _parent._parent.news._y -= 5;            count += 5        }    }    updateAfterEvent();}onClipEvent (mouseUp) {    uppressed = false;    updateAfterEvent();}
and for opposite:
ActionScript Code:
onClipEvent (mouseDown) {    if (this.hitTest(_root._xmouse, _root._ymouse)) {        var dnpressed = true;        updateAfterEvent();    }}onClipEvent (enterFrame) {    if (dnpressed) {        if (count != 0) {            _parent._parent.news._y += 5;            count -= 5        }    }    updateAfterEvent();}onClipEvent (mouseUp) {    dnpressed = false;    updateAfterEvent();}
When I scroll down it works and stops when count reaches 125, but when I scroll up it doesn't stop and scrolling down doesn't work anymore... Any help?..

View Replies !    View Related
Scroll Doesn't Stop :(
I wrote this code for scrolling content:

ActionScript Code:
onClipEvent (mouseDown) {    if (this.hitTest(_root._xmouse, _root._ymouse)) {        var uppressed = true;        updateAfterEvent();    }}onClipEvent (enterFrame) {    if (uppressed) {        if (count != 125) {            _parent._parent.news._y -= 5;            count += 5        }    }    updateAfterEvent();}onClipEvent (mouseUp) {    uppressed = false;    updateAfterEvent();}
and for opposite:
ActionScript Code:
onClipEvent (mouseDown) {    if (this.hitTest(_root._xmouse, _root._ymouse)) {        var dnpressed = true;        updateAfterEvent();    }}onClipEvent (enterFrame) {    if (dnpressed) {        if (count != 0) {            _parent._parent.news._y += 5;            count -= 5        }    }    updateAfterEvent();}onClipEvent (mouseUp) {    dnpressed = false;    updateAfterEvent();}
When I scroll down it works and stops when count reaches 125, but when I scroll up it doesn't stop and scrolling down doesn't work anymore... Any help?..

View Replies !    View Related
Graphic That Counts And Doesn't Stop
I've seen a website before where it said.... 200,300 killed and it keeps counting up and doesn't stop. This was done thru flash but I tried and tired to get it but I can't seem to find out how to do it. I figured I would use the count but I was told the only way you can take a numerical text and make it count up dynamically is thru actionscript. Can anyone put me in the right direction. THanks

View Replies !    View Related
Mc Doesn't Play/stop Accurate
check this site
www.pasha.be

in the mean movie there's an equalizer on the bottom (right).

if you push the x the clip stops, that's okay

if you push 1 (loop1) the clip starts playing, but if you push it twice, the clip stops again...

anyone?

View Replies !    View Related
Playhead In Reverse; Keeps Going, Doesn't Stop
hey there, i'm just having a bit of a problem with my site, i've got the playhead to play backwards using the following script. But because there's an onEnterFrame it ignores my (stop (); at this frame). How would i get the playhead to stop at a labelled frame instead of just continuing on? thank you

on(release){
this.onEnterFrame=function(){
if(this._currentframe>1){
this.prevFrame();
}
{if(this._currentframe("preview")
this.stop();
}
else{
delete this.onEnterFrame;
}

}
}

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
Why Doesn't My Movie Stop On Frame 4?
I'm using

stop();

It just plays over and over and ignores the stops. What am I not getting here?

Thanks.

BTW: I'm new to AS3 and am having lots of problems. Being more of a designer than a coder I miss the way I used to be able to code in AS1 & 2. sigh

View Replies !    View Related
Dynamic MovieClip Doesn't Stop
Hello,
i have a swf-player, which load dynamicly several external swf-files. this all works without problem. my problem is, that the movie doesn't stop after playing once on end. if i click on the button, it works, but not at the end.

ActionScript Code:
...

arrMediaFile = strMediaFile.split(";");
arrMovieClip = new Array(arrMediaFile.length);
arrMovieLoaded = new Array(arrMediaFile.length);
for (i=0; i<arrMovieLoaded.length; i++) {
    arrMovieLoaded[i] = 0;
}
                
createEmptyMovieClip("myVideo",1);
createEmptyMovieClip("nextVideo",2);
myVideo._lockroot = true;
...

myVideo.loadMovie(arrMediaFile[0]);

frmOfVideo = myVideo._totalframes;
offset = lengthBar/frmOfVideo;

// Play
play_btn.onRelease = function() {
    VideoStatus(1);
}
// Pause
pause_btn.onRelease = function() {
    if (statusVideo == 0) {
        VideoStatus(1);
    } else {
        VideoStatus(0);
    } 
}
// Rewind
rwd_btn.onRelease = function() {
    myVideo.loadMovie(arrMediaFile[0]);
    VideoStatus(0);
// Here is my problem. The movie doesn't stop here!  
    myVideo.gotoAndStop(1);
}


function VideoStatus(fStatus) {
    if (fStatus == 1) {
        // play Video
        if (fStatus != statusVideo) {
            statusVideo = 1;
            myVideo.play();
        }
        play_btn._visible = false;
        pause_btn._visible = true;
    } else {
        // pause Video
        if (fStatus != statusVideo) {
            statusVideo = 0;
            myVideo.stop();
        }
        play_btn._visible = true;
        pause_btn._visible = false;
    }
}


function timeCallback() {
    ...
    currentVideo = 1;
    trace("VIDEO: goto first");
    unloadMovie("myVideo");
    myVideo.loadMovie(arrMediaFile[currentVideo-1]);
// Here is my problem. The movie doesn't stop here!   
    myVideo.stop();
    ....
}
setInterval(timeCallback, 50);

what do i wrong?
thx!
red

=> the complete code is in the attachement.

View Replies !    View Related
Stop Action Doesn't Work
I have a simple website with five pages set up. There is no code other than the code on the first frame, plus a stop action on each section. The first thing in the code is the stop action, but it still keeps running through all the frames when I test it, and a movie clip set up in a similar way does the same thing. What could be causing this? I tried taking all the code out of frame 1 except the stop action but it didn't make any difference. I am starting to work with actionscript 3.

thanks







Attach Code

stop();

//LINKS FOR MAIN BUTTONS - ACTIONSCRIPT 3 CODE
//home button
//make new function called home which sends to home page
function goHome(e:Event)
{
gotoAndStop("HOME")
}
//make listener for home button,
//tells it to use goHome function on mouse click
btnHome.addEventListener(MouseEvent.CLICK, goHome);

//group button, name of button is btnGroup,
//name of page is "GROUP", name of function is goGroup
function goGroup(e:Event)
{
gotoAndStop("GROUP")
}
btnGroup.addEventListener(MouseEvent.CLICK, goGroup);

//reviews button
function goReviews(e:Event)
{
gotoAndStop("REVIEWS")
}
btnReviews.addEventListener(MouseEvent.CLICK, goReviews);

//clientlist button
function goClientlist(e:Event)
{
gotoAndStop("CLIENTLIST")
}
btnClientList.addEventListener(MouseEvent.CLICK, goClientlist);

//listen button
function goListen(e:Event)
{
gotoAndStop("LISTEN")
}
btnListen.addEventListener(MouseEvent.CLICK, goListen);

//END LINKS FOR MAIN BUTTONS

View Replies !    View Related
Why Doesn't Preloader Stop Movie?
I'm pulling my hair out on this one.

Here's the fla if you can help:

http://www.argoncreative.com/test/testpreloader.fla

The movie has a preloader in frame 1 but the movie just plays through ignoring the conditions of the preloader.




<cursing his flash ignorance>
t2d

View Replies !    View Related
Sliding Menu Doesn't Stop Where It Should
Hi,

I created a page using the sliding menu but I seem to have a problem with the way it stops on a movie clip. If I add too many movieclips (don't know if it's the number or the width of them causing the problem) the script doesn't stop right on the center of the movieclip. it looks like it doesn't stop smack down centered and it gets worse the more movieclips you add.

Can anyone help please? this is the page I made http://www.thenextmen.com/

If I add more links the content in the middle is not aligned. Every movieclip is the same size.

Thanks

Ben

View Replies !    View Related
Stop(); In First Frame Doesn't Work. Why?
Hi!

I sometimes run in to this weird problem where my stop(); frame doesn't actually stop. I have a movieclip named NestingMc which I bring to the stage via actionscript. Inside my NestingMc I have a movieclip ChildMc. ChildMc has a timeline on it's own and on the first keyframe of that timeline I have written a simple stop(); command. But my ChildMc doesn't actually stop in the first frame it just plays to the next keyframe that has a stop(); command.

Anyone?

View Replies !    View Related
Sound Doesn't Stop Until I Quit The Browser
Hey, Flash maniacs!
I posted this in the "music and Sound" section but nobody replied - I still hope that some of you, gurus, juust don't go there and this is why there's no reply yet Anyway, here's what happens - I have a main .swf that contains all the graphics and then I have all my sound files on different .swfs. The first frame of my main movie calls the background sound loop .swf. When I close the browser window where my main movie is playing, the background music doesn't stop. I have to quit the browser (not only close the window!!!) in order to stop it playing... Any clue anyone?
Thanks a lot!

View Replies !    View Related
Music Doesn't Stop Until I Close The Browser
Hey people, I'm sorry I'm posting this again, but I still haven't found the solution to my problem and, on top of that, I guess my previous post didn't make a lot of sense to those of you who use PCs only. Anyway, on a Mac you can have a browser (or, for that matter, any program) started but no window (existing or new document) open. So, let's say I have the browser open and a window in which the HTML page containing my flash movie (with its background music) playing. Then I have other pages open in separate windows in the same browser. When I close the window containing the flash movie with the background music, the music doesn't stop. I have to close (quit) the browser (which closes all my other open pages) in order to have the music stop. This happens only on a Mac. Sorry if I was vague in my previous post and I really hope somebody knows what this is all about This is not the first time I see this happen and I am not the only one having experienced this Thanks for all your help, Flash gurus!

View Replies !    View Related
That Scroller Doesn't Stop, I'm Feeling Sea-sick;)
step by step, I'm trying to learn. but now I've got another problem. I've got a sliding menu in a movie clip that activates various movieclips when I press the buttons like the one in
http://www.flashkit.com/movies/Inter...-463/index.php
taking this movie as an example, I'd like to understand
1) if the scrolling of the menu can be activated ONLY when the mouse is on it (Dunno, I really can't figure out HOW )
2) if there is a way to stop it when the mouse is over it; I've tried inputting commands such as on mouseover stop/on mouseout play but probably I'm waaaaaay out from the right path...
can you help me!?

View Replies !    View Related
Play/stop Doesn't Work Properly With MC
hi there
please go to www.pasha.be
you can choose some loops at the right bottom... a LED is also playing when the loop plays, but if you push a loop one time (while the LED is playing) is stops again.... :O(
can somebody help me?
greetz
melvin

View Replies !    View Related
[F8] Help My Flash Page Doesn't Stop Looping.
http://www.abccreativegroup.com/optimized/main.html

This is a website I am working on right now, and for some reason, it keeps looping!

There is a main page, and each link loads a new .swf onto a blank movie clip. I have the stop(); action at the end, but after I click on a few links, it keeps looping for some odd reason.

I need help pronto, since our client needs to loop at this asap, and I don't want to send it to him like it is!!

-Manny

View Replies !    View Related
[CS3] Uploaded Site Doesn't Stop On The First Page
Complete newbie, just started this today... I'm following a tutorial and trying to make a website, just as a test to see if I get any of it. It works quite all right - except when I upload it and access it. Then it just moves from page to page to page, instead of stopping on the first page. If I click the links, it stops going round and round, but I want it to stop immediately, on the first page (the 'about' page).

The swf-file can be viewed here: http://cosmicuniverse.net/test/test.html

The flash-file can be downloaded here: http://cosmicuniverse.net/test/test2.fla

If anyone could explain in very small words (remember, complete newbie), I'd be very grateful. I thought I'd followed the tutorial to the t, but I've obviously missed or misunderstood something.

Cam

View Replies !    View Related
Dynamic Flvs, Doesn't Stop Problem
I have a flash piece that has 3 buttons. Clicking a button will load a respective .flv into a single flvplayback component in a separate movieclip on the stage. The flvplayback component movieclip also has a button to close the movie & removes the video from the stage. Clicking any of the 3 buttons dynamically loads either of the 3 .flvs correctly. They play correctly. When I click the close button to stop the video and remove the player from the stage the audio keeps playing but the video is gone. Is there a better way to stop the .flv from playing on the stage? Here's the code that stops the video.

_root.videos_mc.btnCloseVideos.onRelease = function():Void {
videos_mc._visible = false;
_root.videos_mc.videoPlayer.stop();
_root.videos_mc.videoPlayer.clear();
_root.videos_mc.videoPlayer.contentPath = null;
}

Thanks in advance for your help.
zak.

View Replies !    View Related
Loaded Swf Song Doesn't Stop Playing
I'm making a small music player that loads remote swf files (containing a song) using the MovieClipLoader class. The swf is loaded into a target clip swfContainer_mc. When the stop button is clicked I just tell that clip to stop using this code:
Code:
swfContainer_mc.stop()
This works locally but when the (same) player is tested online, it fails to work. I added this to the code when the stop button is clicked:
Code:
swfContainer.unloadMovie()
But even that failed to work online.

Anyone got an idea or any pointers where to look first?
Something to do with speficic settings for the Flash player?

Tnx in advance,
M.

View Replies !    View Related
Function Called OnPress Doesn't Stop OnRelease
I call a function (specifically: this.onMouseMove = _root.scaleVesicle that scales an mc relative to its dragged position (to create a 3d perspective effect). onPress of the mc, the function is called but i want the function to stop when the mc is released. how do i do that?

here's my code:

Code:
function scaleVesicle() {
// yada yada yada
//changes x & y scale based on position
}
for (var i = 0; i<=linkList.length-1; i++) {
_root.presyn.attachMovie("vesicle", "vesicle"+i, i, {_x:_root.vesPosXY[i][0], _y:_root.vesPosXY[i][1], _xscale:vesicleScale, _yscale:vesicleScale});
_root.presyn["vesicle"+i].onPress = function() {
startDrag(this);
this.swapDepths(1000);
this.onMouseMove = _root.scaleVesicle;
_root.vesGoBack = [this._x, this._y];
};
_root.presyn["vesicle"+i].onRelease = function() {
this.stopDrag();
this._x = _root.vesGoBack[0];
this._y = _root.vesGoBack[1];
this._xscale = _root.vesicleScale;
this._yscale = _root.vesicleScale;
};
}

View Replies !    View Related
External Music.swf Starts Loop And Doesn't Stop :(
hi, i used the

function loadSound(soundFile)

but my external swf still loop, i just want to play it once....what should i do?

Thanks in advance,
SheroKee

View Replies !    View Related
Stop Action Doesn't Work, My Animation Keeps Looping
Help!
Can anyone identify why my movie is looping even though I placed stop(); code at the end of my main timeline frame?
I just want my main stage to play a movie for a few sec. then stop the movie.
And on button click to fade out (btn including 3 movies at the same time) and go to the second stage.
But my movies keep looping twice and it will play through stage 2 and stop at stage 3.
At the end of each movie clip, I placed stop(); and this plays fine by itself when I was eliminating the problem.

Here's my code:
Code:

import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.transitions.TweenEvent;
var btnTween:Tween = new Tween(btnEnter, "alpha", Strong.easeOut, 1, .0, 15, true);
var topTween:Tween = new Tween( bg_top, "alpha", Strong.easeOut, 1, .0, 15, true);
var mTween:Tween = new Tween( m, "alpha", Strong.easeOut, 1, .0, 15, true);
var introTween:Tween = new Tween( intro, "alpha", Strong.easeOut, 1, .0, 15, true);
btnTween.stop();
topTween.stop();
mTween.stop();
introTween.stop();

import flash.events.MouseEvent;
btnEnter.addEventListener(MouseEvent.CLICK, advance);
function advance(e:MouseEvent){
btnTween.start();
topTween.start();
mTween.start();
introTween.start();
btnTween.nextFrame();
}


Above action is on the 1st frame of the button when it's fading in from 0 (fading in animatn done on main timeline)
to activate the button function, that when clicked it will stop fading in and start fading out to 0 again and play next stage.

Thanks!

View Replies !    View Related
Stop Action Doesn't Work Inmovie Clip In A Movie
I have a movie clip that has a stop action at the end of it. I imported it into the library of the movie I want to view it in. Yet when I play the host movie, the stop action in the imported movie clip does not work. It just loops. What's up with that?

T.

View Replies !    View Related
Movie Clip Button Doesn't Let Button Change
if i have a btn inside a mc, and i want the btn to change colors in rollover but the movie clip on top does not let it. what can i do?


thanks gneius people

View Replies !    View Related
Stop Button States In Button With Animation With Button
Hello there,

I wonder if someone could help me to do this:

I have a movie clip with 3 animated buttons in it. Now I want to make the same movie clip into a button itself but I want the inside buttons not to show their over, press or hit states.

If I try and change the buttons' states this will change the originals which I don't want to do. I could replace the buttons with stills but this could be very time consuming since I have a lot of buttons in very long and complex animations. I could also duplicate the buttons and make the changes and then substitute them in the new movie, but this is also a very long process...

Is there a way to disable the buttons' state in an instance of the button as supposed to all of them when changing the master ?

Thanks a million to whoever helps.

Daniel

View Replies !    View Related
Loading Movie In Same Level Doesn't Stop First Movie Downloading
I could see this in the Safari browsers Activity window.

I have made a site which loads external swf's using loadMovieNum - all in level 3 - upon pressing different buttons.
I thought that if one swf was in the proces of downloading in level 3, and you press another button which loads another swf also in level 3, the download of the first swf would stop - but it doesn't.
It replaces it on the site of course - but the download of the first swf continues in the background - using unnecessary bandwith.

It does the same with loadMovie in to the same empty movieclip.

And

_level3.stop();

...also doesn't stop the download.

Is this the way it's suppose to work ?- I don't like it. I would rather not use UnloadMovie for obvoius reasons.

View Replies !    View Related
Popup Window Doesn't Stop Window.open
Hi,

check out www.adidas.com/1

You will notice that although you might have popups blocked the site still pops up. I have checked the source and they seem to use window.open.

Any ideas how thye have done this?

thanks

ash

View Replies !    View Related
Popup Window Doesn't Stop Window.open
Hi,

check out www.adidas.com/1

You will notice that although you might have popups blocked the site still pops up. I have checked the source and they seem to use window.open.

Any ideas how thye have done this?

thanks

ash

View Replies !    View Related
Created This Scrollable Text But The Text Doesn't Stop And Just Keeps Going
Theres this tutorial on this site about builign a scrollable text,
http://www.flashadvisor.com/tutorial/Beginners/Building_Easy_Text_or_Images_Scrolling_with_Flash_MX_2004-21-4.html

I've built it, but when I use the arrow scrollbars, the text keeps on going and it also does it in reverse. Can't seem to work it like on the example. Could it be that I am using the latest Flash or is this action 2 script incompatible?

Does anyone know how to make it stop at the end of the text and not to be able to go backwards either.

View Replies !    View Related
Menu Bar Button: Code To Stop Button
Hi at all.

I have a problem with script below about my Menu bar.
I want each button of menu bar don't turn back when I click it.

In others words, I want this:
1. Mouse_Over, button go down;
2. Mouse_Out, button go up;
3. Click, the button clicked stops in down position but turn up when I click another button of menu bar.

I have tried with a "removeEventListener" but (you can verify in the .fla who I give you address) it don't work.

Why? Please, can anyone help me to resolve that problem?

Thanks.

Bye,
eloisa

======================
The .fla file is here: http://file.webalice.it

Please, use this username and password to download it:
username: libercoriando
pw: menubar

Thanks



Code:

import fl.transitions.Tween;
import fl.transitions.easing.*;

var allHits:Array = new Array();
allHits = [hit_home, hit_about, hit_menu, hit_gallery, hit_contacts];

for(var i:Number=0; i<allHits.length; i++)
{
allHits[i].addEventListener(MouseEvent.MOUSE_OVER, rollMeOver, false, 0, true);
allHits[i].addEventListener(MouseEvent.MOUSE_OUT, rollMeOut, false, 0, true);
allHits[i].addEventListener(MouseEvent.CLICK, clickMe, false, 0, true);
}


/* var myMenu:Array = new Array();
myMenu = [home_mc, about_mc, menu_mc, oro_mc, gallery_mc, contacts_mc]; */

//Definisco la funzione rollMeOver
function rollMeOver(e:MouseEvent):void
{
var allMenu:MovieClip;
switch (e.currentTarget.name)
{
case "hit_home":
allMenu = home_mc;
break;

case "hit_about":
allMenu = about_mc;
break;

case "hit_menu":
allMenu = menu_mc;
break;

case "hit_gallery":
allMenu = gallery_mc;
break;

case "hit_contacts":
allMenu = contacts_mc;
break;
}

new Tween(allMenu, "y", Elastic.easeOut, 10, 25, 1, true);

var colorTransform:ColorTransform = allMenu.transform.colorTransform;
colorTransform.color = 0xBFE4FF;
allMenu.transform.colorTransform = colorTransform;

}

// Definisco la funzione rollMeOut
function rollMeOut(e:MouseEvent):void
{
var allMenu:MovieClip;
switch (e.currentTarget.name)
{
case "hit_home":
allMenu = home_mc;
break;

case "hit_about":
allMenu = about_mc;
break;

case "hit_menu":
allMenu = menu_mc;
break;

case "hit_gallery":
allMenu = gallery_mc;
break;

case "hit_contacts":
allMenu = contacts_mc;
break;
}

new Tween(allMenu, "y", Elastic.easeOut, 25, 10, 1, true);
var colorTransform:ColorTransform = allMenu.transform.colorTransform;
colorTransform.color = 0xFFFFFF;
allMenu.transform.colorTransform = colorTransform;


}

//Definisco la funzione clickMe
function clickMe(e:MouseEvent):void
{
trace ("Pulsante cliccato! Grazie!");
if (e.currentTarget)
{
allHits[i].removeEventListener(MouseEvent.MOUSE_OUT, rollMeOut, false, 0, true);
}

}

View Replies !    View Related
Button Doesn't
Hi I want my button to work like this when you click it goes back to the page the viewer was on but my action is wrong can some corect me
thanks

Code:
onRelease = "image" src="<url of back button image" onclick="window.history.back()"
gotoAndStop };

View Replies !    View Related
Why Doesn't My Button Work?
In a movieclip which is called box3, I put a button in it that I had made before. In the edit mode of MC box3 I went into the object actions for the button. I put in this:

on (release) {
tellTarget ("box3") {
gotoAndPlay (50);
}
}

I wanted the MC to jump to frame 50 when the button is pressed (released). But when I run the movie (I put the MC on the main scene first) I can't click the button. It doesn't even change, it's just there like any other object.

Please help!

Thanx...

/Peter

View Replies !    View Related
Button Doesn't Works Well
HI !

Now my problem is the buttons. Always I have to do a double click on the buttons to work well. Otherwise it does the half work.
Why why why???
for example

on (press, release) {
_root.gotoAndStop("prodotti");
}
In this case, often I need do another click on the button to go in the label "prodotti".

on (press, release) {
setProperty ("sostituire", _visible, "true");
loadVariables ("descCB500.txt", modelli);
_root.modelli = descCB500;
loadMovie ("borse.swf", _root.sostituire);
}
In thes case, first I see the photo, then, with another click, the button shows the text.

Why WhyWhy??

Thanks evebody!

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved