# Problems with MovieClipLoader!

**URL:** <https://forum.kirupa.com/t/problems-with-moviecliploader/193045>\
**Category:** flash\
**Created:** [July 3, 2006, 9:53pm UTC](https://forum.kirupa.com/t/problems-with-moviecliploader/193045 "2006-07-03T21:53:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![elektrophunk](https://avatars.discourse-cdn.com/v4/letter/e/e8c25b/32.png) [@elektrophunk](https://forum.kirupa.com/u/elektrophunk)\
**Post date:** [July 3, 2006, 9:53pm UTC](https://forum.kirupa.com/t/problems-with-moviecliploader/193045/1 "2006-07-03T21:53:29Z")

</div>

[FONT=Arial]Hi![/FONT]  
[FONT=Arial][/FONT]  
[FONT=Arial]I’m experiencing some difficulties with the MovieClipLoader class in Flash 8. From my main SWF I want to dynamically load an external SWF into an empty MovieClip object. This I do according to the code below. My problem is that this works locally so to speak (when I test my movie), but when I publish it on the Internet the external SWF doesn’t show. Why?? I don’t get it. Can anybody please enlighten this to me? [/FONT]  
[FONT=Arial][/FONT]  
[FONT=Arial][/FONT]  
[FONT=Arial]var mcContainer:MovieClip = \_root.createEmptyMovieClip(“mcContainer”, \_root.getNextHighestDepth());[/FONT]  
[FONT=Arial]var mcLoader:MovieClipLoader = new MovieClipLoader();[/FONT]  
[FONT=Arial]var listener:Object = new Object();[/FONT]  
[FONT=Arial]mcLoader.addListener(listener);[/FONT]  
[FONT=Arial]listener.onLoadStart = function(targetMC) {[/FONT]  
[FONT=Arial]mcContainer.\_visible = false;[/FONT]  
[FONT=Arial]//trace(“started loading “+targetMC);[/FONT]  
[FONT=Arial]};[/FONT]  
[FONT=Arial]listener.onLoadProgress = function(targetMC, lBytes, tBytes) {[/FONT]  
[FONT=Arial]loadTxt = (Math.round((lBytes/tBytes)\*100));[/FONT]  
[FONT=Arial]};[/FONT]  
[FONT=Arial]listener.onLoadComplete = function(targetMC) {[/FONT]  
[FONT=Arial]// trace(targetMC+” finished”);[/FONT]  
[FONT=Arial]mcContainer.\_visible = true;[/FONT]  
[FONT=Arial]};[/FONT]  
[FONT=Arial]mcLoader.loadClip(“content/extern\_swf/intro.swf”, mcContainer);[/FONT]  
[FONT=Arial][/FONT]  
[FONT=Arial][/FONT]  
[FONT=Arial]// ElektroPhunk[/FONT]
