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
Thank you again.
I gave an linkageID by right click > properties. Then I dragged it on to the stage and gave an instance name. All updates take effect inside this mc.
then I used ScrollPane.contentPath ="linkageIDname"
it doesn't show the updates though?
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.
I did this; but did not show the updated version. What went wrong?
sp.contentPath = "sp_tapeCon";
var sp_tapeCon:MovieClip = sp.content;
on frame 11 of StudentsAttendance_mc, you should have:
then on the parent timeline you should have
inside StudentsAttendance_mc on frame 11
On the main timeline
sp.setStyle("backgroundColor" , "transparent");
sp.setStyle("borderStyle" , "none");
The scrollPane is empty.?
use the trace function to debug:
trace(this._parent.getNextHighestDepth()); // if that's undefined, you're not publishing for fp less than 8. either change or manually control depths.