# MC load if \_currentframe==?

**URL:** https://forum.kirupa.com/t/mc-load-if--currentframe/126168
**Category:** Uncategorized
**Created:** [October 20, 2004, 10:41pm UTC](https://forum.kirupa.com/t/mc-load-if--currentframe/126168 "2004-10-20T22:41:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![emolen](https://avatars.discourse-cdn.com/v4/letter/e/94ad74/32.png) [@emolen](https://forum.kirupa.com/u/emolen)
#### Post date: [October 20, 2004, 10:41pm UTC](https://forum.kirupa.com/t/mc-load-if--currentframe/126168/1 "2004-10-20T22:41:05Z")

</div>

//this may confuse u so a better explanation is at the buttom, I think

I have a masked animation that needs to play before a mc is loaded. when the masked animation reaches a certain frame #, load an external movie into a container in a sperate MC. hope this makes sense, the code I am using for the button is as follows, but it won’t load the movie and I think it’s because the MC is actually on frame 10 then playes back to 1 so the current frame at the time the button is pushed would be 10 not one. How can I tell it to load once it does reach the desired frame#??

button.onRelease = function() {  
bug = false;  
//bug sets a previous function which plays the desired animation “mask”  
if (mask.\_currentframe == 1){ container.loadMovie(“images/stsoho1.jpg”,1)};  
};
