# External swf/css problems

**URL:** <https://forum.kirupa.com/t/external-swf-css-problems/135228>\
**Category:** Uncategorized\
**Created:** [January 25, 2005, 8:03pm UTC](https://forum.kirupa.com/t/external-swf-css-problems/135228 "2005-01-25T20:03:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ironPalm](https://avatars.discourse-cdn.com/v4/letter/i/0ea827/32.png) [@ironPalm](https://forum.kirupa.com/u/ironPalm)\
**Post date:** [January 25, 2005, 8:03pm UTC](https://forum.kirupa.com/t/external-swf-css-problems/135228/1 "2005-01-25T20:03:22Z")

</div>

ok,  
here is my situation. I have a main movie with a button that loads an external swf[about.swf] into another empty movie clip instance called “aboutWin” the movie loads fine, the problem is that the loaded movie has a script that loads text and a style sheet into a dynamic text box:

[size=1][color=Red]var format = new TextField.StyleSheet();  
var path = “newStyle.css”  
format.load(path);  
format.onLoad = function(loaded) {  
if (loaded) {  
output.styleSheet = format;  
// new code here…

myLoadVar = new LoadVars ();  
myLoadVar.load(“about.txt”)  
myLoadVar.onLoad = function (success){  
if (success == true) {  
output.variable = “about”  
output.htmlText=myLoadVar.about;  
}  
}  
[//output.text](https://output.text) = quick;  
} else {  
output.text = “Error loading CSS file!”;  
}  
};

[color=Black][size=2][this was culled from:  
[http://kirupa.com/developer/mx2004/css.htm](http://kirupa.com/developer/mx2004/css.htm)  
[[http://kirupa.com/developer/mx2004/cssfile.htm](http://kirupa.com/developer/mx2004/cssfile.htm)]]([http://kirupa.com/developer/mx2004/cssfile.htm]](http://kirupa.com/developer/mx2004/cssfile.htm%5D))  
which standing alone works fine. However, when the movie loads nothing happens. Im sure that there is a simple explanation but ive been up all night and im not seeing it. essentially the text and css are not being loaded and i get my error…any advice in this matter would be greatly appreciated…

ricardo  
[/size][/color][/color][/size]
