Instantiate an object and add it to display list and give it a name all in one go


/ Published in: ActionScript 3



Copy this code and paste it in your HTML
  1. addChild(new CustomLibraryClass()).name = "myMovie";

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.