Okay, I am going crazy here! I have read that when using macromedia’s components in a .swf that is nested in a main .swf you must also embed the component in the main .swf as well.
Here is my issue. I have a dynamic text box that loads text from an external .txt file. This works fine when I play it directly in the browser, but I am needing to load this .swf into another first.
The structure is like this…
main.swf > subcontent.swf < data.txt
Is it possible to load the data in a nested movie?
My code in subcontent.swf is as follows.
[color=dimgray]var format = new TextField.StyleSheet();
var path = “flash.css”;
format.load(path);
format.onLoad = function(success) {
if (success) {
output.styleSheet = format;
loadText = new LoadVars ();
loadText.load(“data.txt”)
loadText.onLoad = function (success){
if (success) {
output.variable = “datatxt”
output.htmlText = loadText.datatxt;
} else {
output.htmlText = “ERROR LOADING CONTENT”;
}
}
} else {
output.text = “ERROR LOADING CSS FILE”;
}
};[/color]
[color=#696969][/color]
[color=black]Again, this works fine when played directly in the browser, its only when loaded into another .swf that the external data is not able to be retrieved.[/color]
Please help!!!
jaredburns