Highlighted

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

32

Likes

Translate

Translate

Report

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

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

33

Likes

Translate

Translate

Report

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

Have something to add?

Join the conversation