Results 1 to 12 of 12
Thread: Bigger text than 72pt
-
July 18th, 2010, 01:41 PM #1159Registered User
postsBigger text than 72pt
Hi guys,
I've made this code:
I've seen aroud the web flash websites with text bigger than the max flash dimension of 72 pt. How can i make that? I've tried with the code above but it seems that flash set the text size to 72....please help me!!!Code:var txt:TextField = new TextField(); var frmt:TextFormat = new TextFormat(); txt.autoSize = TextFieldAutoSize.LEFT; frmt.font = "Arial"; frmt.size = 800; frmt.color = 0xFF00FF; txt.defaultTextFormat = frmt; txt.text = "TRY WITH THIS";
-
July 18th, 2010, 02:17 PM #2
try htmlText ....
http://help.adobe.com/en_US/AS3LCR/F....html#htmlTextCode:var t:TextField = new TextField() t.textColor=0; t.htmlText = '<FONT SIZE="72">Lorem ipsum dolor sit amet.</FONT>'; t.height=t.textHeight; t.width=t.textWidth; addChild(t); var u:TextField = new TextField() u.textColor=1343456; u.y=150; u.htmlText = '<FONT SIZE="160">Lorem ipsum dolor sit amet.</FONT>'; u.height=u.textHeight; u.width=u.textWidth; addChild(u);
Last edited by Shaedo; July 18th, 2010 at 02:21 PM.
-
July 18th, 2010, 02:42 PM #3159Registered User
posts
-
July 18th, 2010, 03:02 PM #4
Seems the limit is 96pt for all flash text. Can't even add it to a container and stretch that; you just seem to get a bigger text box... Sorry short of 'breaking it apart' (turn it into a vectored graphic) I don't know a solution
. hopefully someone else will 
Just for the record it would be easy enough to send it to PHP, have php turn the text into a graphic and then send the graphic back to flash. Of course that would be wrong for so many ways
Last edited by Shaedo; July 18th, 2010 at 03:26 PM.
-
July 18th, 2010, 04:55 PM #5159Registered User
postsOf course for a preload like this http://116.ufc.com/ the php method is not good
.
When I've see this i want to reproduce this preload but the first problem is for sure the font size. Because of this i've written this topic.
-
July 19th, 2010, 09:54 AM #6159Registered User
postsno one?
-
July 19th, 2010, 10:18 AM #7280Registered User
postsDunno if this would help you, by turning the Text into a Bitmap, and scaling the Bitmap to become larger.
txt is my textField, and it is at 72pt sitting on the stage. Then I make it a bitmap and scale it up.
Code:var bitmapData:BitmapData = new BitmapData(txt.width, txt.height, true, 0x00000000); bitmapData.draw(txt); var bitmap:Bitmap = new Bitmap(); bitmap.bitmapData = bitmapData; bitmap.smoothing = true; addChild(bitmap); bitmap.scaleX = 5; bitmap.scaleY = 5;
Last edited by jany; July 19th, 2010 at 10:25 AM.
-
July 19th, 2010, 04:02 PM #8159Registered User
postsI've tried with this and all works ok

code:
Code:var txt:TextField = new TextField(); var frmt:TextFormat = new TextFormat(); txt.autoSize = TextFieldAutoSize.LEFT; frmt.font = "Arial"; frmt.size = 800; frmt.color = 0xFF00FF; txt.defaultTextFormat = frmt; txt.text = "TRY WITH THIS"; var textHolder:Sprite = new Sprite(); textHolder.addChild(txt); textHolder.scaleX = 10; textHolder.scaleY = 10; addChild(textHolder);
-
July 19th, 2010, 04:28 PM #9280Registered User
postsGreat!

-
July 19th, 2010, 04:30 PM #10159Registered User
posts
-
July 19th, 2010, 04:49 PM #11
oh I swear I tried that and it did not work for me; apparently adding the TextFormat is essential to allow it to be stretched. Excellent that it worked for you!
Just as a final note now you have a solution; the UFC preloader came up in forum question about a year ago and as I remember it someone apparently stripped it out and found that they were using sprites of numbers rather than text.Last edited by Shaedo; July 19th, 2010 at 04:53 PM.
-
July 19th, 2010, 05:19 PM #12159Registered User
posts

Reply With Quote


Bookmarks