Sizes in actionscript

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.

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

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

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.

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.

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

That has to work.

:frowning:

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.

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

the actual logo/ball/things have this included

z = Math.sin(angleMath.PI/180)radius+zcenter;
scale = fl/(fl+z);
x = Math.cos(angle
Math.PI/180)radius;
_x = x
scale+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…

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.

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.