Package alias

New Here ,
Nov 08, 2019

Copy link to clipboard

Copied

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

Views

36

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Have something to add?

Join the conversation