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




MovieClip As A Rollover



Hello again. So I have another question. I have a button calling a MovieClip on Mouse_Over. This works fine. What happens is I can't get it to Roll_Out. Tried remove child, unload child. Curious if anyone has any suggestions.Below is my code for the addEventListener.var playDropMenu:MovieClip = new DropMenu();portButton.addEventListener(MouseEvent.MOUSE_OVER, playDrop);function playDrop(event:MouseEvent):void{ playDropMenu.play();playDropMenu.x = 272;playDropMenu.y = 13.5;stage.addChild(playDropMenu);}



Actionscript 3.0
Posted on: Wed Mar 26, 2008 3:02 am


View Complete Forum Thread with Replies

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

Movieclip Rollover Effect Disables Internal Movieclip Buttons
Is it possible to have a movieclip rollover effect with another movieclip inside of it that is able to be clicked and do what it's scripted to do?

Let me try to get specific...


Movieclip 1 -- Has www.kirupa.com/developer/mx2004/button_effect.htm applied

Inside of Movieclip 1 --> Buttons that appear visible when you rollover the menu (it comes out of eases into view)

These buttons inside are not being allowed to be pushed because from what I can gather, the complex rollover is not allowing anything to be activated except the rollover effect.

So here's a diagram:

Rollover Movieclip 1 --> Eases it's bottom part up revealing 4 buttons --> These buttons when clicked are supposed to do an action --> Buttons cannot be activated for some unknown reason.

Can anyone help me out? I'm out of ideas after working on this for the past hour or so. If you need any extra info or materials, let me know; I'm sitting right here working on this problem haha.

-Indecisive

A Rollover/rollout Movieclip With Rollover/rollout MC's Inside It
Hi there, I am trying to figure out how to make a bottom bar similar to the one seen on www.1000pis.com how he's got clips with animations inside the bar- here's what I've got so far: http://cg.psdsliced.com/test1/ - as you can see I have a date/time MC inside the bar_mc which is working fine but whenever I try to have a new rollover/rollout movieclip (or button) inside the bar_mc it won't work/won't show rollover animation.

so does anyone know how the guy at 1000pis.com does it or can offer me any help at all?

Movieclip Rollover
I need help doing a simple Movieclip rollover

thx

Rollover Movieclip
Hi all I am trying to pause a movie clip with a rollover. I have hit a wall does anyone know what I can do.

Thanks

[CS3] Movieclip Rollover
Hello everyone,

I am making my website in flash, and i have 5 buttons in the menu. I want to have a rollover and release effect. I think I need it to be a movieclip, since I want the effect to be over multiple frames.

OK, here's the first question:
What script do I put to play the frames in the movieclip button?

Second question:
Where do I put the script?


