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




ImageMove



Hi, I've been writing some code, that - at the moment - makes an MC move, according to the mouseMove at the stage. But I want it to move, according to the size of another movieClip, and then use that movieClip as mask. Now, every time I try changing it, it doesn't work. Here's a reference link, to what effect I'm trying to replicate: www.hugoboss.com ( look under one of the collections, and press a thumbnail, then move the mouse over to the large image, placed in the right side of the screen ). Here's the current code:
ActionScript Code:
onClipEvent (enterFrame) { speed = 10;}onClipEvent (enterFrame) { var xMove = ((Stage.width))-_root._xmouse; _x += Math.ceil((xMove-_x)/speed); var yMove = ((Stage.height))-_root._ymouse; _y += Math.ceil((yMove-_y)/speed);}
Any help, would be much appreciated



KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 05-20-2005, 11:43 AM


View Complete Forum Thread with Replies

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

ImageMove
Hi,

I've been writing some code, that - at the moment - makes an MC move, according to the mouseMove at the stage. But I want it to move, according to the size of another movieClip, and then use that movieClip as mask.

Now, every time I try changing it, it doesn't work.

Here's a reference link, to what effect I'm trying to replicate: www.hugoboss.com ( look under one of the collections, and press a thumbnail, then move the mouse over to the large image, placed in the right side of the screen ).

Here's the current code:

ActionScript Code:
onClipEvent (enterFrame) { speed = 10;}onClipEvent (enterFrame) { var xMove = ((Stage.width))-_root._xmouse; _x += Math.ceil((xMove-_x)/speed); var yMove = ((Stage.height))-_root._ymouse; _y += Math.ceil((yMove-_y)/speed);}


Any help, would be much appreciated

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