# Works in localhost but not web

**URL:** https://forum.kirupa.com/t/works-in-localhost-but-not-web/161300
**Category:** Uncategorized
**Created:** [September 2, 2005, 4:07pm UTC](https://forum.kirupa.com/t/works-in-localhost-but-not-web/161300 "2005-09-02T16:07:32Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![grudz7](https://avatars.discourse-cdn.com/v4/letter/g/13edae/32.png) [@grudz7](https://forum.kirupa.com/u/grudz7)
#### Post date: [September 2, 2005, 4:07pm UTC](https://forum.kirupa.com/t/works-in-localhost-but-not-web/161300/1 "2005-09-02T16:07:32Z")

</div>

Hi,

This is my first post on your great site, and hopefully not my last!

Anyway,

I have kinda new to Flash MX 2004 so bare with me. I have a very, very simple script

```auto
 var myMCL:MovieClipLoader = new MovieClipLoader();
myMCL.loadClip("dg_button.swf",1);
var myLV:LoadVars = new LoadVars();
myLV.onLoad = function(success) {
 if (success) {
  _level2.textField.htmlText = myLV.services;
 }else{
  _level2.textField.text = "ERROR";
 }
} 

```

which basically loads a movie on top of the existing one. The problem is that if I view the first movie clip (where this code is in) everything is going to show ok, but when I put it on the web, the 2nd movie clip (dg\_button.swg) doesn’t load…

any ideas why?
