flixel-addons
flixel-addons copied to clipboard
Port FlxScrollZone plugin
(HaxeFlixel 4.0.0) I've ported this to Haxe and it works alright in html5 and flash. In Windows/Neko I'm getting this error when starting the game (it closes afterwards):
Invalid field access : __handle Called from openfl._legacy.display.BitmapData::copyPixels line 118 Called from flixel.addons.plugin.FlxScrollZone::createZone line 93 Called from flixel.addons.plugin.FlxScrollZone::add line 78 Called from MenuState::create line 28 Called from flixel.FlxGame::switchState line 621 Called from flixel.FlxGame::create line 334 Called from openfl._legacy.events.EventDispatcher::dispatchEvent line 98 Called from openfl._legacy.display.DisplayObject::__dispatchEvent line 182 Called from openfl._legacy.display.DisplayObject::dispatchEvent line 70 Called from openfl._legacy.display.DisplayObject::__onAdded line 362 Called from openfl._legacy.display.DisplayObjectContainer::__onAdded line 379 Called from openfl._legacy.display.DisplayObject::__setParent line 423 Called from openfl._legacy.display.DisplayObjectContainer::addChild line 31 Called from Main::new line 11 Called from DocumentClass::new line 217 Called from DocumentClass::$init line 217 Called from Type::createInstance line 108 Called from ApplicationMain::main line 119 Called from openfl._legacy.Lib::create line 122
I'm not expert at OpenFL (I'm learning), but the legacy renderer has some shortcomings around, I'd think it has to do something with implementing a missing function. I'd appreciate some help here ;-)
@chiguire Does this still happen with recent OpenFL versions?
I'm not sure, it's been a while since I reported this and I have moved on since. I could try to reproduce it with latest and get back at you.