all groups > flash actionscript > march 2006 >
You're in the

flash actionscript

group:

Text_format & Textformat


Text_format & Textformat nz.wise
3/27/2006 10:49:06 PM
flash actionscript:
hi all, I am new to actionscript. Currently, i am doing the project using
actionscript. I have a simple question.

What's the difference between Text_format & Textformat? I found textformat
actually is a class which is the same as java. However, I am confused with
text_format. What is text_format? Is it a class or a data type?

Here is a example

var f = text_format();
f.color = colour || 0xcc0000;

what's the meaning of this?

what is the difference between var f = text_format(); and f= new textformat();

Is there any special meaning for "_" in actionscript?

Can you find some useful tutorials for actionscript?
Re: Text_format & Textformat kglad
3/28/2006 3:18:36 AM
text_format() means nothing unless you define a function ala

likewise,

f= new textformat();

means nothing unless you define a textformat() class.

flash has pre-built TextFormat() class, but case is critical:

f=new TextFormat();

creates a textformat object.

the underscore has no special meaning in flash except it's part of many
reserved flash objects and properties.



function text_format(){
// whatever
}
AddThis Social Bookmark Button