Skip to content

Instantly share code, notes, and snippets.

@EduardoLopes
Last active August 29, 2015 14:20
Show Gist options
  • Select an option

  • Save EduardoLopes/f8a57c59af65cdae3c30 to your computer and use it in GitHub Desktop.

Select an option

Save EduardoLopes/f8a57c59af65cdae3c30 to your computer and use it in GitHub Desktop.
FlxGroup and FlxTypedGroup '-dce full' "bug"!

Nape only works if we enable -dce full! i guess this is a linux only issue! openfl/openfl#158

-dce full affect all the classes used in the project, if you don't want some class to be affected, you need to use the keep method!

What was happening is: the class i wanted to use with FlxTypedGroup was not being instantiated with new! so, i guess, the 'dce' thought that it was not being used and remove it, passing a null type to the FlxTypedGroup recycle method!

I fixed it adding the class i want to use with FlxTypedGroup to the keep method!

Yeah, a lot of time to figure out this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment