flash 8 labels font size

why does the following not work, where d is a label

var myTextFormat:TextFormat = new TextFormat();
myTextFormat.size = 228;

d.setStyle("textFormat", myTextFormat); 		
jockmahon01Asked:
Who is Participating?
 
CyanBlueConnect With a Mentor Commented:
You should use setTextFormat call instead of the setStyle call...
   d.setTextFormat(myTextFormat);

So, this should be the correct code for it...
var myTextFormat:TextFormat = new TextFormat();
myTextFormat.size = 128;

d.autoSize = true;
d.setTextFormat(myTextFormat);

Open in new window


CyanBlue
0
 
deepanjandasCommented:
Flash8 is almost out of memory. :) Can you pls share your fla?

Warm Regards
Deepanjan Das
0
 
jockmahon01Author Commented:
its really nothing more than a label called d with some text
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

 
CyanBlueCommented:
128 is the max size for the textField size when you are sizing it with ActionScript...  Your only option is to scale it 200% to get to what's similar to 256 size text...

CyanBlue
0
 
jockmahon01Author Commented:
this still does not work if i use the text size value as 128
0
 
jockmahon01Author Commented:
i am using the text tool not a component
0
 
jockmahon01Author Commented:
i have seen this work by destroying the text and recreating it after the size has changed but that is not an option here
0
 
CyanBlueCommented:
Can you upload a simple sample FLA file(not the whole project) that shows the problem???

CyanBlue
0
 
jockmahon01Author Commented:
0
 
jockmahon01Author Commented:
u ledge, that worked great. I did actually have a label but i just took the type casting off and flash figured it out
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.