With my old version of flash, I was able to put the script in the actions panel, once I selected the movieclip, but with CS3 (actionscript 3.0) it tells me that the current selections cannot have actions applied to it, in the actions panel.
I think the problem is because that I got CS3, and that it works differently (but I'm not sure that is it).
This is why I asked the second question, listed above.

Thanks,
Shahob

Movieclip Rollover?
Does anyone know how i might use a movieclip as a rollover in Flash to display another movieclip?

Simple as...

If i could be re-directed either, that'd do...

Rollover Movieclip
I am ashamed to say that this should be simple but I've done something wrong somewhere. The idea is that when you hover over the swf the flowers should appear and disappear on roll off. This is the code that I thought should work. I put it on an invisble layer covering the whole swf (and tried it on the background) but only the getURL function works. What have I done wrong?

Code:

on (rollOver){
    gotoAndPlay("over");
}

on (rollOut){
    gotoAndPlay("out");
}

on (release) {
   getURL("http://www.fun4ponies.com/ponytales/category-view.asp", "_self");
}

FLA is here http://www.orionit.ltd.uk/temp/flower01.fla

MovieClip, Buttons, RollOver...MX HELP
i have a small file containing a movie clip that i am using in my full fla. all of it is created w/MX, and i realized i have been getting some advice that isn't meshing w/MX. it is a drop down list with more buttons. i can't get my MC to 'stop' on its first frame w/'MC stop'...if i use 'stop(movie)' i can't get it to run again w/ any action scripts. when i test, it plays straight to the frame with the list down already. i want it to play on RollOver...not on its own. then, i can't get the list to disappear and return to frame 1 and stop, as i would like w/RollOut.

i have a small file with this MC that i would prefer to e-mail somewhere, vs. posting it here. this is an ongoing problem! anyone with MX action script skills? specifically multiple buttons in a list? i would be so grateful!

thank You.

On (rollOver) In Nested Movieclip
Hi,

I want to use button actions on movieclips. The parent movieclip (mc0)has the following actions:


Code:
onClipEvent(load){
// store mc name in var
mc_name = this._name;
}
//
on (rollOver){
// call over function, pass var
_root.over(mc_name);
}
//
on (press){
// call press_mc function, pass var
_root.press_mc(mc_name);
}
This works fine, the functions are called.
Now I want to use on (rollOut) in the nested movieclip (mc0.mc0_img). This clip is visible when one rolls over mc0.
I use this code directly on mc0.mc0_img:

Code:
on (rollOut){
// call out function, pass var
_root.out(_parent.mc_name);
trace("test");
}
This seems pretty straight forward to me but it doesn't work

Is there something wrong with the code or is it possible to put the 'nested' button action directy on mc1?
(I've already tried:

Code:
this.mc0_img.onRollOut = function(){
trace("test");
}
but I get the following error: Statement must appear within on/onClipEvent handler)

Hope someone can help. Thanks very much in advance, Danielle.

[F8] How To Detect A MovieClip On Rollover?
Trying to get used to AS 2 after some abortive attempts with AS 1. I've been puzzling over the best way to return the name (and other properties) of whichever movie clip happens to be under your cursor at a given moment. So if I have a script attached to a frame I can, for instance, take the name of a movie clip on rollover and pass it as a parameter to some function, without knowing ahead of time which movie clips will be on the stage at that frame.

[F8] Movieclip In Rollover.. Fla Download....
Hi gang....
This is probably something REALLY simple but I just cant seem to get it to work and its driving me NUTS!!!
I have 3 simple text buttons which are masks and a movieclip plays in each when when you rollover each button. I got it partly working, but if you hover over the buttons fast, from one to another, it seems to stop in the movieclip and doesnt seem to fully play, other times it seems ok. why is this?

I have the fla file uploaded on my server.

http://www.allisonsbackstage.com/mask.fla

If anyone would like to check it out and fix up what is wrong, I would GREATLY appreciate it!!! THANKS!!!

Hope to hear from someone soon

-Allison

MovieClip RollOver Problem
Hi guys. how is everybody? I am facing a problem. I am picking up images thumbnails and want to put rollover effects but i can't do it. If i dont load images the rollOver effects. Plz help me out thank you everybody.

RollOver Within A Draggable Movieclip
I am creating an interactive map in CS3. The user can drag the map around in order to see it in its entirety and when they roll the cursor over landmarks, a box pops up with a description.

startDrag and stopDrag are used on the map movieclip. In order to keep it dragging the nested landmark movieclips, I had to set mouseChildren to false on the map movieclip. This disables my rollOver events on those same nested landmark movieclips, though.

How can I have my cake and eat it too?

[F8] Rotating MovieClip On RollOver
Hi. I have a couple different MovieClip Symbols that I want to activate on Rollover and stop as the mouse moves away. Any suggestions on how I should go about making this happen? The visual, if this helps, is two concentric gears (one larger and one smaller) that I want to activate their rotating motion tweens on rollover yet be motionless otherwise.

Any help would be much appreciated.

Cheers!

Rollover Inside A Movieclip
Hey guys

I've got an annoying problem, all i've got is a movieclip that plays on a click then stops then plays again when you click again, ie a menu that pops out then pops back in again. Inside this movieclip i've got buttons but they're not responding to rollovers because they're inside the movieclip...


arrghh

Embedded Rollover In A MovieClip
I have a movie clip symbol (bar27), that when rolled over causes bar29 and bar30 to move over....

bar27.onRollOver= function(){
bar29._x +=8
bar30._x +=10
}
bar27.onRollOut= function(){
bar29._x -=8
bar30._x -=10
}


but also bar27 is a movieclip that has a rollover embedded in it....

main1.onRollOver = function() {
gotoAndPlay(2);
}

i also tried...

bar27.main1.onRollOver = function() {
gotoAndPlay(2);
}

still doesnt work.

does the first rollover cause the 2nd rollover in the bar27 movieclip to not function correctly? if so, how do I get it to work correctly?

2 Or More MovieClip - Same Rollover RollOut
Hi people, i have a question in Actionscript 2.0. it is a way to do something like this:


Code:
mc_menu.btn_home.onRollOver, mc_menu.btn_contact.onRollOver = function () {
trace ("hi world");
}
i want to reduce my code lines, i hope you can help me.

Thanks people!

Rollover MovieClip Plays Only Once
Hi,

I have a movie clip instance with a rollover to jump to and play another movie clip instance at a named frame and it plays fine the first time I mouseover but after that thats it it only plays once. I have tried to put at the last frame of the rollover movie to goToandStop and tried goToandPlay to either a first named frame on the rollover movie or one on the original scene named frame placed before the rollover movie instance and neither works. Theres something simple and funda'mental' I'm misssing.

Hope this makes sense.

Appreciate any input.

Thanks

PausE A Movieclip On Rollover
Hi
I've got a MC with 3 text quotes that transition up and after 5 seconds
fade out to next and loop -
client asked if we can pause the text on mouseover -
sounds doable but i'm not very experienced with actionscript

any direction would be appreciated

johnnyu

RollOver And RollOut Movieclip....
Hi guys,

Help me with this problem...
I have a button which on ROLLOVER shows a MOVIECLIP on the stage and on ROLLOUT it should remove it from the stage.
Check out this code which perfectly works as i want

on (rollOver) {
//Movieclip GotoAndPlay Behavior
this.Teal.gotoAndPlay("2");
//End Behavior
}
on (rollOut) {
removeMovieClip(this.Teal);
//End Behavior
}

but my problem is wen i go back to same button after a rollover, the movie clip doesnt show or code does not respond.

Where did i go wrong pls tell.

Thank You

Movieclip Arranging On Rollover
Hi there.

I am creating a navigation system in flash, and i have a series of tabs positioned horizontally on the page. Now, on rollover, i would like that specific movieclip to be positioned infront of all others. This will happen on each of the tabs i roll onto. Does this have something to do with _parent ? Im unsure and require your help if you can. Thank you.

Problem With MovieClip Rollover...
I've got a button on the stage that I can't quite get to work the way I need it to.

Basically, I need it to have a rollover in the initial state (which works fine) and then, in another state (represented by the onOff variable & mc), I need it to have a rollover that has a different size than the actual area being displayed (so that it will do the rollOut when the user leaves the area around the first line of text).

I thought I had it figured out by putting a hitSpot movieClip inside the box movieClip, but the box rollover function doesn't let the hitArea rollover function through...

Here's the code, and the fla is attached with some samples of what I'm trying to do.


Code:
var onOff:Number = 0;
onOff_mc.onPress = function() {
if (onOff == 0) {
onOff = 1;
this.gotoAndStop(2);
} else {
onOff = 0;
this.gotoAndStop(1);
}
};
box_mc1.hitSpot_mc.onRollOut = function() {
if (onOff == 1) {
this._parent.gotoAndStop(3);
}
};
box_mc1.hitSpot_mc.onRollOver = function() {
if (onOff == 1) {
this._parent.gotoAndStop(4);
}
};
box_mc1.onRollOut = function() {
if (onOff == 0) {
this.gotoAndStop(1);
}
};
box_mc1.onRollOver = function() {
if (onOff == 0) {
this.gotoAndStop(2);
}
};
Thanks!!

Rollover Movieclip Button
Hi... I'm a newbie... and I have a question...

Can anyone identify how this effect is being done on the following website:
http://www.stauntonautogroup.com

The effect I am referring to is the effect over the individual cars on the left side of the page (i.e. Maxima, Versa, etc). When you rollover, an animation plays that slides a bar from the left to the right. When you keep your mouse over each car name (i.e. Maxima), the sliding bar goes to 100% and stays until you rollout, then the sliding bar recedes to nothing.

But, what I am interested in, is the effect where if you rollover and rollout of these cars very quickly, you notice that the animation goes through the full animation.

On Rollover Blur Movieclip
i have some buttons and movieclipss. when roll over to the buttons i want to make some mc's alpha 30.

here is my code for buttons

Code:
on (rollOver) {
setProperty("_root.oyun", _alpha, "30");
setProperty("_root.galeri", _alpha, "30");
setProperty("_root.gunluk", _alpha, "30");
setProperty("_root.galeri", _alpha, "30");
setProperty("_root.chat", _alpha, "30");
setProperty("_root.forum", _alpha, "30");
setProperty("_root.etkinlik", _alpha, "30");
setProperty("_root.profil", _alpha, "30");
}
on (rollOut) {
setProperty("_root.oyun", _alpha, "100");
setProperty("_root.galeri", _alpha, "100");
setProperty("_root.gunluk", _alpha, "100");
setProperty("_root.galeri", _alpha, "100");
setProperty("_root.chat", _alpha, "100");
setProperty("_root.forum", _alpha, "100");
setProperty("_root.etkinlik", _alpha, "100");
setProperty("_root.profil", _alpha, "100");
}
ok this is working but this set the alpha property very fast (instant) how can i make them to change their alpha by level, level (like motion tween)

MovieClip + Rollover + CounterTime
Hi,

I want to make an action that allow a user to mark an object after passing x seconds with the mouse on it.

I guess i must use onRollover and addListener but i can't know how begin.

If somebody can help me or show me the way ?

Thx,
Yes_Papa.

Rollover Movieclip Trouble
Hi. I'm a complete newbie so bare with me.

I've just completed the tutorial on the site about rollover/rollout buttons. Everything works great but, and I'm sure you've heard this problem so many times, how do you use the movieclip to go to the next frame

i.e. my movieclip is on scene 1, frame 1. I want to go to scene 1, frame 2 but no matter how many times I keep changing the actionscript I always end up on frame 2 of the actual movieclip.

If there is any very simple solutions then I can do with your help. I've heard about the hit test but I haven't a clue what this means.

Thanks

RollOver On MovieClip Problem
Hello, I've met a problem with RollOver on MovieClips. I've got MovieClips such as mcText1, mcText2, mcText3 etc... and the code is working if it's like below.



Code:
mcText1.onRollOver = function() {
txtDesc.text = pDesc[1];
};
mcText2.onRollOver = function() {
txtDesc.text = pDesc[2];
};
mcText3.onRollOver = function() {
txtDesc.text = pDesc[3];
};
mcText4.....
...
However, there're a lot of MovieClips and I'd like to write the code as something like

Code:
for(i=0;i<25;i++){
_root["mcText"+i].onRollOver=function(){
txtDesc.text=pDesc[i];
};
}
Unfortunately it's not working as the code above. I think the problem is I can't pass the variable "i" into the function. If I use anything like _root.i, or _global.i, it seems only return a fixed value.

Please could anybody kindly help me out? How should I rewrite the code above? Thanks very much in advance!!!

Movieclip On Rollover A Button
I've a button "our services"

Please chk the attachment.

on rollover this btn, a movieclip activate containing other sub-buttons: 1, 2, 3 and so on:--

but when i roll out it again disappears.

I want that it should stop when we roll over once so that user can click on sub buttons also.

Secondly, I want to make a dynamic text where i can put the description of the sub tabs.

2 Or More MovieClip - Same Rollover RollOut
Hi people, i have a question in Actionscript 2.0. it is a way to do something like this:


Code:
mc_menu.btn_home.onRollOver, mc_menu.btn_contact.onRollOver = function () {
trace ("hi world");
}
i want to reduce my code lines, i hope you can help me.

Thanks people!

RollOver And RollOut Movieclip....
Hi guys,

Help me with this problem...
I have a button which on ROLLOVER shows a MOVIECLIP on the stage and on ROLLOUT it should remove it from the stage.
Check out this code which perfectly works as i want

on (rollOver) {
//Movieclip GotoAndPlay Behavior
this.Teal.gotoAndPlay("2");
//End Behavior
}
on (rollOut) {
removeMovieClip(this.Teal);
//End Behavior
}

but my problem is wen i go back to same button after a rollover, the movie clip doesnt show or code does not respond.

Where did i go wrong pls tell.

Thank You

Movieclip Arranging On Rollover
Hi there.

I am creating a navigation system in flash, and i have a series of tabs positioned horizontally on the page. Now, on rollover, i would like that specific movieclip to be positioned infront of all others. This will happen on each of the tabs i roll onto. Does this have something to do with _parent ? Im unsure and require your help if you can. Thank you.

Button With Movieclip On Rollover
I rarely use Flash anymore, and find I'm forgetting everything!

All I need to do is have a button where when you rollover it, a movieclip appears below. The movie clip itself has buttons on it too.

I made a button and dragged my movieclip onto the stage for the over and down states. Problem is that when you rollover the button and the movieclip appears, the movieclip disappears as soon as you go off of the button so you can't press any buttons that are on the movieclip.

I'm thinking the only way is to put an actionscipt on the over state so it goes to and stops on a frame that includes the movieclip???

Thanks in advance.

Detecting A Rollover On A Movieclip
I have a stage with a variable number of variably-named movieclips (ie: the number and instance names are generated dynamically).

If any one of these movieclips is rolled over, how would I then pass the instance name of the rolled over clip to a function?

I can do it no problem if the instance names are hard-coded in at the start, but that's not the approach I want to take.

Thanks for any advice.

Load Movieclip On Rollover?
here is my site with flash banner....

http://s170193323.onlinehome.us/MKPortalSMF/

where the shimmer effect goes over the word EXTREME, I want to make it do that only on a rollover. Is this possible? right now it is a movieclip which loops every so often.

thanks!

Button Rollover To Swap A Movieclip
Greetnz to all...

I hope that there is someone out there who can help me with my problem. I want to use rollover button to swap movie clip images. I have gotton half of it to work. when the mouse is over the button the clip changes, actually it loads a one frame movie, and I have also gotton it to remove the movie at mouse out. the problem is with that script it only does it once. I would love a script that would enable to to swap clips each time the user moves his/her mouse over/off the button. Help, please....

from a wannabe flashmaster....

Scaling Movieclip With Rollover Button
Hi all,
I would like your help please on this problem I have.

I have two elements in my Flash movie, a movieclip (scaleBox) and a button (myButton).

The movieclip is a rectangle graphic. It is about 100 pixels long.

The button actionsscript is:
------------------
on (rollOver) {
myW = scaleBox._width;
for(i=1; i<10; i++) {
myW= myW + 1;
scaleBox._width = myW;
}
}
-------------

The code above executes 10 times (i<10) and the rectangle's width will expand to 110 pixels but the problems are:

1) The rectangle just expand from 100 to 110 pixels e.g. I want the rectangle to increment to 110 pixels.
100,101,102,103,104..so on to 110 rather than jump from 100 to 110 pixels.

