Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ScrollPane.complete to trigger when loading mc

Status
Not open for further replies.

womblies

Programmer
Feb 28, 2003
62
IE
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

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";
can anyone help me with this
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top