Resizing a loaded swf

This forum is amazing for answers but I couldn’t find this one.

I have a flash movie.
I am loading a .swf I wish to size down to 1/10th it’s size.
I have a empty movie clip called container in which I am loading the swf called logo. The instance name for the container movie clip is logo. What can i do to size it down?

Thanks

change the containers _width and _height or _xscale and _yscale.

_width and _height size by pixels

_xscale and _yscale size by percentage of original size.

onclipEvent(load) {
spin._width = 50;
spin._height = 50;
}

do i apply this to my movie clip, my actions frame or have i even coded it right?
When I tes my movie I get this

Scene=Scene 2, Layer=logobar, Frame=1: Line 2: ‘;’ expected
onclipEvent(load) {

spin._width = 50;
spin._height = 50;

Yes, that is correct, and you can put it wherever you want. If you want it to resize when the button is pressed, use it in the on handler on your button, if you want it when a clip loads, put it in the onClipEvent handler, and if you want it when a frame enters, put it in a frame.

Perhaps you are getting the error because it is onClipEvent not onclipEvent.

*Originally posted by lostinbeta *
**Perhaps you are getting the error because it is onClipEvent not onclipEvent. **

Doesn’t make any difference actually.

I just tested it, it does make a difference.

I know there are some commands in Flash that ARE case sensitive. This is one of them.

Hmm, LoadVars = loadvars, onenterframe = onEnterFrame, never tried onclipevent. :-\

Yeah… I remember having trouble with this once before (for a different command) and it was the case that screwed it up. It took me forever to figure it out. Now I try to get the right case for everything.

oh lol ****!! :x :stunned:

Scene=Scene 1, Layer=Layer 1, Frame=1: Line 1: ‘;’ expected
onclipevent (load){

lol :trout:

hey … i didn’t know there’s some case sensitive commands :!:

lucky me … i always use the right ones
but i always forget about semi colons

Well now ya know :wink:

Do you guys get mistaken with ‘as’ terms as variables, because it doesn’t work with some of them, it’s kind of obvious that you shouldn’t use 'em!

No, I don’t. If my variable is the same as an AS term I usually shove the word “my” in front of it.

Like “text” would turn into “myText”.

Same here, myLoadvars, but i use TextField, it works lol!

LOL :slight_smile:

i add the first word that comes to my mind … jk :stuck_out_tongue:

example … if i’m loading external text for my news text field

the variable would be like this:
newsText

and the actual text field would be:
newsTextBox [ i love the ‘x’ so i use it as much as i can :stuck_out_tongue: ]

I have a logo I go in swf format but not the fla.
I want to load it into an empty movie clip which has been given the instance name spin.
I Have tried the
onClipEvent (load) {
spin._width=50;
sping._height=50;
}
And I get no code errors now that I have corrected the upper and lower case error. My swf is still loading at full size and not changing.
My theory is that I may be changing the “blank” movie clips size but it is not affecting the loaded .swf.
Any solution?

PS your advice is awesoem guys:)

Try using _xscale and _yscale instead of _width and _height.

Does it make any difference?

Also… perhaps you just type it in the message like that, but for the height you have “sping” not “spin”.