I just mentioned the same thing in response to your other thread.

Defaulting to null (where appropriate) would help, I think. However, later
assignments can still cause a variable to be set to undefined in JS but
null in SWF. That could be considered a separate issue, but it's definitely
related.

- Josh

On Jun 2, 2017 6:55 PM, "Justin Mclean" <jus...@classsoftware.com> wrote:

> Hi,
>
> This code:
>
> private var a:Object;
>
> protected function init():void
> {
>     trace(a);
> }
>
> When init() is called with display “null” in when run the FlashPlayer and
> display “undefined” when compiled into JS and run in a browser.
>
> How should we fix this?
>
> Thanks,
> Justin

Reply via email to