2)When I execute the rollover, the rollover just executes once. I mean, when I place the cursor over the button I would like the rectangle to keep expanding until I put the cursor out of the Button hit area. I'm aware that I have to make a rollout script.

Could those two problems have one solution? It does sound as if there is by comparing them both.

Cheers,
John

Getting A Movieclip To Drag And Play When You Rollover
I'm trying to create tool tips type things where when you rollover an invisible button. Frame 2 of a movieclip instance(contains a graphic) called "tool_tipper" shows up; the first frame is blank (with stop action).
The script I'm attaching to the invisible (rollover) button is the following:


Code:
on (rollOver) {
with ("tool_tipper") {
startDrag("tool_tipper", true);
gotoAndStop(2);
}
}
on (rollOut) {
with ("tool_tipper") {
stopDrag();
gotoAndStop(1);
}
}


This is a very simple thing to do I know, but I can't seem to get it to work with the code I have so far. It DOES work when the code is simplified to this though:

Code:
on (rollOver) {
startDrag("tool_tipper", true);
}
on (rollOut) {
stopDrag();
}



You can download the file I'm working on below to have a look...

Class Movieclip Rollover Failure
Hi,

I've been pulling hair over this problem for several days and have not been able to find answers in my books or on forums and google searches. I must me missisg something important because my code looks like what everything suggests but doesn't work.

The code goes as follows:Create class 'aButton'create an empty movie clip at _root.button_0 (into class var 'button')attach a bunch of items from the library to and move them into positiondefine button.onRollOver and button.onRollOut functions (failure point) to toggle transparencies
code snips as follows:

PHP Code:




function init ( ) {
    this.id = _root.getNextHighestDepth ( );
    button = _root.createEmptyMovieClip ( "button_" + this.id, _root.getNextHighestDepth ( ));
}








PHP Code:




public function make ( ) {
    button.attachMovie ( this.type + "_left", "left_" + this.id, button.getNextHighestDepth ( ));
    button.attachMovie ( this.type + "_left_on", "left_on_" + this.id, button.getNextHighestDepth ( ));
    button["left_on_" + this.id]._visible = false;

    button.onRollOver = function ( ) {
        button["left_" + this.id]._visible = false;
        button["left_on_" + this.id]._visible = true;
    }
    button.onRollOut = function ( ) {
        button["left_" + this.id]._visible = true;
        button["left_on_" + this.id]._visible = false;
    }
}







Any suggestions would be greatly appreciated.
Thanks,
</ Seth>

Playing A Movieclip On Button Rollover
I'm currently doing a flash project and am having lots of trouble with my movieclips in buttons.

What I wanted to create was invisible buttons that would light up and fade in graphics when I rolled over it and then return to the original states and fade out the graphics when I rolled out.

