# Why isnt this working?

**URL:** <https://forum.kirupa.com/t/why-isnt-this-working/196871>\
**Category:** flash\
**Created:** [August 11, 2006, 3:43pm UTC](https://forum.kirupa.com/t/why-isnt-this-working/196871 "2006-08-11T15:43:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![indiasfinest](https://avatars.discourse-cdn.com/v4/letter/i/5e9695/32.png) [@indiasfinest](https://forum.kirupa.com/u/indiasfinest)\
**Post date:** [August 11, 2006, 3:43pm UTC](https://forum.kirupa.com/t/why-isnt-this-working/196871/1 "2006-08-11T15:43:31Z")

</div>

ok so im stuck here with the magnet thing again if you read my last post, but i cant even get a block to move…can someone tell me what i am doing wrong? here is the AS

```php
onClipEvent (enterFrame) {
    if (_root.car.x == 505) {
        _root.car.x = 165
    }
}

onClipEvent (enterFrame) {
    _x += xspeed 
    _y += yspeed
    
}
onClipEvent (enterFrame) {
    xspeed += 4
    yspeed += 0
}
    

        

```
