7 Replies Latest reply on Feb 24, 2017 5:58 AM by aewu

    Problem dynamically adding from Library

    aewu Level 1


      I am using canvas and have a MovieClip in my library called sliderBtn. I am trying to import it to the stage using the following code, but this only works if I actually put the element on the stage. I would like to be able to add it by using code, if possible. This seems like something pretty simple. Is it possible to import an MC from the library as in AS3?


      sliderBtn = new lib.sliderBtn();


      sliderBtn.x = 200;

      sliderBtn.y = 200;