Parcival21
Technical User
Hi there,
Sorry to bother you all again. But I still don't get my programm working.
How can I make it possible that the action called by a mouse movement areonly executed when the mouse is over my movieclip, in this case a scrollable object.
I wrote the following Actionscript:
onClipEvent (load)
{
ycenter=395;
speed=1/50;
}
onClipEvent (enterFrame)
{
var distance=_root._ymouse-ycenter;
_y+=(distance*speed);
if (_y > -175) _y=-1410;
if (_y < -1410) _y=-175;
}
Now my object moves up and down not only when the mouse is on the object but all the time.
I tried to put something in like:
On...{
onClipEvent{
...
}
}
But this isn't posiible.
How can I solve my problem?
Thanks's for any help,
busche
Sorry to bother you all again. But I still don't get my programm working.
How can I make it possible that the action called by a mouse movement areonly executed when the mouse is over my movieclip, in this case a scrollable object.
I wrote the following Actionscript:
onClipEvent (load)
{
ycenter=395;
speed=1/50;
}
onClipEvent (enterFrame)
{
var distance=_root._ymouse-ycenter;
_y+=(distance*speed);
if (_y > -175) _y=-1410;
if (_y < -1410) _y=-175;
}
Now my object moves up and down not only when the mouse is on the object but all the time.
I tried to put something in like:
On...{
onClipEvent{
...
}
}
But this isn't posiible.
How can I solve my problem?
Thanks's for any help,
busche