i have a scroll pane that loads a moveClip from the library and i want to use the complete fuction to call another function from within that movieClip.
i know complete will work if the contentPath is a swf but not if it is a movieClip
can anyone help me with this
i know complete will work if the contentPath is a swf but not if it is a movieClip
Code:
createClassObject(mx.containers.ScrollPane, "scrollPane", 0);
loadListener = new Object();
loadListener.progress = function(eventObj){
trace("item has loaded " + scrollPane.getBytesLoaded() );
}
form = new Object();
form.complete = function(eventObj){
trace("item has loaded " + scrollPane.getBytesLoaded());
}
scrollPane.addEventListener("complete", form);
scrollPane.addEventListener("progess", loadListener);
scrollPane.contentPath = "item";