# Sizes in actionscript

**URL:** <https://forum.kirupa.com/t/sizes-in-actionscript/2405>\
**Category:** flash\
**Created:** [April 3, 2002, 8:08pm UTC](https://forum.kirupa.com/t/sizes-in-actionscript/2405 "2002-04-03T20:08:34Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 3, 2002, 8:08pm UTC](https://forum.kirupa.com/t/sizes-in-actionscript/2405/1 "2002-04-03T20:08:34Z")

</div>

Im using the orbital balls fla from Kirupas open source thingy, and have so far adaped it to this…

onClipEvent (load) {  
\_ \_ \_ \_ myn = 1;  
\_ \_ \_ \_ tellTarget ("\_root.jemma") {  
\_ \_ \_ \_ \_ \_ \_ \_ y = 100;  
\_ \_ \_ \_ \_ \_ \_ \_ speed = 2;  
\_ \_ \_ \_ \_ \_ \_ \_ radius = 100;  
\_ \_ \_ \_ \_ \_ \_ \_ xcenter = 375;  
\_ \_ \_ \_ \_ \_ \_ \_ ycenter = 50;  
\_ \_ \_ \_ \_ \_ \_ \_ angle = 36;  
\_ \_ \_ \_ \_ \_ \_ \_ fl = 250;  
\_ \_ \_ \_ \_ \_ \_ \_ play ();  
\_ \_ \_ \_ }  
\_ \_ \_ \_ tellTarget ("\_root.tom") {  
\_ \_ \_ \_ \_ \_ \_ \_ y = 100;  
\_ \_ \_ \_ \_ \_ \_ \_ speed = 2;  
\_ \_ \_ \_ \_ \_ \_ \_ radius = 100;  
\_ \_ \_ \_ \_ \_ \_ \_ xcenter = 375;  
\_ \_ \_ \_ \_ \_ \_ \_ ycenter = 50;  
\_ \_ \_ \_ \_ \_ \_ \_ angle = 72;  
\_ \_ \_ \_ \_ \_ \_ \_ fl = 250;  
\_ \_ \_ \_ \_ \_ \_ \_ play ();  
\_ \_ \_ \_ }  
etc etc.  
Now they are not containd within one mc, i cannot resize them? How do i make them bigger?b Thanks in advance.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 4, 2002, 11:57am UTC](https://forum.kirupa.com/t/sizes-in-actionscript/2405/2 "2002-04-04T11:57:17Z")

</div>

Waht do you mean? What is the effect you are trying to accomplish?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 5, 2002, 12:13am UTC](https://forum.kirupa.com/t/sizes-in-actionscript/2405/3 "2002-04-05T00:13:15Z")

</div>

OK, it is all here, under ‘meet the staff’.

[www.quasar-enfield.co.uk](http://www.quasar-enfield.co.uk)

the logos with the faces in are obviously too small, and i cannot simply drag them bigger like i could when they were all contained with the actionscript within an mc.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 5, 2002, 6:29am UTC](https://forum.kirupa.com/t/sizes-in-actionscript/2405/4 "2002-04-05T06:29:30Z")

</div>

easy enough… I think.

try adding this

\_xscale=200;  
\_yscale=200;

you can play around with different sizes. The scale is in percent, so it starts out with a \_yscale, and \_xscale of 100.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 5, 2002, 1:51pm UTC](https://forum.kirupa.com/t/sizes-in-actionscript/2405/5 "2002-04-05T13:51:34Z")

</div>

No luck im afraid, no change at all. Argh!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 7, 2002, 3:49am UTC](https://forum.kirupa.com/t/sizes-in-actionscript/2405/6 "2002-04-07T03:49:42Z")

</div>

That has to work.

☹

I’ll think about this and see what I can do… I think I need to look at that Kirupa example that you were working off of.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 7, 2002, 9:45am UTC](https://forum.kirupa.com/t/sizes-in-actionscript/2405/7 "2002-04-07T09:45:20Z")

</div>

Strange that the scaling doesn’t work. You could as well try \_width \*= 2 ; \_height \*= 2 ;  
I’m not sure though.  
pom 0]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 7, 2002, 9:09pm UTC](https://forum.kirupa.com/t/sizes-in-actionscript/2405/8 "2002-04-07T21:09:48Z")

</div>

the actual logo/ball/things have this included

z = Math.sin(angle_Math.PI/180)radius+zcenter;  
scale = fl/(fl+z);  
x = Math.cos(angleMath.PI/180)radius;  
\_x = xscale+xcenter;  
\_y = y_scale+ycenter;  
\_xscale = \_yscale=scale\*100;  
angle += speed;  
if (angle\>359) {  
angle -= 360;  
}

in the middle of 3 keyframes which loop (stop, code^, gotoandplay1) if that makes a difference…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 7, 2002, 10:26pm UTC](https://forum.kirupa.com/t/sizes-in-actionscript/2405/9 "2002-04-07T22:26:30Z")

</div>

Stupid reaction of mine : scale = 10\*fl/(fl+z);  
pom 0]  
If it really doesn’t work, show me the money, I’ll if I can do something.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 8, 2002, 8:01am UTC](https://forum.kirupa.com/t/sizes-in-actionscript/2405/10 "2002-04-08T08:01:01Z")

</div>

yup… that’s because that code keeps updating the scale in it, hence the other scaler doesn’t work…

interesting code there POM. You’re getting far better with this stuff than I ever have been.
