# Help me thank

**URL:** <https://forum.kirupa.com/t/help-me-thank/27876>\
**Category:** Uncategorized\
**Created:** [August 7, 2003, 1:20pm UTC](https://forum.kirupa.com/t/help-me-thank/27876 "2003-08-07T13:20:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alberto](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@Alberto](https://forum.kirupa.com/u/Alberto)\
**Post date:** [August 7, 2003, 1:20pm UTC](https://forum.kirupa.com/t/help-me-thank/27876/1 "2003-08-07T13:20:49Z")

</div>

Hi Guys, i am an Italian flash designer.  
I was wondering if you could help me with this script.  
Let me explain you what is my problem:  
on my main timeline i have three levels, in the first one there is a MC with insiede a simbol, in the second and third there is a button.  
In the two buttons i put this code:

on (release) {  
\_root.dimx=300  
\_root.dimy=50  
}  
of course in each buttons there are different values.

In the MC that contains a simbol, i have this code:

onClipEvent (load) {  
\_root.dimx = 150;  
\_root.dimy = 150;  
}  
onClipEvent (enterFrame) {  
\_xscale += (\_root.dimx-\_xscale)/4;  
\_yscale += (\_root.dimy-\_yscale)/4;  
if (\_xscale\<290) {  
loadMovieNum(“lallo.swf”, 1);  
}  
}  
So when i click my button, the simbol inside the MC change it’s shape and load the extaernal swf.  
So far no problem,  
now when i click the second button, i would like that the simbol will still change it’s shap and also will load another different swf.  
Could you tell me how should i do that?  
I would be pleased if you could write me down the missing part of the script.  
I thank you in advance  
Ciao Alberto

---

<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:** [August 7, 2003, 1:33pm UTC](https://forum.kirupa.com/t/help-me-thank/27876/2 "2003-08-07T13:33:08Z")

</div>

So you want to load another SWF inside the object, when pressing the other button ? Ok, use

[AS]  
onClipEvent (load) {  
\_root.dimx = 150;  
\_root.dimy = 150;  
}  
onClipEvent (enterFrame) {  
\_xscale += (\_root.dimx-\_xscale)/4;  
\_yscale += (\_root.dimy-\_yscale)/4;  
if (\_xscale\<290) {  
loadMovieNum(\_root.mctoload, 1);  
}  
}  
[/AS]

and

[AS]  
on (release) {  
\_root.dimx=300  
\_root.dimy=50  
\_root.mctoload = “lallo.swf”;  
}  
[/AS]

on each button =) Of course, on the second button lallo.swf has to be replaced with the name of the other swf.
