# Simple help: How to initialize x scale and y scale into precentages

**URL:** <https://forum.kirupa.com/t/simple-help-how-to-initialize-x-scale-and-y-scale-into-precentages/175455>\
**Category:** flash\
**Created:** [January 14, 2006, 4:35pm UTC](https://forum.kirupa.com/t/simple-help-how-to-initialize-x-scale-and-y-scale-into-precentages/175455 "2006-01-14T16:35:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bird\_Killer](https://avatars.discourse-cdn.com/v4/letter/b/4da419/32.png) [@Bird\_Killer](https://forum.kirupa.com/u/Bird_Killer)\
**Post date:** [January 14, 2006, 4:35pm UTC](https://forum.kirupa.com/t/simple-help-how-to-initialize-x-scale-and-y-scale-into-precentages/175455/1 "2006-01-14T16:35:45Z")

</div>

Hi, it’s me again. This is probably a simple help request: How can I convert the current scale of the instance to 100% so I can easily “visualize” and manage the instance when I modify its scale? Here’s the actionscript, it works, but I just want the temp.\_xscale and temp.\_yscale to be in precentages, not real numbers.

```auto
USflag.onMouseDown = function ()
{
    var temp = USflag;
    
    onEnterFrame = function ()
    {
        //the two variable's value is currently between 20-30, I want it to be just 100%.
        temp._xscale = temp._yscale *= .9;
        trace (temp._xscale);
        if(temp._xscale < 5)
        {
            delete onEnterFrame;
        }
    }
}

```

One last thing, what’s the tag you have to put that is designed for boxing actionscripts? I’m suing [code][/code]
