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




Tricky On Rollover Play And Stop On A Specific Frame Code?



Hello everybody,

I am wondering if I can assign a code to a button to go and play from frame"1" to frame "2" and then stop, but the trick is that I dont want to have a "stop" code on a last frame because I need to play whole movie through (looping) and only stop when I will rollover the button. The scenario is to play whole movie through in a looping and only when the user will rollover the button it will play a certain set of frames on a timeline and then stop.

Any advice is highly appreciated.
Thanks in advance.



FlashKit > Flash Help > Flash ActionScript
Posted on: 02-25-2005, 07:45 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Play And Stop On Specific Frame
I have a movie clip of a robot (i made in swift 3D) that spins around in flash. Its instance name is "tachi". It has 29 frames in the movie clip.

I have some buttons on the main timeline:

On button 1 release, I need the movieclip to play from frame 29 and go backwards to frame 15 and stop.
(15 <---------- 29)

On button 2 release, I need the movieclip to play from frame 15 to 25 and stop.
(15 --------->25)

The rest of the buttons I will have go to other frames once I figure out how its done. The thing is, I cant put stop frames on the movieclip's timeline, I need the actionscript to make it play to and stop on certain frames.

Would anyone know how to do this? Thanks if you can help.

Stop Actionscript Function At A Specific Frame (stop Looping)
I want to stop an effect at a specific frame but I dunno how.
Do I have to put something in the code?
I'm confused.
Or just tell me how to stop it from looping.
Edit:
Is it possible to attach this to a movie clip? Then i can stop it or use onEnterFrame and then escape();
I actually have no idea what I am talking about. /Edit

Here is one of the code I borrowed:

MovieClip.prototype.placeInSpace = function(id) {
var ratio = this.focaldistance / Math.sqrt(this[id].z * this[id].z);
this[id]._x = this[id].x * ratio;
this[id]._y = this[id].y * ratio;
this[id]._xscale = this[id]._yscale = 1000 / this[id].z;
}
MovieClip.prototype.randomPlace = function(id) {
var radius = this.rmin + (this.rmax - this.rmin) * Math.random();
var polar = 2 * Math.PI * Math.random();
this[id].x = radius * Math.cos(polar);
this[id].y = radius * Math.sin(polar);
this[id].z = this.zmin + (this.zmax - this.zmin) * Math.random();
}

Here's the other code cause I can use two in my movie:
function mover() {
// Move the particle over time
this._y += this.speed;
this._yscale += 10;
this.speed++;
if (this._y>500) {
this._y = 0;
this.speed = Math.random()*10;
this._yscale = 100;
}
}
function starField(x, y, n) {
// Generate a starfield of specified dimensions with n stars
for (var i = 0; i<n; i++) {
var star = this.createEmptyMovieClip("star"+i, i);
var dot = star.createEmptyMovieClip("dot", 0);
star._rotation = Math.random()*360;
star._x = x;
star._y = y;
dot.lineStyle(0, 0xFFFFFF, 100);
dot.moveTo(0, 10);
dot.lineTo(0, 15);
dot.onEnterFrame = mover;
dot.speed = Math.random()*10;
}
}
starField(275, 200, 100);

Stop On A Specific Frame...
I have a banner ad that I need to loop 2 or three times, and then stop on a specific frame. How do you do it!!

Thanks

Can't Go To Specific Frame In New Movie And Stop
Hi, I have an html page (ai_blue.html) with a movie (ai_blue.swf). I want ai_blue.swf to load ai_yellow.swf into level 10 (or any other level) and go to the frame labeled "trot". It always goes to the first frame though.

The code in ai_blue.swf is:

loadMovieNum("ai_yellow.swf", 10);
_level10.gotoAndStop(trot);

I've attached the files. I have scoured the forum but all my attempts only load ai_yellow.swf and start at the first frame rather than the one labeled "trot". Can someone please tell me what I am doing wrong?

