Want Movie Clip To Play On Roll Over
I have a few buttons in my site and when i roll over a button i would like it to play a movie clip i have created. my movie clip is in my library, not on my stage. what is the script i need to add to the button to get it to play on roll over. and when u roll off it unloads the movie clip??
hope someone can help me.
thanks.
A
Adobe > ActionScript 1 and 2
Posted on: 11/27/2006 12:01:23 AM
View Complete Forum Thread with Replies
Sponsored Links:
Making A Movie Play On Roll-over
I have created a simple rectangle and made it a movie clip. I am trying to get the rectangle to be animated on roll-over of that same rectangle. Attached is my example file.
Could someone let me know what I'm doing wrong? I know it's an actionscript issue.
THANKS!
View Replies !
View Related
Movie Clip Help Regarding Roll-over/out
I have 4 buttons on the left side of my site. I want to be able to roll-over them and have text fly in from the right. I have it working so the text flies in.
The problem is, is when you roll-over the button (which makes the text fly in) and roll-out before the text is completely arrived at it's destination it screws stuff up.
The other problem I have is if you roll-over two buttons fast both of their text fly out.
How do I set it up so that if one button is rolled-over but rolled onto another button before the first one is done it just stops the first movie clip and plays the second.
Hope this is understandable.
Thanks,
Tom
View Replies !
View Related
Movie Clip Roll Over
Hi,
I want to play a mc when I roll over it. Inside the mc there are buttons that load after the roll over. Here is my AS:
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
tellTarget (guest) {
nextFrame();
} else {
prevFrame();
}
}
}
I am trying to unload the mc when I roll Out by using the else, but I can't get it to work. Can someone help on the AS. Thanks!!!!
View Replies !
View Related
Roll Over A Movie Clip
hi there,
I'm building a navigation with a mouse over a button and play the movie clip and inside this movie clip has othere buttons that bring them to different section. attahced is my code so far, does anyone know how do i make this movie clip stop after it finish play and back to default after the mouse out the area. please advice!!
Thank!
on (rollOver) {
delete nav.onEnterFrame;
nav.play();
}
on (rollOut) {
nav.onEnterFrame = function() {
var frame = this._currentframe;
this.gotoAndStop(frame-1);
};
}
View Replies !
View Related
Actionscripting Roll Over For Movie Clip
Hi,
I want to play a mc when I roll over it. Inside the mc there are buttons that load after the roll over. Here is my AS:
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
tellTarget (guest) {
nextFrame();
} else {
prevFrame();
}
}
}
I am trying to unload the mc when I roll Out by using the else, but I can't get it to work. Can someone help on the AS. Thanks!!!!
View Replies !
View Related
Call Inner Movie Clip, On Roll Over
Hi,
I'm trying to access a movie clip inside a movie clip: gallery_mc.inner_mc
And I want to do this, when I roll over the external one.
I thought I could do this using event.target inside the function.
Surprisingly (at least for me),
gallery_mc and event.target are not the same.
Why is that?
code:
gallery_mc.addEventListener(MouseEvent.MOUSE_OVER, gallery_mc_over);
function gallery_mc_over(event:MouseEvent):void
{
trace ('gallery_mc ' + gallery_mc);
trace ('gallery_mc ' + event.target);
}
How do I get a reference to gallery_mc, using the event parameter, inside the function?
View Replies !
View Related
AS3 Reversing Movie Clip On Roll Out
Hi! I am still relatively new to Actionscripting and am having some real problems!
I am using AS3. I have a button that when you rollOVER it a separate movie clip on the stage plays through once and stops. When you then rollOUT of the button I want the movie clip to reverse back to the beginning and stop.
I can't seem to work out how to do this and I have been through numerous posts and examples and none of them worked. I found an example on here of what I want to do only in AS2. (this example is attached.)
Please can someone help, I am going insane with something that seems so simple yet is proving so difficult!!!
Thanks!
View Replies !
View Related
Roll Over Problem Movie Clip
I have a problem in Roll Over Action of Movie Clip. I have a movie clip in the main timeline and inside this movie clip there are two movie clips. The problem is that when I hover on my Main Movie clip the third movie clip alongwith second movie clip is also start animating. Please see my attached fla .Find it in the underneath question. Plese solve my problem.
View Replies !
View Related
Movie Clip Roll Over Not Working
Hi, I've tried a couple of different ways to make this happen, but I can't seem to make the state of my movie clip change when I add a roll over to it. I'd like to change the alpha to 70% on the rollover... but I get nothing. When I've added a trace, the rollover works, so I must just be writing the script for the alpha part wrong. If somebody could help me out w/this it would be greatly appreciated! Thanks in advance!!
PS- this is just an example I'm actually trying to do this to multiple movie clips at the same time. Thanks again!
View Replies !
View Related
Roll Over Playing Movie Clip From Begining
I have created a button. I want to play a movie clip when we move the mouse over the button. The button is inserted from frame 1 to 60.
I have inserted the movie clip just over the button and made the movie clip invisible (alpha - 0) so that it is not visible when the movie is playing. Movie clips name is "wanaka"
And I have inserted the following script in the button.
on (release) {
_root.gotoAndStop("mainprize");
}
on (rollOver) {
gotoAndPlay (_root.wanaka);
setProperty ("_root.wanaka", _alpha, "100");
}
Now the problem is that when put the mouse over the button the movie clip becomes visible but does not play from the begining.
Is there any solution, so that when we put the mouse over the button, the movie clip plays from begining
Please help me
View Replies !
View Related
Looping Movie Clip Buttons On Roll Over
I'm trying to loop a certain action in a button when the mouse pointer hovers over it and I want it to keep on looping until the pointer clicks it or moves off of it. I'm trying to make this all happen with a movie clip button. I tried the gotoandPlay ("frame #") action when I want it to loop, but it isn't working. I'm not sure what I should do to achieve this. Thank you.
View Replies !
View Related
Movie Clip ActionScript For Roll Over Sound?
I have Done this tutorial
http://www.kirupa.com/developer/mx20...ton_effect.htm
And i was wondering if anyone could tell me the ActionScript for sounds effects when you roll over it?
I was thinking along the lines of
on (rollOver) {
.........something....
}
Could Some please Help me??
View Replies !
View Related
Movie Clip Roll Over Sound Effects?
I have Done this tutorial
http://www.kirupa.com/developer/mx20...ton_effect.htm
And i was wondering if anyone could tell me the ActionScript for sounds effects when you roll over it?
I was thinking along the lines of
on (rollOver) {
.........something....
}
Could Some please Help me??
View Replies !
View Related
Movie Clip ActionScript For Roll Over Sound?
Movie Clip ActionScript For Roll Over Sound??
I have Done this tutorial
http://www.kirupa.com/developer/mx20...ton_effect.htm
And i was wondering if anyone could tell me the ActionScript for sounds effects when you roll over it?
I was thinking along the lines of
on (rollOver) {
.........something....
}
Could Some please Help me??
View Replies !
View Related
Follow The Mouse+movie Clip Roll Over
Hello, I'm trying to make a movie clip following the mouse when I roll over to another movie clip. I'm trying this code but it does not seems to be working:
Code:
_root.moshe.onLoad = function() {
this._x = 0;
this._y = 0;
speed = 5;
}
boxer.onRollOver = function() {
_root.orn1.gotoAndPlay(2);
_root.moshe.onEnterFrame = function() {
endX = _root._xmouse;
endY = _root._ymouse;
this._x += (endX-this._x) / speed;
this._y += (endY-this._y) / speed;
}
};
Any suggestions would be greatly appreciated, thanks.
View Replies !
View Related
Basically I Need To Load In A External .swf When I Roll Over My Movie Clip Btn But It
Hi there,
I am quite new to flash, so go easy on me, but have been working on a project that involves using movie clips as buttons so i can controll onRollOut.
Basically i need to load in a external .swf when i roll over my movie clip btn but it needs to start at a certain frame label 'overinside'.
I am loading the external .swf into a blank movie clip.
this.testbtn_mc.onRollOver = function() {
testbtn_mc.gotoAndPlay("over");
theLoader_mcl.loadClip("fermac_inside.swf","theIns ide_mc");
}
That is my AS that loads the .swf in but i cant go further than this.
Any help would be great.
Ben
View Replies !
View Related
Can The OnRollOver Function Register As Soon As I Roll Over The Movie Clip?
I have some simple ActionScript going where it creates an empty movie clip and adds some dynamic text as well as attaching a movie called thistle to via the library.
The problem I am having is since the thistle movie clip in the library is not fully square the mouse can only click on it when it hovers over the graphics exactly. I would prefer that it just used the boundary of the movie clip rather than the outer edges of the graphic.
Is there anyway in ActionScript that would allow me to have the onRollOver function register as soon as I roll over the attached movie clip rather than when it actually meats some from of drawn line inside the movie clip.
Here is my code that creates the empty movie clip and adds in a text field and a movie clip called thistle:
ActionScript Code:
for (var i:String in menuArray) {
txt = "txt_"+i; mc_txt= "mc_txt_"+i; thistle_mc = "thistle_mc"+i;
this.createEmptyMovieClip(mc_txt, this.getNextHighestDepth());
this[mc_txt].attachMovie("thistle", thistle_mc, 2, {_x:startMenuX, _y:startMenuY+10});
var trans:Transform = new Transform(eval(mc_txt+"."+thistle_mc));
trans.colorTransform = new ColorTransform(0, 0, 0, 0, 0, 0, 0, 100);
this[mc_txt].createTextField(txt, 1, startMenuX+20, startMenuY, 150, textHeight);
eval(mc_txt+"."+txt).text = menuArray[i];
var my_fnt:TextFormat = new TextFormat();
my_fnt.font = "Rage Italic";
my_fnt.bold = true;
my_fnt.size = 22;
eval(mc_txt+"."+txt).setTextFormat(my_fnt);
startMenuY+=textHeight;
this[mc_txt].onRollOver = clickHandler;
}
Thanks
View Replies !
View Related
I'm Lost: Two Buttons Inside An Animated Movie Clip On Roll Over?
So I'm a bit of a noob... be gentle.
I've designed this little navigation widget for my site.
It starts as a simple icon. When the user rolls over the area with the icon, I want two buttons to slide out, revealing the navigation to other areas of the site.
I made the animation a movie clip. And tried to set the clip to play on mouse over, and to reverse back to its off state when you roll off.
The animation seems to work... but my buttons don't work.
I'd really appreciate any help anyone could offer me here... I'm attaching the Flash project file.
FYI: I'm just planning on putting this little flash object inside a simple html page under an embedded quicktime movie.
Thanks.
View Replies !
View Related
Play Movie Clips To Fade Off THEN Play New Movie Clip
Hey guys, I've been doing a little searching and I can't find the answer to my dilemma.
I've made up some buttons that play a little movie clip animation when pressed. The scenario is like this: Push the "Illustration" button and little files pop onto the screen. Each file will be a button that opens up an image. Push the "Pictures" button and the "Illustration files" should fade off the screen so the "Pictures files" could pop in in it's place.
I can't find a way to make the "Pictures" movie WAIT for the "Illustration" movie to be done before it pop in. One goes in, and the other simultaneously goes out and I don't want that.
Is there any way?
View Replies !
View Related
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
View Replies !
View Related
[CS3.AS2] Button In A Movie Clip Link To Another Movie Clip And Play
what im doing is that making a button in a movie clip link to another movie and play/stop certain parts of that clip
lets say that there are 4 buttons are in movieA, and the other clip is called movieB
when the user clicks button1 in movieA, movieB will play from frame 1 to 5 and stop.
when user clicks button2 in movieA, movieB will play from frame 5 to 10.
and so on
so far my code for button1 is:
on (release){
this._parent.movieB.gotoAndStop(5);
}
on (release){
_root.movieB.gotoAndStop(5);
}
button2:
on (release){
this._parent.movieB.gotoAndStop(10);
}
on (release){
_root.movieB.gotoAndStop(10);
}
with this code, it just jumps to the designated frame.
what i want is to have it play from current frame to a designated frame
can anyone shed some light on this?
View Replies !
View Related
Stop And Play Button For Movie Clip Within Moive Clip
hi i have problems with my buttons. i have got 2 fla files. 1) shell.fla 2) content.fla.
The shell.fla has a movie clip(name:holder) to load the content.swf. And within the content.swf i have got movie clip within movie clip.
Thru a search from the forum i came across this script
first frame:
Quote:
function stopAllClips(clip) {
clip.stop();
for (var i in clip) {
if(typeof clip[i]=="movieclip") {
if(clip[i]!=clip) {
stopAllClips(clip[i]);
}
}
}
};
function startAllClips(clip) {
clip.play();
for (var i in clip) {
if(typeof clip[i]=="movieclip") {
if(clip[i]!=clip) {
startAllClips(clip[i]);
}
}
}
};
for the button:
Quote:
on (release) {
if(!_root.stopped){
_root.stopAllClips(_root.holder_mc);
_root.stopped = true;
} else {
_root.startAllClips(_root.holder_mc);
_root.stopped = false;
}
}
everything works fine except after i pause and play, i doesn't play from where it has stopped. Anyone has got any ideas as to how i can solve this problem. Thanks very much.
View Replies !
View Related
Making More Than One Movie Clip Play From Another Clip
Hello,
It's been a while since my last post and I am afraid I am just as oblivious as I was before. Here is my dilema: on the main stage I have movieclip a,b,c,d I click on "a" to make the movie play. Now I want to click "b" to make that movie play but I would like a to go back to it's original position by finishing it's timeline which sends it back to the original position. Then I would like to be able to click on "c" and it would send "b" back to it's original position not in this order but randomly depending on which movieclip you select. How can I make this happen? Thanks for any help.
Anthony
View Replies !
View Related
[F8] Play Movie Clip Inside Another Movie Clip
Hi,
I have a movie clip inside another mc and I want to make the mc inside to play once the user rolls the mouse over it. The problem is that when user rolls mouse over, they can't reach the inside mc because they just roll over outer mc.
Is there any way to do this?
(tried:
Code:
outer_mc.inner_mc.onRollOver = function(){
outer_mc.inner_mc.play();
}
but did not work)
Any help will be very much appreciated.
E
View Replies !
View Related
TellTarget To Play A Movie Clip Within A Movie Clip
I currently have two movie clips in my scene with a button that lies inside one of the movie clips. We will call this movie clip for the sake of this post "ph." The button inside of ph has a rollOver/rollOut movie clip called "Buick_rollOut" attached to it as a parked movie clip through tellTarget. Currently Buick_rollOut only works if I put the parked movie clip on the same level as ph. I want Buick_rollOut to be within the movie clip, ph, that contains the button. I want that button be able to tellTarget the location of Buick_rollOut within ph. I hope this makes sense. Here is my code for the button that lies within ph. (this code only works when Buick_rollOut is located outside of ph on the same level).
Attach Code
on (rollOver) {
tellTarget ("/Buick_rollOut") {
gotoAndPlay ("rollOver");
}
}
on (rollOut) {
tellTarget ("/Buick_rollOut") {
gotoAndPlay ("rollOut");
}
}
View Replies !
View Related
TellTarget To Play A Movie Clip Within A Movie Clip
I currently have two movie clips in my scene with a button that lies inside one of the movie clips. We will call this movie clip for the sake of this post "ph." The button inside of ph has a rollOver/rollOut movie clip called "Buick_rollOut" attached to it as a parked movie clip through tellTarget. Currently Buick_rollOut only works if I put the parked movie clip on the same level as ph. I want Buick_rollOut to be within the movie clip, ph, that contains the button. I want that button be able to tellTarget the location of Buick_rollOut within ph. I hope this makes sense. Here is my code for the button that lies within ph. (this code only works when Buick_rollOut is located outside of ph on the same level).
on (rollOver) {
tellTarget ("/Buick_rollOut") {
gotoAndPlay ("rollOver");
}
}
on (rollOut) {
tellTarget ("/Buick_rollOut") {
gotoAndPlay ("rollOut");
}
}
View Replies !
View Related
On Roll Over Unload Movie X, On Roll Out Load Movie X.
On roll over unload movie X, on roll out load movie X.
I’ve got a button that when you “roll over” it he unloads a movie in a certain level; I’ve also got 4 movies that are loaded in the main movie. My question is: how can I have that same button with another action like “on roll out” load the previous movie that was unloaded.
thanks!!
View Replies !
View Related
*** Movie Clip In Button - Roll "OFF" Issue With Image And Tween ***
Hello good people - my question concerns the rolling (off) of a button. I have a movie clip in a button that makes an image grow larger when you roll over it. When you roll to the OVER position of the Button - The Movie Clip in the button plays the movie of the image growing larger. My problem is that I do not know how to set it up so the image SHRINKS back to its normal state when you roll OFF of it. roll over... the image gets bigger - roll off... the image returns to its normal size. Right now it just snaps back to its normal size without smoothly reducing itself to its up state within the button. Can someone please show how to achieve this please? I have had this posted now for about a week in one of the other forums and have no answer yet. My life will be so much better when I know how to do this. Also - if you all know of any really good online tutorials for effects like this - please let me know. Many thanks in advance. RH
View Replies !
View Related
Control The Play On The Main Timeline From Within A Loaded Movie (not A Movie Clip)?
Question... I have a movie (main movie) that loads another movie (movie 2) automatically. Movie 2 contains a button that loads yet another movie (movie3). Now I’m having trouble with this next part... When movie3 loads I want "main movie" to stop where it’s at in the timeline and stop all other loaded movies until the user clicks another button where upon movie 3 will go away and "main movie" will resume. Movie 2 is like the paper clip guy in Word and movie 3 is my help movie. Therefore, it can be accessed at any point during the main movie and I don’t want to use a goTo command to jump to a frame label or scene. Does anyone have any idea how to control the play on the main timeline from within a loaded movie (not a movie clip)?
View Replies !
View Related
Instructing An External Movie Clip To Play From The Main Movie
Anyone tell me the easiest way to sort this one?
I have a movie clip that consists of 2 keyframes.
It is loaded onto level1 above my main movie and the first frame is blank (so that it does not come into play until instructed).
The second keyframe is the main part of the loaded movie and this needs to play after receiving instruction from the main movie.
My problem is 'How do I instruct this to happen??'
I have no knowledge of action script so if anyone could advise or tell me if there is an easier way to do this I would be eternally greatful........................................
View Replies !
View Related
Continuous Play Of Several Movie Clips From One Main Movie Clip
hi,
i'm trying to play several movie clips, one after the other from one main movie clip.
i've got 8 movie clips, "m1.swf", "m2.swf", etc. "m8.swf", and one main movie clip, "play.swf".
i've tried using loadMovie, but it only plays the last movie clip. this is what i've got.
in the main movie clip, i've put a play button, and the actionscript i have in the button is:
on(release)
{
this.loadMovie("m1.swf",play);
//this.unloadMovie("m1.swf");
this.loadMovie("m2.swf",play);
//this.unloadMovie("m2.swf");
this.loadMovie("m3.swf",play);
//this.unloadMovie("m3.swf");
this.loadMovie("m4.swf",play);
//this.unloadMovie("m4.swf");
this.loadMovie("m5.swf",play);
//this.unloadMovie("m5.swf");
this.loadMovie("m6.swf",play);
//this.unloadMovie("m6.swf");
this.loadMovie("m7.swf",play);
//this.unloadMovie("m7.swf");
this.loadMovie("m8.swf",play);
//this.unloadMovie("m8.swf");
}
is this wrong? how can i get this to work correctly. really important that i get this working for my job.
any help will be greatly appreciated.
cheers
View Replies !
View Related
How Do You Attach And Play A Movie Clip To A Movie Object?
I have a movie clip in my library, and i want to use action script to play the clip on my scene1 stage. I know i can simply drag the clip on the stage, but solving this will make most of my other problems dissappear.
I tried in the first frame of my scene:
---------------------------------------
mymovie = new MovieClip();
mymovie.attchMovie(clip,clip,20);
mymovie.play();
---------------------------------------
but it did not work...help! :-)
any suggestions?
zavyzavy
View Replies !
View Related
Loading Movie Into Empty Clip, But Movie Won't Play
I have 4 movies that i am trying to load into an empty clip in an existing movie. my problem is that when each of these movies are loaded into the clip, I can physically see it, but it doesn't function as a movie, the rest of the larger movie is moving around it, but the smaller movies won't move. I thought this was because I put a stop action at the end of the smaller movies, but when I take it out, the movie just keeps looping when loaded into the empty clip in the new movie.
does that make sense.
PLEASE HELP ME.
HOW DO I SEE MY MOVIES
View Replies !
View Related
Want To Play A Mc When I Roll Over It
I want to play a mc when I roll over it. Inside the mc there are buttons that load after the roll over. Here is my AS:
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
tellTarget (guest) {
nextFrame();
} else {
prevFrame();
}
}
}
I am trying to unload the mc when I roll Out by using the else, but I can't get it to work. Can someone help on the AS.
View Replies !
View Related
Play A Movie Clip
I am new at flash. I just want to know how to play a movie clip. I made a symbol that is a movie clip called city. I insterted the symbol on frame 35 in a layer called animation. How to I get the movie clip to play when it reaches frame 35. I tried right adding the action play() to frame 35, in the animation layer, and added play to the first frame of the symbol. Please Help. Thank You
View Replies !
View Related
Movie Clip Won't Play
on (rollOver) {
_root.rollGear1.gotoAndPlay(1);
}
This movie clip has a stop action on the first frame, it loads on rollover but does not play. If I remove the stop action it plays before rollover. How do I make the clip play on rollover?
Flash Ver 5
View Replies !
View Related
My Movie Clip Won't Play
Hi,
I'm quite new to flash, and I'm using flash 5. I've made this clip, turned it into a symbol (behaviour movie-clip). Looks nice and moving in the library window. When I put an instance on the stage it never moves. I used the play action script. I must have missed something, but after going through the help files a couple of times i hope someone here can point the mistake out to me.
H.
View Replies !
View Related
Play A Movie Clip?
How can I play a movie clip from the library, using a button?
I saw a code that uses
_root.mypage = 1
_root.play();
I've tried to replace mypage by the IDname of my MC, but nothing!
Thanks
Chris
View Replies !
View Related
Cant Get Movie Clip To Play
i got a movie clip progress bar to start playing once i click the yes button(which is on another page, but for some reason the progress bar will play.
I can not get it to work.
I have included the fla file.Can someone provide insight to what i am doing wrong?
Any suggestions are always welcomed.
View Replies !
View Related
|