Solved

flash cs6

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…

816 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

8 Experts available now in Live!

Get 1:1 Help Now