Thanks,
El Greco

[CS3] [AS 3.0] Go To And Play From Specific Frame
Hey,

I am very new to Flash. I did some searches on here but got confused.

I have a button and am simply trying to go to a specific frame and play from that frame when the button is pushed.

How would I do that and where would I write the code?

Play A Frame On Specific URL
The idea is to make a script that if specific URL is loaded to play some frame?

How to do it? Is it possible?

Thanks

Loop # Of Times, Stop At Specific Frame
Hi there,

I'm having trouble finding the answer to a simple (I hope) question. I made a flash banner and have successfully added an action that will loop it 3 times, stopping on the last frame. Here is the code I entered in a separate action layer:

INSERTED A KEYFRAME IN FRAME 1:
if (numberOfTimesToLoop<3) {
gotoAndPlay(1);
numberOfTimesToLoop++;
} else {
stop();
}

INSERTED A KEYFRAME IN MY LAST FRAME OF THE TIMELINE:
if (numberOfTimesToLoop<3) {
gotoAndPlay(1);
} else {
stop();
}

Works beautifully, only I need the movie to stop on frame 274 on the last loop, where I want certain elements not to fade out (I have 279 frames in my movie). Can anyone help me out? I'd really appreciate it!

Looping Scenes To Go From First Frame To Last Frame And Rollover Button Play
I'm trying to figure out:

a) how to loop a scene to go from the first frame to the last to the second last etc

WHILE

b) having the scene play either forwards or backwards (as above) while the user has their mouse over a button but making the scene pause when the users mouse isn't over the button.

can anyone help me????

Random Video = Play Specific Code
Hi guys and girls (if there are any on this forum).

Im using Flash 8 and let me just clarify that I am not that good at coding with Actionscript in fact I suck lol. I specialise more in the design aspect when using Flash!
Anyway, basically Ive been able to come up with this piece of coding that allows me to play one of three video's that Flash randomly selects. This works fine

var video_array = new Array();
video_array[1] = "video1";
video_array[2] = "video2";
video_array[3] = "video3";

var max = video_array.length;

for (var i = 0; i < max; i++) {
var name = video_array[i];
this[name]._visible = 0;
this[name].stop();

}

var randomNumber = Math.floor(Math.random() * max);
var randomVideo = video_array[randomNumber];
this[randomVideo]._visible = 1;
this[randomVideo].play();

stop();


However, what Im trying to do now, is depending on what video is selected I want it to read/play a speific piece of coding ive created. For exmaple if the 2nd video is chosen in random I want my wheel to spin, if the 3rd is selected then for the wheel to stay where it is etc etc.

I'm guessing it has to start off with "if..........." but thats all about I can come up with.
If anyone can be of any help it would be much appreciated!!!

Thanks guys/girls

I Need A Movie Clip To Play, Stop And Play Again In The Next Frame
I need a movie clip to play, stop and play again in the next frame. So pretty much i have to get the movie clip to play once and stop then when you go to the next frame it should play again once and stop again. What i have is a slide show type thing where you click on the next button to advance to the next frame and in each frame i have all the animations in their own movie clips.

-Thanks

Play Animation From Specific Frame
In one animation i call two swf files... and the code is....

Frame 1
-------

tank2.loadMovie("tank2.swf");
tank1.loadMovie("tank1.swf");



Frame 3
-------

if(tank2.done == true){
tank1.gotoAndPlay(5);
}
else{
gotoAndPlay(2);
}


Frame 5
-------

if(tank1.done == true){
tank2.gotoAndPlay(2);
}
else{
gotoAndPlay(4);
}




This is loopable animation when one file playing completes then other file plays. But i want this plays normally first time but on first loop the tank2 will start from the Frame 20 not from the frame1. Please tell me this is possible or not. Because preloaders are created in the tank1 and tank2 and on loops those
are also visible for a second.

[F8] How To Go To And Play A Specific Frame In A Loaded Swf
Hola...

