Hi.
I’m in the rather crippling early stages of learning actionscript. I’ve picked up the chunks I’ve used regularly enough to understand the function of, but I don’t necessarily understand *why *something works or doesn’t. Perhaps you could liken it to the screams of a baby, as yet unsure *why *a certain sound has a certain effect, like the swift approach of milk, but using it anyway, because it wants the milk.
So what’s the milk? Obviously, the milk is getting a rotated dynamic text field to display text retrieved from an external text file. Yeah!
So working late into the night chopping up and recombining the pieces of code available for either seperate task, I’ve come up with this:
stop();
loadText = new LoadVars();
loadText.onData = function(src:String) {
if(src != undefined){
my_txt.text = src;
}
else{
trace(“Woops, didn’t load”);
}
}
var my_fmt:TextFormat = new TextFormat();
my_fmt.font = “verd”;
this.createTextField(“my_txt”, this.getNextHighestDepth(), 10, 10, 160, 120);
my_txt.wordWrap = true;
my_txt.embedFonts = true;
//If this text is what we see then something didn’t happen correctly.
my_txt.text = “Not Loaded”;
my_txt.setTextFormat(my_fmt);
my_txt._rotation = 45;
//Now that everything is set up, load our text
loadText.load(“one.txt”);
And now its 6am, and I’ve convinced a client everything will be fine by this afternoon, and it nearly is, and oh please help I’d really appreciate it. :panda:
N