Skip to main content
November 8, 2019
Question

Package alias

  • November 8, 2019
  • 0 replies
  • 99 views

Is not there a way to do this in ActionScript?

 

 

namespace ns = 'flash.display'
appendChild(new ns::Sprite)

 

 

I'd use it for readability or avoiding name confusion. I mean, I could fully type `flash.display.Sprite`, but it'd be worser.

 

Isn't there a ASC 2 fork that recognises package name with namespace constant string?

This topic has been closed for replies.