what I did was to make invisible buttons and group then together with images (representing my buttons) and created a 2 frame movie clip for the lighting up effect.

The lighting up effect works but I can't get the fadein/out movieclip to work according to the button... it just fades in automatically. I am following the instructions on a guide book so I don't understand why it can't work.

I put this actionscript on the movieclip:

// handle the onEnterFrame event
fadeMRI.onEnterFrame = function() {
if (fade) {
fadeBox_mc.nextFrame();
} else {
fadeBox_mc.prevFrame();
}
};

on the button actions window i'm supposed to put the actionscript:

// handle the onEnterFrame event
fadeMRI.onEnterFrame = function() {
if (fade) {
fadeBox_mc.nextFrame();
} else {
fadeBox_mc.prevFrame();
}
};

Doesn't work! I don't know why too...
Please help me... have tried everything I can think of...

Rollover Stop And Start Movieclip
Hello, I have a page full of movieclips that start playing with a rollover. I want them to stop when rolled over again.
Also, is it possible to, instead of this, have the movieclips alpha out with script, after being rolled over, rather than animating each one?
Any help with this would be boss.
Cheers
Alex

Flash MX Movieclip Rollover Question
Im having a real hard time trying to make a certain movieclip action work. I'll try my best to explain it. I have a movieclip with a 10 frame image sequence. I'm ultimately trying to create a loop animation when you roll the mouse over the clip. I have no problems creating that. What I cant seem to make work is this: when you rollout of the movieclip with the mouse the animation jumps back to frame 1. Frame one has a stop action on it. The movieclip has a rollover-gotoandplay frame 2 action. So when the mouse isnt over it, it stops on the first frame. When you rollover it, it starts frame 2 and plays till frame 11. frame 11 has a gotoandplay fame 2. this is how I create the loop once the mouse rolls over. I also put in a rollout mouse action which tells it to gotoandplay frame 1. so when you rollout with the mouse the animation stops. My problem is that no matter where the animation sequence is in the loop, when you rollout it jumps to frame 1, to stop. I want it to continue the animation cycle when i rollout with the mouse, then stop. So it doesnt have that jerky motion. so if you rollout on frame 5, it will finish the cycle THEN stop. How I tried solving this is by making another cycle from frame 12 to 21. with a stop frame at 21. Its the exact cycle as 2 through 11. except without the action to loop on the last frame. So frame 2 is the same as 12, 3 is the same as 13 and so on. I tried making an action on each frame 2-11 that when you rollout on that frame it jumps to the corresponding frame 12-21. that way the cyle will finish and stop. I just cant seem to get it to work though. The rollout actions arent working inside the movieclip. Anyone have any suggestions? anything would help

