Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411492 Posts in 69377 Topics- by 58433 Members - Latest Member: Bohdan_Zoshchenko

April 29, 2024, 07:44:31 AM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsCommunityTownhallForum IssuesArchived subforums (read only)TutorialsMarked text problem
Pages: [1]
Print
Author Topic: Marked text problem  (Read 1828 times)
Sheepolution
Level 2
**



View Profile WWW
« on: October 20, 2011, 02:08:17 AM »



How can I solve this. Also when I start the game it gives the next error:
Fonts must be embedded in any text that can be modified at runtime except for text set to "Use Device Fonts". Connect with the command text > Font. (Not the exact error since I use the Dutch Actionscript).

Just started with Actionscript 3  Roll Eyes

Script:
Code:
function example (event:MouseEvent)
{
Tekst.text="This is the second example - ABCXYZ"
}
« Last Edit: October 20, 2011, 02:14:47 AM by Sheep » Logged

increpare
Guest
« Reply #1 on: October 20, 2011, 04:46:26 AM »

What's the problem? 
Logged
Sheepolution
Level 2
**



View Profile WWW
« Reply #2 on: October 20, 2011, 07:11:52 AM »

What's the problem? 

In the first image, you can see that the text is marked with black. In the second image, the black marking is gone. How do I keep my text getting marked, even though I change it ingame.
Logged

dustin
Level 6
*


View Profile
« Reply #3 on: October 20, 2011, 10:19:48 PM »

Does setting the bg color of the text box have the same effect as trying to keep it always highlighted?  If so that's an easy thing to do.
Logged
Attila0413
Level 1
*



View Profile WWW
« Reply #4 on: October 21, 2011, 05:33:47 AM »

Just to start, if you're using the Flash IDE, you should embed the fonts, in this way:

http://www.attiliocarotenuto.com/flash/144-flash-cs5-how-to-embed-custom-fonts

Now, how are you creating the text field? Directly on a movieclip? Through code?
Logged

Sheepolution
Level 2
**



View Profile WWW
« Reply #5 on: October 21, 2011, 06:18:20 AM »

The first example is already created and placed on a frame. The second text is done by script.
I've embed the font, but it didn't help.
Logged

iopred
Level 0
**


Gutsch


View Profile
« Reply #6 on: November 01, 2011, 05:00:36 PM »

If you don't want the text to be selectable:

textField.selectable = false;
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic