Scroll a Movie Clip on Rollover
Started by Mozart, Sep 13 2005 08:35 AM
6 replies to this topic
#1
Posted 13 September 2005 - 08:35 AM
Can someone please help? An example of what I am trying to do is on keyshiacole.com. The flash to the right, when you place the mouse over the little shape at the bottom right, it prompts the image to begin to scroll. When you take it off if stops. I already have the animation done I just need some advice on the script. Thanks in advance to whom ever can help me.
#2
Posted 13 September 2005 - 08:45 AM
looks to me like a picture that has been motion-tweened over a few frames..
I would do it like this:
put a stop action on frame 1 of a new mc, place the animation on frame 2 that goes over several frames, place the mc on the stage
give the mc a instance name, and following actionscript:
replace mc_name with the movieclip instance name you gave.
I think this should work just fine.
I would do it like this:
put a stop action on frame 1 of a new mc, place the animation on frame 2 that goes over several frames, place the mc on the stage
give the mc a instance name, and following actionscript:
mc_name.onMouseOver = function() {
root._parent.gotoAndPlay(2)
}
replace mc_name with the movieclip instance name you gave.
I think this should work just fine.
#3
Posted 13 September 2005 - 10:52 AM
It didn't work, error says
1: Statement must appear within on/onClipEvent handler
I am creating a movie clip
I put the stop action on frame one
I created the scrolling movie clip and drug it onto frame 2
I selected it and gave it an instance name
and then I selected the movie clip and applied the code you gave to it
Is there anything in this process i did wrong?
1: Statement must appear within on/onClipEvent handler
I am creating a movie clip
I put the stop action on frame one
I created the scrolling movie clip and drug it onto frame 2
I selected it and gave it an instance name
and then I selected the movie clip and applied the code you gave to it
Is there anything in this process i did wrong?
Edited by Mozart, 13 September 2005 - 10:53 AM.
#4
Posted 13 September 2005 - 11:05 AM
sorry dude.. my mistake
here the code
Oh, and the code should be applied to the timeline NOT on the MC!!!!!
here the code
mcname.onRollOver = function(){
mcname.gotoAndPlay(2);
}
Oh, and the code should be applied to the timeline NOT on the MC!!!!!
Edited by funkysoul, 13 September 2005 - 11:06 AM.
#5
Posted 13 September 2005 - 11:58 AM
you are the man
#6
Posted 18 September 2005 - 09:34 PM
Is there a tutorial on how to do this?
I'm having difficulty.
I want to be able to mouse over an object, then it automaically lowers to full view. Also at anytime be able to click on it and be directed to another webpage.
I know is seems simple..but I'm missing something.
Thanks
I'm having difficulty.
I want to be able to mouse over an object, then it automaically lowers to full view. Also at anytime be able to click on it and be directed to another webpage.
I know is seems simple..but I'm missing something.
Thanks
#7
Posted 19 September 2005 - 02:30 AM
I don't think so..
This is a pretty basic thing
This is a pretty basic thing
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users
