Bug Issue: "Stop" block in "when created" will kill all subsequent events


Pages: 1

irock

  • Master Stencyler
  • *
June 26, 2018, 06:18:08 pm
Using the "stop" block inside "when created" will unexpectedly stop other events from ever occurring, because "when created" isn't actually its own function.

The expected behavior is only for code in "when created" following the "stop" block to be disregarded.
Code: [Select]
override public function init()
{

/* ======================== When Creating ========================= */
return;

/* ======================== When Updating ========================= */
addWhenUpdatedListener(null, function(elapsedTime:Float, list:Array<Dynamic>):Void
{
if(wrapper.enabled)
{
trace("this won't print ever");
}
});

}
« Last Edit: June 26, 2018, 06:19:50 pm by irock »


Issue updated by Justin - June 29, 2018, 11:45:31 am
  • Tags added: events


Issue updated by rob1221 - January 18, 2019, 01:07:40 pm
  • Status changed from New to Confirmed


Pages: 1

Details

  • Reported
    June 26, 2018, 06:18:08 pm
  • Updated
    January 18, 2019, 01:07:40 pm

  • View Status
    Public
  • Type
    Bug
  • Status
    Confirmed
  • Priority
    Normal
  • Version
    (none)
  • Fixed in
    (none)
  • Assigned to
    (none)
  • Category
    Design Mode

Tags