# Slidy thingy!

**URL:** <https://forum.kirupa.com/t/slidy-thingy/222353>\
**Category:** flash\
**Created:** [April 12, 2007, 5:26pm UTC](https://forum.kirupa.com/t/slidy-thingy/222353 "2007-04-12T17:26:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DanontheMoon](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/danonthemoon/32/7436_2.png) [@DanontheMoon](https://forum.kirupa.com/u/DanontheMoon)\
**Post date:** [April 12, 2007, 5:26pm UTC](https://forum.kirupa.com/t/slidy-thingy/222353/1 "2007-04-12T17:26:43Z")

</div>

_How are you gentlemen!!_

Okay, another one. I’ve got a swf where I’ve got a simple rectangle that I want to move to different positions depending where the mouse is. Here’s my weak attempt at a script.

> onEnterFrame = function():void {  
> var slipos = math.abs(Q);  
> if (mouse.\_y\<=150) {  
> Q=50  
> }else{  
> get Mouse.\_y

As usual, one question begets more (about scripting in general). Can I daisy-chain if-else statements, and if so what’s the proper syntax/format?

The .fla is posted, big ups to anyone who can help denoob me.