-jay

Flash Mx Movieclip Rollover Question
Im having a real hard time trying to make a certain movieclip action work. I'll try my best to explain it. I have a movieclip with a 10 frame image sequence. I'm ultimately trying to create a loop animation when you roll the mouse over the clip. I have no problems creating that. What I cant seem to make work is this: when you rollout of the movieclip with the mouse the animation jumps back to frame 1. Frame one has a stop action on it. The movieclip has a rollover-gotoandplay frame 2 action. So when the mouse isnt over it, it stops on the first frame. When you rollover it, it starts frame 2 and plays till frame 11. frame 11 has a gotoandplay fame 2. this is how I create the loop once the mouse rolls over. I also put in a rollout mouse action which tells it to gotoandplay frame 1. so when you rollout with the mouse the animation stops. My problem is that no matter where the animation sequence is in the loop, when you rollout it jumps to frame 1, to stop. I want it to continue the animation cycle when i rollout with the mouse, then stop. So it doesnt have that jerky motion. so if you rollout on frame 5, it will finish the cycle THEN stop. How I tried solving this is by making another cycle from frame 12 to 21. with a stop frame at 21. Its the exact cycle as 2 through 11. except without the action to loop on the last frame. So frame 2 is the same as 12, 3 is the same as 13 and so on. I tried making an action on each frame 2-11 that when you rollout on that frame it jumps to the corresponding frame 12-21. that way the cyle will finish and stop. I just cant seem to get it to work though. The rollout actions arent working inside the movieclip. Anyone have any suggestions? anything would help