I'm trying to figure out how to automatically goto and play a specific frame in a loaded swf file after it has been loaded. I'm just not sure how to define the path. i.e _root.gotoAndPlay();, myMovieClipLoader.gotoAndPlay();, importedSwf.gotoAndPlay();

importedSwf meaning the name of the file i am importing
myMovieClipLoader is the variable
_root...well...root

any help would be awesome

Can't Load Swf And Play Specific Frame...
Hi,

For some reason I can't get this to work. "company.swf" loads, but it doesn't find the frame labeled "news". It just plays frame 1.



Code:
this.unloadMovie(1);
loadMovieNum("company.swf", 1);
_level1.gotoAndPlay("news");
am i doing something wrong?

Unloadmovienum Then Play A Specific Frame?
Main movie loads external swf file. With in that external file I want a button that unloads the external file and gotoandplay's to a specific scene and frame.

This is what I've tried, only unloads movie, does not go to the location.

on (release) {
unloadMovieNum(5);
gotoAndPlay("Gallery", 11);
}

Any help very appreciated.
Thanks.

Directing An Swf To Play In A Specific Frame Of An Exe
I have a Flash movie which I publish as a projector (exe) file—am working in Flash MX. I have five swfs that are linked to buttons on the home page of the exe. The buttons live in the lower two-thirds of the home page. When you click a button, an swf is loaded and plays within an empty movie clip on the home page. The empty mc is also in the lower two-thirds of the home page screen—so that the main navigation at the top is always visible.

The script I am using to call up the swfs from the exe is:

ActionScript Code:
on (press) {
  fscommand ("exec", "undergrad4.swf");
}
on (release) {
   loadMovie("undergrad4.swf","video_mc"); 
}
(video_mc is the empty movie clip in the exe. undergrad4.swf is one of the five swfs)

All this works fine. However there is a major problem. As the swf is playing, the buttons on the underlying home page remain active. Thus, if you run the mouse over a part of the swf that does not have any links, but that sits directly over an underlying button, the cursor becomes active and people will click it. The result is they are taken to another swf. This is not the way it’s supposed to work!

My question is how do I defeat this problem? So far, I have not been able to find a solution. I have been searching the forums for help—but as my scripting it not that advanced, I may be looking at a solution without understanding it!

One thought I had was to create a frame within the exe timeline that had all the elements of the home page including the upper third navigation, but not the buttons. But how do I direct the swf to play within that specific frame of the home page timeline?

I would appreciate any and all help. Thanks.

Possible To Play In Reverse To A Specific Frame?
I'm trying to figure out if it's possible to play a timeline in reverse to specific frames. I would have split it up into seperate movie clips, but because of the way i needed to line things up, it's easier to edit it with everything on one time line. I've got labeled frames for jumping around the timeline, i'm just trying to figure out how to go in reverse to specific frames. prevFrame() works except it plays backwards all the way to the beginning, it has no parameters to control it. So does anyone know another method? Thanks for any input.

Possible To Play In Reverse To A Specific Frame?
I'm trying to figure out if it's possible to play a timeline in reverse to specific frames. I would have split it up into seperate movie clips, but because of the way i needed to line things up, it's easier to edit it with everything on one time line. I've got labeled frames for jumping around the timeline, i'm just trying to figure out how to go in reverse to specific frames. prevFrame() works except it plays backwards all the way to the beginning, it has no parameters to control it. So does anyone know another method? Thanks for any input.

Play External Swf At Specific Frame
using flash mx2004, i am building a website for a photographer, so it's image heavy. i have split each link into a seperate swf file to speed up loading time, which is fine, however on the 'home' swf file, i begin with an animated preloader. i am looking for help on the home button on each separate swf file. what can i do to load the swf file at a specific frame label (rather than frame 1-which is the preloader)?

LoadMovieNum To Specific Frame, And RollOver-rollOut Click Release Outside Bug.
Hi,

