ActionScript 2.0 :: EmbedFont Causes Text To Disappear?
Oct 15, 2008
I've been having this problem for a long time and i still cannot resolve it, before I've just found ways aroound it, if I have dynamically loaded text deom an XML document and I want to use a Font from my own library, I can't because when i go to use the embedFonts statement it disappears, the everything else works fine, as long as i don't use that command. I have set up the Font in the library, given it my own instance name but it will not work. ?
Code:
target.createEmptyMovieClip("holderMain",target.getNextHighestDepth);
target.holderMain.createTextField("my_txt",2,0,110,345,120)
[code].....
View 2 Replies
Similar Posts:
Jun 24, 2009
when i set embedFonts to true, the textfield cant be seen on stage. but when i set it to false, it appears on stage. whats going on?
Code:
var newTextField:TextField = new TextField();
newTextField.text = "Hello Ayumilove";
newTextField.alpha = 0.5;
newTextField.embedFonts = true;
addChild(newTextField);
View 6 Replies
Oct 25, 2010
When applying text formatting to a comboBox, the text formatting appears perfectly on the dropdown menu items but the textField text disappears.Removing the text formatting from the textField makes the textField text reappear but of course there is no text formatting.
Is there a trick to this.
View 9 Replies
Aug 7, 2003
I have the following code:
Code:
this.createTextField ("imageText",2,95,0,390,96);
imageText.multiline = true;
imageText.wordWrap = true;[code].....
The problem:If I uncomment either of the imageText.embedFonts lines, my text will disappear... but the trace(imageText.text); will still return the correct contents. It's as though embedFonts causes the textField to disappear.Possibly related, (but maybe not), is the fact that the vertical positioning of the font is off. Even though I create the textField at Y = 0, the text writes somewhere around Y = 10. I suspect this is something else, but I thought I'd add it just in case.
View 3 Replies
Jun 25, 2009
When I skew a dynamic text box, the resident text disappears.
View 1 Replies
Apr 9, 2003
how to make the text already in the input text box disappear when you click on it.
For example:
|enter email| - this is loaded when the page is loaded
|_________| - then disappears when you click to type
: : I thought it would be very simple, but i guess not : :
View 9 Replies
Feb 8, 2012
I created a little flash header for my works website, a demo can be viewed by visiting [URL]
I noticed that if you highlight the text with your mouse multiple times really fast, the text will sometimes dissapear. whats up with that?
You have to be fast in order to initiate this bug, click and highlight and do it multiple times really fast.
They are dynamic textfields of type TextField.
View 5 Replies
Feb 1, 2010
how i can have a text in a testfied disappear after say 5 sec or so. the thing is i have displayed a file for visiters to download and have handled the SELECT EVENT, CANCEL EVENT, PROGRESS EVENT COMPLETE EVENT AND IOERROR EVENT OF THE FILE REFERENCE in one dynamic text field which is all working alright but the last message stays in the text field which is what i want to get rid of after a few seconds.
I tried to use transitions and timer to do it but i can't get my head round it.
[Code]...
View 4 Replies
Apr 18, 2008
I was planning on making a scrollable blog thing within a mask. But when I setMask, the text in the blog items disappears.
View 2 Replies
Dec 7, 2005
does anyone know how to make the initial text in an input text box disappear once your cursor changes from the arrow to the type cursor? For example, I have an input text box which has the text visible saying "enter your email address here" I want this text to disappear automatically when the user goes to type something there...
View 3 Replies
Aug 12, 2010
All text (including dynamic and static text boxes) disappear while previewing in IE (IE8, IE7) but visible in other browsers (Firefox, Opera, Chrome). The movie URL [URL].
View 3 Replies
Dec 18, 2011
My input text already has words in them. When i click on it, i want all the words to disappear. How do i do it?
View 3 Replies
Oct 28, 2011
I have a dynamic textfield which seems normal with the text I set by Flash IDE, but it disappears when I change it's text property, programmatically.Except if I set the textfield to use no anti-aliasing (Bitmap text [no anti-alias]);
I don't know why that's happening, maybe it's because the font I'm using, (it's the Helvetica Neue, Black Condensed) or it is some Flash CS5 Bug.[code]...
View 2 Replies
Jun 9, 2005
How can text disappear on mouse over with effect like in the about section of the following site?
View 14 Replies
Aug 7, 2008
I am trying to apply a transition to one of my forms. It seems like everything works fine except for the text disappears when I apply transitions like rotating.
I did a google search and saw that I have to embed fonts but I wasn't able to get it working.
I tried:
Code:
var myFormat = new TextFormat();
myFormat.font = myEmbeddedFont.fontName;
myFormat.size = 12; // the same size as the embedded font
[Code].....
View 9 Replies
Sep 22, 2009
Why would this happen?
I've added Helvetica to my Library. I've set it to export for Actionscript. I've given it the name 'Helvetica'. I'm setting the defaultTextFormat. Then I tell it to embedFonts, and the bloody textfield doesn't show up.
var tf:TextField = new TextField();
tf.defaultTextFormat = new TextFormat('Helvetica Neue', 13, 0xFFFFFF);
tf.embedFonts = true;
View 3 Replies
Mar 24, 2011
I have a FLA file that when I open it and I rollover any title in a palette window all the text in that and every window disappears. For instance the title "Timeline" will vanish. And most of the text in the palette vanishes, for instance all the text in the properties panel disappears like "Position and Size". This does not occur with any of my many other FLA files. I have had some issues with fonts lately. After deleting some bad fonts, my FLA ask me to remap some fonts, which I do. Everything in the FLA appears to be working fine.
View 2 Replies
Feb 21, 2009
I have an InputText field for users to submit information to me. I want to have the text field display some default text (Ex. Type E-Mail Here) and then when the field is clicked, the text will be cleared. After a long time of searching a found a solution that works perfectly....using ActionScript 2.0. Unfortunately my site is in 3.0 therefore I cannot use this code. For the example I want my default text to be "Type E-Mail Here", and the InputText Instance Name will be "inputTxt"
Here is the 2.0 ActionScript Code:
inputTxt.textField = "Type E-Mail Here..."
inputTxt.onSetFocus = function() {
inputTxt.textField = "" };
inputTxt.onKillFocus = function() {
inputTxt.textField = "Type E-Mail Here..."
};
When using this code in AS3, I get the error code "1120: Access of undefined property inputTxt". What do I need to make this code work in AS3?
View 1 Replies
Aug 25, 2009
I have created a list of MC's with dynamic text via xml to create a list of mc Buttons. All works well as I wanted, but as th elist is too long i want to create a scroller for these, anyway when I apply the mask and test this all the text dissappears, they are there as the links all work but the text seems to have turned invisible, want am i doing worng.
I am creating each mc button dynamically like:
var venueBtn:MovieClip = new MovieClip();
var venueTxt:TextField = new TextField();
etc
why the text disappears when appling a mask
View 2 Replies
Feb 21, 2009
I have an InputText field for users to submit information to me. I want to have the text field display some default text (Ex. Type E-Mail Here) and then when the field is clicked, the text will be cleared.After a long time of searching a found a solution that works perfectly....using ActionScript 2.0. Unfortunately my site is in 3.0 therefore I cannot use this code. For the example I want my default text to be "Type E-Mail Here", and the InputText Instance Name will be "inputTxt"
Here is the 2.0 code:
Code:
inputTxt.textField = "Type E-Mail Here..."
inputTxt.onSetFocus = function() {[code]....
When using this code in AS3, I get the error code "1120: Access of undefined property inputTxt". What do I need to make this code work in AS3?
View 3 Replies
Sep 4, 2009
When I import the following XML and put the contents in a dynamic text field the beginning spaces disappear.
View 2 Replies
Oct 1, 2009
In it I have a few text fields on a bar that I use to display some dynamic info. I have had them set with embedded characters (Upper, lower, punctuation, and numbers). One is Verdana 14 and the other is Verdana 10. Everything has been working fine with no problems and then today i go to test the scene and they completely disappear!! I traced them and thier visibility and they seem to be there but they don't show up. When I turn off the font embedding they are visible again. I can't seem to figure out why this is happening.
View 1 Replies
May 20, 2010
I have got working well. when a value less than 18000is added to the rvalue input text, the raterelief_txt message appears. but then if i add a different value over 18000 the raterelief_txt stays and the yousave_txt, pound_txt and results_txt appear as well. what I want is for them to disappear according to the value.
here's my code:
calc_btn.addEventListener(MouseEvent.CLICK, calcClick);
rvalue.border = false;
rvalue.restrict = "0-9";
[code].....
View 2 Replies
Nov 30, 2003
I am using the transition preloader on url]... to load in external swfs (http:url...). I have Spark's calendar component on one of the external swfs. All text appears fine when testing the calendar page itself but the text seems to disappear when it's loaded as an external swf into the main file. Is this a path issue?
View 3 Replies
Jun 16, 2004
I know it exists, but I just can't figure it out. from the site I created, [URL] the login is obviously input text. How can I have the text disappear when the user clicks into the login field?
View 3 Replies
Jun 16, 2004
I know it exists, but I just can't figure it out.from the site I created,[URL]the login is obviously input text.How can I have the text disappear when the user clicks into the login field?
View 3 Replies
Dec 4, 2009
I'll try to be brief. I've built a teleprompter projector file app in Flash CS4 and it works great on PCs & MACs. Only one bug. the program works in three phases: Welcome & instruction screen / Text input screen / Prompter screen.Problem occurs when you first enter prompt screen
basic navigation and functionality includes:
BUTTONS: button to return to INPUT screen, a BEGIN button, a MIRROR text button, and a SAVE prompting position KEYBOARD: SPACE begin prompting, LEFT & RIGHT ARROW increase & decrease font size, UP & DOWN ARROW increase & decrease scrolling speed, HOME returns script to top, PAGE UP & PAGE DOWN moves script by 600 pixels.
MOUSE: MOUSE_WHEEL increases and decreases scrolling speed *(would like to add a ctrlKey modifier to change font size on mouse wheel - another day perhaps)
THE PROBLEM: When you enter the prompt screen and hit PAGE DOWN the script correctly moves down 600 pixels, but does not redraw on the stage. If you then hit PAGE UP it correctly moves up and the text is back on the stage. Hit PAGE DOWN again and it moves but does not render. You can repeat this continuously. I have a Y position reference that shows the Y coordinates of the text field, so I'm confident that the MC is correctly moving, it's just not rendering. If you hit PAGE DOWN and hit BEGIN the text renders in the correct place. Once you start the prompter, you can stop it and use PAGE DOWN and it renders correctly, but if you change the font size larger > 100 and hit PAGE DOWN the font again does not render. Again if you hit BEGIN the font renders correctly in the correct position.
WHAT I THINK: I've been trying to find a way to update or refresh the text field that is being manipulated on PAGE DOWN and font increase; no luck with updateAfterEvent or redraw. I've tried to start and stop the prompter programmatically in one frame at the end of the PAGE DOWN function & font increase.
POSSIBILITIES OR NEW STRATEGY? I'm a media production specialist with a school district in Florida, and I'm hoping to release this app to all our schools and to sourceforge.net. It's a small bug, but I'd rather not have to explain it if I can find a way to fix it. The following code block only contains the functions related to the navigation and prompter text box manipulation.
//Begin button toggle code.Toggle between begin and stop.startBtn.addEventListener(MouseEvent.MOUSE_OVER, startOver);function startOver(e:MouseEvent)[code].....
A Visual Basic & ASP.NET programmer I work with looked at the bug with me, and he believes the error is somehow related to the actual CLICK of the BEGIN button. As I noted earlier, we tried a workaround by using code to start and stop the prompter in one frame after the font size change, but that did not correct the issue. Yet when you physically click begin with the mouse it renders the text.What is it about clicking the mouse that causes the text box to render? Is it a focus issue? Like the keyboard has focus, but when you click BEGIN it returns focus to the text box and it redraws then?
View 2 Replies
May 10, 2011
Im using text fields to display artist, album and song information for tunes that are played in a mp3 player. The text appears fine and with the right information. But when a new song is played the text field from the previous tune does not disappear and the new song information, just sits on top of it.i have attempted to use the remove child to fix this, but couldn't get it working? My code for the play function and the textfields is below,
ActionScript Code:
var myFont = new Font1();
var mySongNameFormat:TextFormat = new TextFormat();
mySongNameFormat.size = 30;[code]...............
View 2 Replies
Feb 13, 2010
I got it to work perfectly on another flash file, but I can't get it to work on this one. The concept is the saem but the application is not, so I can't copy and paste. Anyway, this is the problematic code.
Actionscript Code:[code].........
Clicking this button results in a new Machine Gun being created. However, if you click on one, the others disappear.
View 1 Replies
Feb 20, 2010
Ive been having troubles unloading some external SWFs. I know that in order to totally erase an SWF from the display list and memory I must to rip off all its references. But Ive got this SWF on stage, when the code is executed the SWF is gone for good, but in the second case when Ive got it loaded by pressing the load_intro_button the SWF doesnt go, even knowing that the function is exactly the same (Copy/Paste ) as the first one just under different names. Since Ive erased everything from the URLRequest, listeners, timers, and unload the swf, Why the GC doesn't take care of it as it did in the first case?.
Code:
//First Case
var myIntro:Loader = new Loader();
var myIntroRequest:URLRequest = new URLRequest("intro.swf");
[Code]....
View 4 Replies