Scrollable Image Viewer

Questions and answers about Screens-based FLA files, Behaviors, Extensions+Extensibility, Commands and so on.
Post Reply
Posts: 1
Joined: Mon Jun 30, 2003 5:56 pm

Scrollable Image Viewer

Post by dstudios » Sun Oct 10, 2004 10:49 pm

I am trying to get my image viewer thing to work, but it scrolls when I move the mouse it possible to get it to only scroll when the mouse is in the black box or something? Someone please help me with this... :(

Code: Select all

onClipEvent (load)
onClipEvent (enterFrame)
  var distance=_root._xmouse-xcenter;
  if (_x > 0) _x=-300;
  if (_x < -300) _x=0;
Website this is where the file is displayed.

Posts: 20
Joined: Mon Jun 30, 2003 5:56 pm

Re: Scrollable Image Viewer

Post by bzaks » Mon Oct 11, 2004 10:10 am

Your way looks pretty decent, but there should be a way to use a mouse listener. This way you could say something to the effect of

if(mouse coordinates < 0 || mouse coordinates > stageSize)
/////if the mouse has traveled off the stage.
///move the picture....

I would recommend doing this under a mask. it will make life a little easier.


Posts: 94
Joined: Fri Sep 18, 2009 4:53 am

No man waxes poetic

Post by sneakersupplier » Thu Oct 14, 2010 4:52 am

No man waxes poetic like that unless they have been (except RLP). Very sweet

<a href="">Louis Vuitton Handbags</a>

Post Reply