Random flashing white pixel at bottom of insert / carriage point in TextField? (Flash / AS3)

I am using FlashDevelop and Flash Player 11.7 (NPAPI version).

Basically I see a random white pixel at the bottom of the insertion / cursor / text cursor that appears when the TextField has focus. It blinks constantly when the text cursor blinks, but at different intervals. It drives me crazy.

Here I managed to get a screen capture after several attempts:

Screen grab

Why is he doing this and what should I do to disable it?

this._textField = new TextField(); this._textField.defaultTextFormat = new TextFormat("FleftexYC", 8, 0x000000, true); this._textField.embedFonts = true; this._textField.height = 13; this._textField.type = TextFieldType.INPUT; this._textField.x = 9; this._textField.y = 7; 

FleftexYC is a regular / inline font, but that is not a problem. This still happens with system fonts such as Arial.

Any thoughts?

[EDIT] : confirmed at 11.8. However, in Internet Explorer, the pixel is black, not white.

[EDIT] I use Windows 7, but I'm not sure if this also happens on Mac computers. This does not happen in the Flash version of Google Chrome PPAPI, but it happens in the NPAPI version and Internet Explorer version.

[EDIT] In addition to Internet Explorer, it looks like Mozilla Firefox also shows a flickering black pixel instead of white.

+7
flash actionscript-3 textfield flashdevelop
source share
4 answers

I can't reproduce your error, but maybe setting .cacheAsBitmap in the text box will help. This will slow it down a bit, but you should try it yourself.

0
source share

If you did not publish your HTML file from flash memory, try copying all the publishing code on your page.

0
source share

I built a test class that isolates the problem as described, and the problem does not reproduce. You should be able to create a new project in flash development and test it in any browser and see that the problem is not caused by any code that you show above.

This may be caused by some other part of your program, for example, when you assign the value "test" and set the selection. But you can eliminate some possible causes by doing this.

If this code is running on your computer, the problem is that your flash version is corrupted. Uninstall and reinstall should be fixed, or is there some other unique aspect of this machine that makes the flash compile in a non-standard way. (but for what it's worth it is unlikely)

Another possibility is the browser. Are you sure your browser is set to 0? It also seems unlikely. Are you using another API like stage3D? Custom anti alias?

Here is my class:

  package { import flash.display.Sprite; import flash.events.Event; import flash.text.TextField; import flash.text.TextFieldType; import flash.text.TextFormat; /** * ... * @author Zachary Foley */ public class Main extends Sprite { //[Embed(source='C:/WINDOWS/Fonts/verdana.ttf', fontFamily="Verdana", fontWeight="regular", embedAsCFF="false")] [Embed(source='C:/WINDOWS/Fonts/arial.ttf', fontFamily="Verdana", fontWeight="regular", embedAsCFF="false")] public var Verdana:Class; private var mytextfield:TextField = new TextField(); private var mytextformat:TextFormat = new TextFormat(); private var _textField:TextField; public function Main():void { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function init(e:Event = null):void { removeEventListener(Event.ADDED_TO_STAGE, init); // entry point this._textField = new TextField(); this._textField.defaultTextFormat = new TextFormat("Verdana", 8, 0x000000, true); this._textField.embedFonts = true; this._textField.height = 13; this._textField.type = TextFieldType.INPUT; this._textField.x = 9; this._textField.y = 7; this._textField.text = "Test"; addChild(_textField); } } } 
0
source share

TextFields in Flash is known for having rendering problems as your application becomes more complex. They will be fine, and suddenly everything will change. There is a steep learning curve, but switches to TLF fields. The path is more stable.

0
source share

All Articles