-jay

Timeline Effect On Movieclip Rollover
Hi, with ActionScript 2.0 I'm trying to create a movieclip button that will have a timeline effect that applies only onto the text of the button when you rollover it. I've created the movieclip and inside of it I've placed a graphic symbol on the "_over" frame that contains the text with the timeline effect. In my actionscript I am able to send the movie to that frame on rollover but the actual effect will not play. I was hoping someone could help me out, thanks.

[CS3] Movieclip Stays In Rollover State
Hello,

I have a problem with my movieclips.
I have a for example:

movieclip.onRollOver = function(){
do something;
}

movieclip.onRollOut = function(){
return to original state;
}

When I roll out of the movieclip too fast, it doesn't register the
rollOut function.

Does anybody know how to fix this problem?

Thank you in advance.

On Rollover Change Tint Of Movieclip
Hello,
I have a menu that I want to add some actions on so that when the mouse rolls over each button symbol, a large clip that takes up all of the background changes colour. I could do that with a simple rollover this. but that changes the colour in one sudden stroke while what I'm looking for is a gradual pass from tint A to tint B. As an example, If button A is yellow and button B is blue, it should show the pass from green as I switch from button to button. Any ideas? Thanks.

Adding A Rollover State To A Movieclip
I have a flash piece with a number of shapes/text that are movieclips, that take you to various sections when clicked. I'd like the text to change color when you roll-over them.

I know you can do this with buttons but I've already done a lot of work and they're movieclips. Can I do that?

Button Inside Movieclip Rollover
I am creating this mpa with rollover locations.

Once someone rolls over the location info pops up.

For some reason when i put buttons inside this movie clip they are disabled.

The link to the fla is:
http://www.uncommonhost.com/flash/map2.fla

Thanks,

Ethan

Playing A Movieclip Backwards When You Rollover It?
Hi.

could someone explain to me how to play a movieclip backwards by rolling over it? How would I go about creating the code?

thanks.

Movieclip Names On Rollover Or Hitest
Hi there, first post.

I am trying to make something like hittest, that will give me the name of the movieclip that the mouse pointer is currently over. It should be able to give the deepest level movieclip that is possible. I have written some code which has to be run at the start, but would preferably like something better as I have extra movieclips being added and removed from the screen. This would require that the function get run at each point of change.

the Code I have is


Code:
function movienames(mc:MovieClip):Boolean {
var test:Boolean;
var i:Object;
test = true;
for (var i in mc) {
if (mc[i] instanceof MovieClip) {
test = true;
str = mc[i]._target;
test = movienames(mc[i]);
if (test) {
eval(mc[i]._target).onRollOver = function() {
set("_root.MouseHit", this);
};
test = true;
}

}
test = false;
}
return test;
}
test = movienames(_root);
I would prefer something like

Code:
mouseListener.onMouseMove = function() {
_root.MouseHit=hitTest(_xmouse, _ymouse)
};
I hope this is understandable

Ian

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