ActionScript 3.0 :: Why Does Text Disappear When Highlighting Text

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


Similar Posts:


ActionScript 2.0 :: Highlighting Specific Areas Of Text In A Dynamic Text Box?

Oct 20, 2007

I'm currently trying to work out a method to highlight specific areas of text within a dynamic text field at runtime. The method I've been toying with so far has been the use of CSS highlighting, but have not seemed to have any luck thusfar. What I'm attempting to do is to illustrate, to students, sections within a passage of text pertaining to correct methods of source referencing (source in terms of bibilographical references), and so am essentially trying to change the background colour of sections of text specified at runtime.Here's some code I've thrown together to test the CSS theory:

PHP Code:
var highlightstyle = 'span.highlight { background-color:yellow }';var txt = '<p><span class="highlight">highlighted text</span> no highlighted text<span class="highl

[code]....

View 2 Replies

Professional :: Applying Text Format To ComboBox Makes TextField Text Disappear?

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

ActionScript 2.0 :: EmbedFonts Makes Text Disappear - Dynamic Text Vertical Position?

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

Skewed Dynamic Text Box Makes Text Disappear?

Jun 25, 2009

When I skew a dynamic text box, the resident text disappears.

View 1 Replies

ActionScript 2.0 :: Make The Text Already In The Input Text Box Disappear?

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

Professional :: Highlighting Text With Audio?

Aug 1, 2011

I want to use it for what seems like a fairly simple application, but I am having a terrible time finding any tutorials that address this specific need. I've been through basic "how to us Flash CS5" training but I'm having trouble making the connection between the skills taught and what I'm trying to accomplish.
 
I have a static paragraph of text - black on a plain white background. I would like each sentence to highlight with a yellow box behind it as the audio for that sentence is read. I would like a user to be able to hear the entire passage, but also be able to click on individual sentences and hear them separately.

View 1 Replies

ActionScript 2.0 :: Text Not Highlighting When You Drag On It?

Aug 20, 2010

I have some input boxes and when I type some text and then try to highlight the text by dragging the mouse across the text... the text is not highlighting.It is actually highlighting it .. but the highlight color is invisible. Doesnt show at all

View 1 Replies

AS 2.0 :: Character Highlighting In Input Text Field?

Jul 1, 2009

how can I turn every specific word in a textbox to specific color? this works like highlighting if I have the word Jeeves in TextField object, I would like each occurrence of Jeeves in this TextFIeld to become red or any other color In AS2 i had to search the text for keywords and use the TextFormat class. and then handle keypresses for the textbox for highlighting as the user is typing.

View 4 Replies

ActionScript 1/2 :: Synchronizing The Sound With Highlighting Text?

Sep 26, 2009

How could I synchronize the highlighting text mechanism with the audio.

View 3 Replies

ActionScript 3.0 :: Why Does Highlighting The Text In Textfield Cause The Format To Change

Nov 20, 2009

The movie I am working on has a dynamic text field which I setup and format in the constructor of the ActionScript 3.0 class code for the movie - I am working with CS3 Flash. I do not reformat the text field anywhere in the code after the constructor.The text displays in the text field perfectly as long as I do not highlight the text when running the movie.
 
If I highlight the text in the text box as if I were going to copy and paste, the next time text is written to the text field the font type and size changes. The only way to reset the font formatting is to restart the movie.
 
Is there a solution or workaround? Of course I can reformat the text everytime I write new text to the textfield, but during the course of the movie text is rewritten to the textfield many times.

View 10 Replies

ActionScript 3.0 :: Disable Inputbox Text Highlighting/selection?

Feb 25, 2010

is there anyways I can disable people from highlighting/selection the  text inside an Input Box? I have tried the 3 buttons next to the "Single Line" dropdown but none  of them work.Is there a as3 code I need to put so people cannot highlight/select the text  inside a input box for example in a form?

View 1 Replies

ActionScript 2.0 :: Make The Initial Text In An Input Text Box Disappear Once Cursor Changes From The Arrow To The Type Cursor?

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

Professional :: Text In A Testfied Disappear After Say 5 Sec?

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

ActionScript 2.0 :: Mask Disappear My Text

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

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

Professional :: Text Disappear In IE, But Visible In Other Browsers

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

ActionScript 3.0 :: How To Hide / Disappear Text / Words

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

Actionscript 3 :: Text Disappear When I Change Property

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

ActionScript 2.0 :: Text Disappear On Mouse Over With Effect?

Jun 9, 2005

How can text disappear on mouse over with effect like in the about section of the following site?

View 14 Replies

ActionScript 3.0 :: Rotating Container Makes Text Disappear

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

ActionScript 3.0 :: .embedFonts = True  Causing Text To Disappear?

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

Professional :: FLA File Causing Text And Window To Disappear

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

ActionScript 3.0 :: Default Text Disappear OnClick Of InputText

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

Actionscript 3.0 :: Mask Making Dynamic Mc/text Disappear

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

ActionScript 3.0 :: Default Text Disappear Onclick Of InputText?

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

ActionScript 3.0 :: Extra Spaces Disappear When Importing Text/xml?

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

ActionScript 2.0 :: Embedded Fonts Making Text Disappear

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

ActionScript 3.0 :: Making Dynamic Text Fields Disappear When Different Value Is Added?

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

ActionScript 2.0 :: Text Disappear When It's Loaded As An External Swf Into The Main File?

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







Copyrights 2005-15 www.BigResource.com, All rights reserved