Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Package alias

Guest
Nov 08, 2019 Nov 08, 2019

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?

TOPICS
ActionScript
94
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation