# Loading CSS Tutorial - Please HELP!

**URL:** https://forum.kirupa.com/t/loading-css-tutorial-please-help/56966
**Category:** Uncategorized
**Created:** [July 9, 2004, 6:45am UTC](https://forum.kirupa.com/t/loading-css-tutorial-please-help/56966 "2004-07-09T06:45:15Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![jiggavo](https://avatars.discourse-cdn.com/v4/letter/j/a5b964/32.png) [@jiggavo](https://forum.kirupa.com/u/jiggavo)
#### Post date: [July 9, 2004, 6:45am UTC](https://forum.kirupa.com/t/loading-css-tutorial-please-help/56966/1 "2004-07-09T06:45:15Z")

</div>

The tutorial from [http://www.kirupa.com/developer/mx2004/cssfile.htm](http://www.kirupa.com/developer/mx2004/cssfile.htm) worked out great! Did some modifications so that it loads up specific files at the click of a button. The following worked great for me.

```auto

on (release) {
	var format = new .TextField.StyleSheet();
	var path = "flash.css";
	format.load(path);
	format.onLoad = function(success) {
		if (success) {
			output.styleSheet = format;
			myLoadVar = new LoadVars (); 
			myLoadVar.load("content.txt") 
			myLoadVar.onLoad = function (success){ 
				if (success == true) { 
					output.variable = "kirupa" 
					output.htmlText=myLoadVar.kirupa; 
				} 
			} 
		} else {
			output.text = "Error loading CSS file!";
		}
	}
}

```

But I then placed these buttons inside a movie clip so now… when i press the buttons the text no longer loads up.

I’ve tried applying \_root to “output” … which works if i view it within its own movie file. However, it’s 2 levels deep.

---

<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: [July 9, 2004, 8:17am UTC](https://forum.kirupa.com/t/loading-css-tutorial-please-help/56966/2 "2004-07-09T08:17:29Z")

</div>

okay nm, i forgot to use \_parent instead of \_root.

---

<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 7, 2004, 5:47pm UTC](https://forum.kirupa.com/t/loading-css-tutorial-please-help/56966/3 "2004-08-07T17:47:02Z")

</div>

Well, I for one couldn’t get it to work (although, I’m using Flash MX for the Mac, and not MX 2004.

I go to Publish Preview/HTML and all I get is a blank screen.

I put in a static text box below the dynamic one, but no joy. I still ended up with a blank screen except for my static text.

Anything I’m doing wrong?

---

<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 7, 2004, 9:51pm UTC](https://forum.kirupa.com/t/loading-css-tutorial-please-help/56966/4 "2004-08-07T21:51:37Z")

</div>

correct me if i’m wrong, but i think the CSS tag feature is only supported with flash player 7. and if i remember correctly mx only supports up to player 6?

---

<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 8, 2004, 1:16am UTC](https://forum.kirupa.com/t/loading-css-tutorial-please-help/56966/5 "2004-08-08T01:16:00Z")

</div>

Great… so in other words, I’ll have to borrow a friend’s machine that has MX 2004 on it, or scrap up enough bucks to afford an upgrade.

Thanks though, I was starting to get just a little frustrated with the whole thing for a moment there.

---

<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 9, 2004, 12:07pm UTC](https://forum.kirupa.com/t/loading-css-tutorial-please-help/56966/6 "2004-08-09T12:07:49Z")

</div>

Well, I just attempted the CSS tutorial again on a PC with MX 2004. Still got no success. I was able to get partial success yesterday after upgrading on my Mac, but for some reason, the one located at [http://www.kirupa.com/developer/mx2004/css.htm](http://www.kirupa.com/developer/mx2004/css.htm) just gives me a blank screen.

I can also see now that I’ll have to embedd characters instead of using the embedded characters of the style sheet (at least my attempts yesterday tell me this.)