I am puting a photography website together, and am having a little trouble linking thumbnails, which are contained in a SWF file with its own menu, to the larger versions of the pictures contained in another SWF. The way I have it set up is-
the code for the picture button is-

on (release) {
loadMovieNum("e.swf", 50);
}

This loads the slideshow external SWF file, into level 50, which replaces the current movie which was also in level 50. However- the problem is- it loads the movie from frame one- and I want it to load the movie and stop at frame 44, where the larger version of the picture is.

I want it to be something simple like- loadMovieNum("e.swf",50,44) something simple that wont mess up the way i've set things up- I need the movie to load into level 50, and start at the 44th frame.
How can I do this without a completely different strategy?


Second, I have a slight bug that I cant seem to get rid of-

I have an info bttn on my slide show SWF, and i set it so on rollOver, it jumps forward two frames, which is a frame with captions on it- and on rollOut, it jumps back two frames, to the original picture- The bug is- if the user clicks on the info bttn, and releases somewhere outside of it, it completely messes up which frame it returns to- like it forgets to rollOff and return to its original position or something. Any suggestions?

The code I have for this is simple- and because I dont know how to tell it to go forward two frames, i just repeated next frame- as you can see-

on (rollOver) {nextFrame();nextFrame();
}
on (rollOut) {prevFrame();prevFrame();
}

Thank you.

Brian Wytcherley.

A rough version of the site is online at www.iwontgiveup.com

Go To A Specific Frame For Code?
hello fellow flashkit members, i am making a gallery for my online portfolio and seem to be stuck. i would like some code that is held in a button to tranfer some values to code "on a specific frame".

if you have any tips it will be appreciated thanks.

Stopping A Playing MC At A Specific Frame Without Stop(); On Keyframe
What I want to have happen is when you mouse down on the button/MC the block_mc will first jump to frame 40 and then it needs to check and stop when the block_mc reaches frame 12. I have attached a simplified version of what I was trying to do

Stopping A Playing MC At A Specific Frame Without Stop(); On Keyframe
What I want to have happen is when you mouse down on the button/MC the block_mc will first jump to frame 40 and then it needs to check and stop when the block_mc reaches frame 12. I have attached a simplified version of what I was trying to do

Stop-play On Rollover-Rollout
I have the following script, that's how it looks:
>>CLICK<<
Everything is working fine except for the invisible button, which should stop the animation on Rollover and go on with on Rollout, but it does not work properly.
What I'm doing wrong?


PHP Code:



var tl = _root;
var i = 0;
var anz = 8;
// Number of MCs  
var MCpauses = new Array(6, 4, 7, 7, 9, 12, 12, 4);
//Pauses - indidual for every MC
tl.createEmptyMovieClip("loader", 1);
tl.loader._x = 360;
tl.loader._y = 200;
nextPic();
function nextPic() {
    i = i<anz ? ++i : 1;
    var mc = tl.loader;
    mc._alpha = mc._xscale=mc._yscale=mc.phase=0;
    mc.attachMovie("MC"+i, "MC"+i, 1);
    mc.i = i;
    mc.onEnterFrame = function() {
        if ((this.phase += 3)>100) {
            this.phase = 100;
        }
        this._alpha = this._xscale=this._yscale=this.phase;
        if (this.phase == 100) {
            tl.iv = setInterval(fadeout, MCpauses[(this.i)-1]*1000);
            delete this.onEnterFrame;
        }
    };
}
function fadeout() {
    clearInterval(tl.iv);
    tl.loader.onEnterFrame = function() {
        if ((this.phase -= 5)<0) {
            this.phase = 0;
        }
        this._alpha = this._xscale=this._yscale=this.phase;
        if (this.phase == 0) {
            nextPic();
        }
    };
}

