?
Solved

flash cs6

Posted on 2014-04-16
4
Medium Priority
?
373 Views
Last Modified: 2014-04-16
Flash Action Script:

_root.getCurrentText(thisText0, 0);
_root.getCurrentText(thisText1, 1);
_root.getCurrentText(thisText2, 2);
_root.getCurrentText(thisText3, 3);
_root.getCurrentText(thisText4, 4);
_root.getCurrentText(thisText5, 5);
_root.getCurrentText(thisText6, 6);
_root.getCurrentText(thisText7, 7);
_root.getCurrentText(thisText8, 8);
_root.getCurrentText(thisText9, 9);
_root.getCurrentText(thisText10, 10);
_root.getCurrentText(thisText11, 11);
var format1:TextFormat = new TextFormat();
format1.letterSpacing = 0;

var format2:TextFormat = new TextFormat();
format2.letterSpacing = 0;


thisText0.setTextFormat(0, 10000, format1);
thisText1.setTextFormat(0, 10000, format1);
thisText2.setTextFormat(0, 10000, format2);
thisText3.setTextFormat(0, 10000, format1);
thisText4.setTextFormat(0, 10000, format1);
thisText5.setTextFormat(0, 10000, format1);
thisText6.setTextFormat(0, 10000, format1);
thisText7.setTextFormat(0, 10000, format1);
thisText8.setTextFormat(0, 10000, format1);
thisText9.setTextFormat(0, 10000, format1);
thisText10.setTextFormat(0, 10000, format1);
thisText11.setTextFormat(0, 10000, format1);

Re. the script:
My question is relativvely simple
I need to be able to define a text size for format1 and format2
0
Comment
Question by:doctorbill
  • 3
4 Comments
 
LVL 19

Accepted Solution

by:
quizengine earned 2000 total points
ID: 40004765
Have a look at the thread at http://www.dreamincode.net/forums/topic/20199-font-size-in-a-dynamic-text-box/

The third post - including the line of code...

txt_fmt.size = 24;

Any good to you?
0
 

Author Comment

by:doctorbill
ID: 40004802
Adding this to my code does not have any effect at all
0
 

Author Comment

by:doctorbill
ID: 40005172
Managed to sort it:

var format2:TextFormat = new TextFormat();
format2.letterSpacing = 0;
format2.size = 12;
format2.color = 0xFFFF00;
format2.font = "Tahoma";
0
 

Author Closing Comment

by:doctorbill
ID: 40005177
solution
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question