duplicate is not working
I am facing issue while creating duplicate. Please guide me how to solve it. how i will work is, i will convert the .fla to canvas and save it as .xfl . in the code snippet i used to do write code.
Now i am trying to duplicate one movie clip. i can see the duplicated movieclip in in console.log but i am unable to see that in stage. here i will paste code
/////////////////////These lines in this.frame_0 block are added using code snippet. in the canvas file. outside the blocks are auto generated by animate when i tried control->Test.
| // timeline functions: |
this.frame_0 = function() {
| this.f_optionArea1 | = this.f_optionArea.clone(this); | ||
| this.f_optionArea1.parent = | this; | ||
| this.f_optionArea1.setTransform(15,55); |
this.timeline.addTween(cjs.Tween.get(this.f_optionArea1).wait(1)); ///////i tried with this line and tried without this, both are not working
}
// actions tween:
this.timeline.addTween(cjs.Tween.get(this).call(this.frame_0).wait(1));
| // Answers |
this.f_optionArea = new lib.netlmflashplayercomponentsCaseStudyAnswer();
this.f_optionArea.parent = this;
this.f_optionArea.setTransform(0,10);
this.f_optionArea.cache(-2,-3,919,27);
this.timeline.addTween(cjs.Tween.get(this.f_optionArea).wait(1));
