# With(mc){...} doesn't passing variables?

**URL:** <https://forum.kirupa.com/t/with-mc-doesnt-passing-variables/229135>\
**Category:** Uncategorized\
**Created:** [June 14, 2007, 11:18am UTC](https://forum.kirupa.com/t/with-mc-doesnt-passing-variables/229135 "2007-06-14T11:18:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![7788](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/7788/32/2860_2.png) [@7788](https://forum.kirupa.com/u/7788)\
**Post date:** [June 14, 2007, 11:18am UTC](https://forum.kirupa.com/t/with-mc-doesnt-passing-variables/229135/1 "2007-06-14T11:18:51Z")

</div>

In the flash help the following works  
on(release) {  
with(\_root.ball) {  
gotoAndPlay(2);  
\_alpha = 15;  
\_xscale = 50;  
\_yscale = 50;  
}  
}

but when I add myVar = 10 it doesn’t go into the \_root.ball but the \_root only.  
Is there a way to add lots of variables to a mc without having to type mc.var1=…, mc.var2=…etc.  
Thanks in advanced!  
-Miro