//Button action
pause_btn.onRollOver = function() {
    stop();
    clearInterval(tl.iv);
};
pause_btn.onRollOut = function() {
    stop();
    clearInterval(tl.iv);
    tl.loader.onEnterFrame = function() {
        if ((this.phase -= 5)<0) {
            this.phase = 0;
        }
        this._alpha = this._xscale=this._yscale=this.phase;
        if (this.phase == 0) {
            nextPic();
        }
    };


Preload External .swf And Play At Specific Frame
here is my problem for all you flash guru out there.

i have this main movie that has a background music loop, which i saved as a separated .swf file, that plays through all scenes in the main movie with out interruption. (user has the option to turn it on/off)

i have a preloader scene that only check, i guess the root level but not level 1 where i set the external .swf file. i am sure there's a way to check the completion of both level 0 and 1 of the movie before the it jumps to the very next scene, can someone tell me? also, i don't want the movie to load or music to play right after the .swf file is loaded. instead, i want it to play at a specific frame of the next scene. so is there a way i can "store" the loaded .swf file and play it when the movie process to the desired frame?

thanks in advance for your time!

Please Review : How To Stop A Count When The Movie Reached A Specific Frame?
Basically, i want to stop the Distvar from ticking after i reached the last frame ( which is 151 ) or the first frame of the mc, myMC1. I tried using
if (cfrm==1 || cfrm==151) {
//stop
}
but it didn't work coz if the ymouse is still within 0-175 or 225-400, the Distvar will still continue ticking...

so any ideas? below is my script.


// Fort Canning Park Walthrough : final semster project
// user speed input
if (_root.input.text == "") {
speed = 1;
} else {
speed = _root.input.text;
//trace(speed);
}
// forward and rewind of mc
myMC1.onEnterFrame = function() {
mousePos = _root._ymouse;
cfrm = _root.myMC1._currentframe;
if (mousePos>0 && mousePos<175) {
_root.myMC1.gotoAndStop(cfrm+speed/1);
} else if (mousePos>225 && mousePos<400) {
_root.myMC1.gotoAndStop(cfrm-speed);
}
};
updateAfterEvent;
// Time
timevar = Math.round((getTimer()/1000));
// Distance
function distcount() {
distvar = Math.round(getTimer()/1000*speed/3);
}
if (mousePos>0 && mousePos<175) {
distcount();
} else if (mousePos>225 && mousePos<400) {
distcount();
} else {
//stop
}
if (cfrm==1 || cfrm==151) {
//stop
}

updateAfterEvent;

the bold part in the script denotes bug which i'm not sure how to fix. Please help, thanx in advance i own you.

Loading An External .swf File, And Telling It To Stop At A Specific Frame
Hello!

I am attempting to load the same .swf file into three different scenes of my movie. The external .swf has three frames, and in each of the three scenes, it will need to stop on a different frame. I am loading the .swf into an empty movie clip by referencing the movie clip's instance name.

Thanks in advance for your help!

Letting Sounds Play On A Specific Frame Before Continuing
i have a frame of animation that when the playhead reaches it, i want to play the complete sound before continuing. what is the proper actionscript for that. If it is important, the frame right after the frame with the sound has a "stopallsounds" script so that the sound doesn't loop over on top of itself.

How Can I Go To A Specific Frame And Play A Label In A Targeted Movieclip.
Heres the situation :

I am in a MC _root.mv1 that is in frame 2 of _root .
From that MC I wanna make a button that goes to the Label "b1" that is in a MC in frame 3 of _root .

How do I do that ?

Telling A Movie Clip To Play Until A Specific Frame
For instance, i have 5 buttons, so when you press the first button the movie clip should play from its first position to a second position and stop, then if you press the 2nd button, the mc should play from the second position til its third position and stop so on...

BASICALLY: im looking for continuous playing until the desired frame and then make it stop.

Exact Code To Create HTML Links To Open/play Specific FLV Video From XML
I have an FLV videogallery set up to load files from an XML document. I need to somehow link to a specific point in the XML file (i.e. video#2) from another HTML page. Ideally this link would be placed in the href. What is the simplest way to go about setting this up?

any help is greatly appreciated

[F8] Passing Variables From HTML Page To Actionacript To Play Specific Frame
Hi there,

I am a newbie to Flash actionscript and there is a particular thing which i am wanting to achieve.

I'm building a menu in flash which is to be placed on a HTML page. I'm wanting to pass variables from the HTML page to the movie and tell the movie to play a specific frame.

Now, i have managed to add a variable of page to a dynamic text box, which displays the page variable from the HTML. For example - when my page is default.asp?pagenum=1 my flash movie reads the variable and displays a number "1" in my movie. So, in essence, i have already passed the variable.

However, what i'm actually wanting to achieve is for the movie to go and play a particular frame according to the page number, not display it within the text.

Does anyone know how i can go about doing this?

Like i say, i am very much a newbie to actionscript, so i need things explaining very basic terms!

Many Thanks

[MX] On Release, Play Specific Amount Of Frames Then Return To Stopped Frame
So what I'm trying to do is create a button when clicked it will gotoAndPlay at a specific frame number, play for a # of frames, then return to the button once those frames have been played.

I've labeled the frames, so I'm sure I should use the label somehow, I understand how to get to the frame I want to start playing, just not sure if there's an actionscript to get back to the button once the labeled frames have played.

Play Until Frame# Then Stop?
I'm working on a sort of flash "magazine" and I'm using two types of navigation. First is just a next button the flip the page which is simple. The second is a little more complicated.

I want to be able to flip forward to any page from the "table of contents", but I don't want to skip directly to it. I want each page to turn until I get to that point. (ie: from page 1 each corresponding page should flip through to get to page 11)I can't use the usual stop action because that would break at every page. So I was wondering if there is some actionscript to accomplish this.

Thanks,
Fearless

Play,Stop,&Got To Different Frame.
Okay, I was woundering if anyone could tell me the code for...when I make a movie and it plays for 5 frames or so then stops. Then when I click on a button/link in the movie is will go to a different frame and play.

Play And Stop From Last Frame
How do you play a movie clip from the last frame...and how do you stop a movie at it's current frame and then press play again so it doesn't start from the first frame..just from the one you juyst stopped it at?

Thanks,

Play From Frame Containing Stop();
Hi
What do I need to do to play a movie clip that contains a stop(); script in its first frame? I'm using ....
code:
_root.picback.gotoAndPlay(1);

.... at the minute - ie avoiding the first frame, otherwise the movie clip just stops on it.

Apologies for the simple question.
thanks
mark

Play Until Certain Frame And Stop
Hello,

i have a dynamic graph to build using bars.

i start with a MC, it has 100 frames, the first frame shows the graph at 0%, the 50th frame shows it at 50% and the last frame shows it at 100%,


i will have a series of buttons, each button will make the graph bar stop at a certain percent(frame). But each time a user clicks a button, i want the graph bar MC to start at frame 1 and play until it hits the percentage frame.

so kind of like this...

on (release) {
_root.MovieClip.StartAtFrame1andPlayUntilFrame(40) thenStop;
}

One more thing, i have 100 frames which is slow, how can i speed up the time line FPS of this particular MC, or do i have to speed up the entire movie?

[CS3] PLEASE HELP Play And Stop At Frame
Hi Guys

I need to code a button so when it is clicked the timeline plays and stops at a certain frame. There will be several buttons and each one needs to stop at a certain frame but play through the timeline from wherever it is until it gets there.

Please help.

Play And Stop At Frame?
Hi Guys

I need to code a button so when it is clicked the timeline plays and stops at a certain frame. There will be several buttons and each one needs to stop at a certain frame but play through the timeline from wherever it is until it gets there.

Please help.

Play And Stop In X Frame
how it is that I can make play to one movie clip but that it stops in a specified frame?
I want this function all in the button! I do not want to put one stop in movie clip!

Sorry for my bad english

Thanks people!

Play And Then Stop At A Frame
I am making a movie symbol within my main movie. This is supposed to be my navigation to the different pages of my movie.
The navigation is in a circle with 5 buttons. When you click on a button, I want the buttons to go around in a circle and whatever one you clicked on will end up on the top end of the circle. So if you click on "about us", all of the buttons will move around in a circle until about us is the one on the top.

I have them moving around in a circle...that works great.

However, I can't get the circle to move and then stop at the frame it is supposed to within the movie symbol.

I've tried the do...when statement and other loops, but my computer just freaks out. here's the basic code as I've tried it.

aboutUs_btn.onRelease(){
if (this._currentframe == 45){
this.stop();
} else {
this.play();
}
}

I have also tried:

aboutUs_btn.onRelease = function(){
if (this._currentframe <= 44){
this.play();
}
if (this._currentframe >= 46){
this.play();
}
if (this._currentframe == 45){
this.stop();
} break;
}



Thanks everybody for your help!!!

Play And Stop At Frame?
Hi Guys

I need to code a button so when it is clicked the timeline plays and stops at a certain frame. There will be several buttons and each one needs to stop at a certain frame but play through the timeline from wherever it is until it gets there.

Please help.

Code For A Simple Stop/play Button
Hello All,
I've created a product demo in flash and now the client would like to add a "pause" button so the viewer can pause the demo at any point. I am new to ActionScript 3 and really need some help figuring out how to add this functionality. I tried searching the forums but I could not figure it out.

The demo has a voiceover audio track that would need to be paused as well, in case that matters for the AS code.

Many thanks.

On (rollOver) { Tell Movie Clip To Go To Frame And Play. How To?
I have a button and I want that when you roll your mouse over it, a movieclip will go to a certain frame and play and then when you move your mouse away the movieclip will go to a different frame and play

Thanks for your help.

-Line

Play Frame In A Movie Clip On Rollover?
How can I play frame in a movie clip when I rollover a button? I have a mask that I want to come down when I roll over a button. I have included the .fla. Any help would be much apreciated.


~Doo Doo

Play Frame In A Movie Clip On Rollover?
How can I play frame in a movie clip when I rollover a button? I have a mask that I want to come down when I roll over a button. I have included the .fla. Any help would be much apreciated.


~Doo Doo

Play And Stop At Frame(label)
Hi there!

I want to assign a script to a button that makes it play the movie and stop at a specific frame (or frame label). How do i do that?

I'm sure it's really simple, but i'm kind of new to Flash and i can't figure it out.

I would be very grateful for some advice, thank you!

/Henrik

Stop MC, Return To Frame 1, Play Other
Hi everybody! Does anyone have a good idea to solve the following?

I'm using Flash 5.
Main timeline has 6 animated MCs. In each animated MC are 2 buttons. Each animated MC controls a static MC (6 total). When one of two buttons in myMC is pressed, myMC1 plays. Pressing the buttons also triggers the mouseDown for myMC which makes the static MC (name1) visible. myMC stops on its last frame and the static MC remains visible.

//Animated MCs Actionscript
onClipEvent (mouseDown) {
if (_root.myMC1.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.name1._visible = true;
}
}
//Button Actionscript
on (press) {
play ();
}
What I want: When the mouse presses one of the buttons, I want myMC to play, the static MC to become visible. myMC should stay on its last frame and the static MC should be visible until another button is pressed.

I've included some graphics.
Thank you for your attention : )

Zuk

If At Frame {} Stop; >>> If Not Goto {} & Play ?
on (rollOver) {
\what I mean is if it is at frame 12
ifFrameLoaded (12) {
}
stop();
} else {
gotoAndPlay(2);

}

Any one know what I'm doing wrong? Code is not my strong point... But I figure if I want to do more complex things I need to learn.

- this however should be cake.

Copyright © 2005-08 www.BigResource.com, All rights reserved