# Controlling dynamically loaded swfs

**URL:** <https://forum.kirupa.com/t/controlling-dynamically-loaded-swfs/23939>\
**Category:** Uncategorized\
**Created:** [June 24, 2003, 4:12pm UTC](https://forum.kirupa.com/t/controlling-dynamically-loaded-swfs/23939 "2003-06-24T16:12:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbrewer](https://avatars.discourse-cdn.com/v4/letter/j/7cd45c/32.png) [@jbrewer](https://forum.kirupa.com/u/jbrewer)\
**Post date:** [June 24, 2003, 4:12pm UTC](https://forum.kirupa.com/t/controlling-dynamically-loaded-swfs/23939/1 "2003-06-24T16:12:28Z")

</div>

okay, this may seem like a basic question, but when you are loading swf’s dynamically, how can you controll them as they are coming in? For example: i want to load three swfs but i want them to sit invisible until the user clicks a button to change visibility and see the content. The problem seems to be that you can’t control it until it’s all there… here’s the code i have been trying.[AS]function goMovie(xMovie, xLevel){  
loadMovieNum(xMovie, xLevel);  
mytry=false;  
\_root.onEnterFrame = function(){  
preload("\_level"+xLevel);  
}  
}  
function preload(xMovie){  
trace(“fire”);  
if(mytry){  
xMovie\_mc = eval(xMovie);  
lFrames = xMovie\_mc.getBytesLoaded();  
tFrames = xMovie\_mc.getBytesTotal();  
trace(lFrames);  
if(lFrames==tFrames){  
xMovie\_mc.stop();  
xMovie\_mc.\_visible = false;  
\_root.onEnterFrame = null;  
}  
}  
//mytry=true;  
}  
goMovie(“contact.swf”, 10);[/AS]  
Any one else out there experienced this problem??? any one got any ideas???  
thanks for taking the time.

---

<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:** [June 25, 2003, 5:58am UTC](https://forum.kirupa.com/t/controlling-dynamically-loaded-swfs/23939/2 "2003-06-25T05:58:08Z")

</div>

i don’t think it’s possible to control loaded movies.

---

<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:** [June 25, 2003, 2:09pm UTC](https://forum.kirupa.com/t/controlling-dynamically-loaded-swfs/23939/3 "2003-06-25T14:09:52Z")

</div>

There a re LOTS of actionscripted preloaders on this board, search a bit and you’ll find your answer 🙂

---

<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:** [June 25, 2003, 4:29pm UTC](https://forum.kirupa.com/t/controlling-dynamically-loaded-swfs/23939/4 "2003-06-25T16:29:14Z")

</div>

its not the preloader i need, but a way to controll it once it is loader, but before it appers… does that make sense? if i am being an idiot could you point me to one (preloader) that you know will resolve my issue?  
thank you.
