# Need help with actions\[FMX\]

**URL:** <https://forum.kirupa.com/t/need-help-with-actions-fmx/28316>\
**Category:** Uncategorized\
**Created:** [August 12, 2003, 3:32pm UTC](https://forum.kirupa.com/t/need-help-with-actions-fmx/28316 "2003-08-12T15:32:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rogerio26](https://avatars.discourse-cdn.com/v4/letter/r/c77e96/32.png) [@rogerio26](https://forum.kirupa.com/u/rogerio26)\
**Post date:** [August 12, 2003, 3:32pm UTC](https://forum.kirupa.com/t/need-help-with-actions-fmx/28316/1 "2003-08-12T15:32:03Z")

</div>

//I would like that the movie clip “resu\_mc”  
be with \_alpha = 100 after the movie clip  
“mask\_mc” has the height 700.  
//I trieded the code bellow and it’s nothing working. the \_alpha continuos zero.  
//Thanx in advance.  
Rogerio

mask\_mc.onEnterFrame = function() {  
if (mask\_mc.\_width \< 900) {  
mask\_mc.\_width += 50;  
}else{  
if (mask\_mc.\_height \< 700)  
mask\_mc.\_height += 50;  
}  
};  
resu\_mc.onEnterFrame = function() {  
dm = getProperty("/mask\_mc", \_height);  
if (Number(dm) == 700) {  
resu\_mc.\_alpha = 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:** [August 12, 2003, 3:44pm UTC](https://forum.kirupa.com/t/need-help-with-actions-fmx/28316/2 "2003-08-12T15:44:21Z")

</div>

You should use the AS tags next time 🙂 but from what i can see so far, i don’t think you should do \<900 and \<700, because it would be confusing :-\ I also see you are using getProperty which is old and everything. You should change that to:

dm = \_root.mask\_mc.\_height

and i do’nt think you need Number(dm). Just use dm…

That should be it 🙂

ok i’ll try and write it all out for you since what i said might have been confusin 🙂 I don’t know if this will solve the problem though, it should…

[AS]  
mask\_mc.onEnterFrame = function() {  
if (mask\_mc.\_width \< 900) {  
mask\_mc.\_width += 50;  
}  
}  
resu\_mc.onEnterFrame = function() {  
dm = \_root.mask\_mc.\_height  
if (dm \> 700) {  
resu\_mc.\_alpha = 100;  
}  
}  
[/AS]

That should work, havn’t tested it though. You havta make sure mask\_mc is on \_root, or else you have to change the code a bit 🙂
