Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FlxInputText Broken on HTML5 + Windows #216

Closed
hqkirkland opened this issue Sep 27, 2018 · 1 comment
Closed

FlxInputText Broken on HTML5 + Windows #216

hqkirkland opened this issue Sep 27, 2018 · 1 comment

Comments

@hqkirkland
Copy link

  • Haxe version: 3.4.7
  • Flixel version: 4.5.1
  • OpenFL version: 8.5.0
  • Lime version: 7.1.0
  • Affected targets: HTML5, Windows

Code snippet reproducing the issue:

package;

import flixel.FlxState;
import flixel.addons.ui.FlxInputText;

class PlayState extends FlxState
{
	override public function create():Void
	{
		var tf:FlxInputText = new FlxInputText(50, 100, 300);
		tf.borderColor = 0xFFFFFFFF;
		tf.x = 50;
		tf.y = 200;
		tf.width = 300;
		tf.height = 15;
		tf.caretWidth = 5;
		tf.callback = speakUp;
		add(tf);
	}
}

Observed behavior:

Stage.hx:1843 Uncaught TypeError: Cannot read property 'bitmap' of null
    at flixel_graphics_tile_FlxDrawQuadsItem.render (FlxDrawQuadsItem.hx:130)
    at flixel_FlxCamera.render (FlxCamera.hx:616)
    at flixel_FlxGame.draw (FlxGame.hx:858)
    at flixel_FlxGame.onEnterFrame (FlxGame.hx:551)
    at openfl_events__$EventDispatcher_Listener.f [as callback] (Object.hx:84)
    at openfl_display_Stage.__dispatchEvent (EventDispatcher.hx:443)
    at openfl_display_Stage.__dispatch (DisplayObject.hx:1235)
    at openfl_display_Stage.__broadcastEvent (Stage.hx:1548)
    at openfl_display_Stage.render (Stage.hx:1398)
    at Array.f (Object.hx:84)

Windows Error:

Null Reference Exception (single line in a message box; using HaxeDevelop so I don't know how to get a stacktrace for that)

Expected behavior:
What's most interesting is that other classes you've created can be referenced in the stacktrace if it's not a completely-blank project. So I'd recommend using the entire code above.

@hqkirkland hqkirkland changed the title FlxInputText Broken on HTML5 FlxInputText Broken on HTML5 + Windows Sep 27, 2018
@Gama11 Gama11 transferred this issue from HaxeFlixel/flixel Jan 22, 2019
@Gama11
Copy link
Member

Gama11 commented Jan 22, 2019

Seems to be the same error as #210.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants