I've got a movieClip on stage. (StudentsAttendance_mc) This clip keeps on updating untill frame 10, then in frame 11 I need this movieclip to be seen inside a scrollPane. How do I do this?
I tried creating a empty movieclip (temp_mc) with a linkageID and then used duplicateMovieClip inside temp_mc to see if I can create a duplicate of it and send it to the ScrollPane using contentPath - but no success
correct.
they are not the same instance. ie, your on-stage movieclip is not the same as the one added to your sp.
you'll need to update the sp's instance (using the sp.content property) and you'll need to remove your on-stage instance when you want to make it appear as if you're reparenting the on-stage movieclip.
on frame 11 of StudentsAttendance_mc, you should have:
_parent.addToSP();
this.swapDepths(this._parent.getNextHighestDepth());
this.removeMovieClip();
then on the parent timeline you should have
function addToSP():Void{
sp.contentPath="studentattendancelinkageid";
sp.content.gotoAndStop(11);
}
Thank you.
inside StudentsAttendance_mc on frame 11
_parent.addToSP();
this.swapDepths(this._parent.getNextHighestDepth());
this.removeMovieClip();
On the main timeline
function addToSP():Void{
sp.contentPath="sp_tapeCon";
sp.content.gotoAndStop(11);
sp.setStyle("backgroundColor" , "transparent");
sp.setStyle("borderStyle" , "none");
}
The scrollPane is empty.?
North America
Europe, Middle East and Africa
Asia Pacific