thanks Scott64,
let me be more specific, i have an fla with a text field on stage called loginTxt1. In the actions on a frame i have the follwoing code
Code:
stop();
var loginTxt1:TextField;
var formatText:TextFormatClass = new TextFormatClass();
formatText.setHeadingFormat1(loginTxt1);
in the .as file i have the following code:
Code:
package com.name.classes.textClasses
{
import flash.text.TextFormat;
import flash.text.TextField;
import flash.display.MovieClip;
public class TextFormatClass extends MovieClip
{
var headingFormat1:TextFormat = new TextFormat();
public function TextFormatClass ()
{
}
public function setHeadingFormat1 (t:TextField) :void
{
headingFormat1.font = "Arial Black";
headingFormat1.size = 14;
headingFormat1.bold = true;
headingFormat1.color = 0x21B27F;
trace("hello");
t.setTextFormat.headingFormat1;
}
}
}
i want to set several text formats in the as file and assign them to textfields in the fla - but i am stumped as to how!
my class document path thingy maybe wrong.. im new to all this.
any help really appreciated!!!