PDA

View Full Version : Dynamic Txt in MC



HecticMedia
January 13th, 2006, 12:54 PM
Hey all,

I'm using a movieclip scroller.. I'm using a method from a tutorial on this site to bring in txt from a txt file into a dynamic txt box and apply css:


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

Now this works, but when it's in a movie clip to be scrolled.. nothing shows up...any ideas?

Thanks!

DesignerDude05
January 13th, 2006, 01:05 PM
whats your text set to Static Dynamic or Input i bet its Dynamic or Input, set it to static mate, please email me with results peter@brakesint.co.uk thanks :p

HecticMedia
January 13th, 2006, 01:09 PM
Nah man, static did nothing.. i think it has to be dynamic

DesignerDude05
January 13th, 2006, 01:12 PM
hmmm sorry i dont know then, post a fla and ill see what i can do mate

mpelland
January 13th, 2006, 01:15 PM
embed the font

HecticMedia
January 14th, 2006, 12:04 AM
Hey I embedded and nothing.. here's the FLA:

http://www.spikestrip.net/news.fla

HecticMedia
January 15th, 2006, 12:35 PM
bump