ScrollPane.complete problem
hi, everyone!
we know following example works.
------------------------------------------------------------------------------------------ ----------------
/**
requires:
- scrollpane in library
*/
system.security.allowdomain(" http://www.helpexamples.com");
this.createclassobject(mx.containers.scrollpane, "my_sp", 10);
my_sp.setsize(320, 240);
// create listener object completed loading.
var completelistener:object = new object();
completelistener.complete = function(evt_obj:object) {
trace(evt_obj.target.contentpath + " has completed loading.");
};
// add listener.
my_sp.addeventlistener("complete", completelistener);
my_sp.contentpath = " http://www.helpexamples.com/flash/images/image1.jpg";
------------------------------------------------------------------------------------------ ------------------------------------
but if change,
my_sp.contentpath = "mymovieclipname";
srollpane can show it, scrollpane.complete did nothing! happened?
we know following example works.
------------------------------------------------------------------------------------------ ----------------
/**
requires:
- scrollpane in library
*/
system.security.allowdomain(" http://www.helpexamples.com");
this.createclassobject(mx.containers.scrollpane, "my_sp", 10);
my_sp.setsize(320, 240);
// create listener object completed loading.
var completelistener:object = new object();
completelistener.complete = function(evt_obj:object) {
trace(evt_obj.target.contentpath + " has completed loading.");
};
// add listener.
my_sp.addeventlistener("complete", completelistener);
my_sp.contentpath = " http://www.helpexamples.com/flash/images/image1.jpg";
------------------------------------------------------------------------------------------ ------------------------------------
but if change,
my_sp.contentpath = "mymovieclipname";
srollpane can show it, scrollpane.complete did nothing! happened?
maybe because code trying download content source server , appears trying tell scrollpane load library instead (this mc have have linkeage property - check that).
More discussions in ActionScript 1 and 2
adobe
Comments
Post a Comment