Jump to content


Scroll a Movie Clip on Rollover


  • You cannot reply to this topic
6 replies to this topic

#1 Mozart

    Young Padawan

  • Members
  • Pip
  • 3 posts

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. :hi:

#2 funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

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:
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 Mozart

    Young Padawan

  • Members
  • Pip
  • 3 posts

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?

Edited by Mozart, 13 September 2005 - 10:53 AM.


#4 funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 13 September 2005 - 11:05 AM

sorry dude.. my mistake

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 Mozart

    Young Padawan

  • Members
  • Pip
  • 3 posts

Posted 13 September 2005 - 11:58 AM

you are the man :D

#6 Hooch

    Young Padawan

  • Members
  • Pip
  • 158 posts
  • Location:Brockville, Ontario

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

#7 funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 19 September 2005 - 02:30 AM

I don't think so..
This is a pretty basic thing :rolleyes:





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users