Solved

flash cs6

Posted on 2014-04-16
4
349 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

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

Suggested Solutions

Title # Comments Views Activity
Microsoft WSUS 4 110
How to convert pdf file to html file 8 412
EMET 5.2 / Adobe Flash 2 252
Can't enable Flash on Chrome 32 Windows 7 any more 2 48
Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
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.

733 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