# Simple scaling problem

**URL:** <https://forum.kirupa.com/t/simple-scaling-problem/115958>\
**Category:** Uncategorized\
**Created:** [July 13, 2004, 1:05pm UTC](https://forum.kirupa.com/t/simple-scaling-problem/115958 "2004-07-13T13:05:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fraggs](https://avatars.discourse-cdn.com/v4/letter/f/c37758/32.png) [@Fraggs](https://forum.kirupa.com/u/Fraggs)\
**Post date:** [July 13, 2004, 1:05pm UTC](https://forum.kirupa.com/t/simple-scaling-problem/115958/1 "2004-07-13T13:05:26Z")

</div>

I have a mc within a mc, on this inner mc I have the following code, I know it works as when I use the trace command I get an output, but when I replace trace with a function, nothing happens, anyone able to help?

```auto
onClipEvent(load) {
        this._rotation += 20;
        origWidth = _root.myRotation._width;
        origHeight = _root.myRotation._height;
}
}onClipEvent(enterFrame) {
        if(Key.getCode() == Key.UP) {
                _root.myRotation._xscale += 5;
                _root.myRotation._yscale += 5;
        }else if(Key.getCode() == Key.DOWN) {
                _root.myRotation._xscale -= 5;
                _root.myRotation._yscale -= 5;
        }
}

```

Regards,
