Solved

flash cs6

Posted on 2014-04-16
4
334 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 500 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
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 select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

760 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now