In your example test_mc is a movieclip instance but contentPath requires
a linkage_ID.  I would usually have a mc in the library with it's own
class defined to perform whatever job you need it to perform.  What do
you need the scrollpane content to do?

Bill Lane

>>> [EMAIL PROTECTED] 03/30/05 10:17 am >>>
Can I do something like this within my Class

var test_mc = this.createEmptyMovieClip('test', 2);
var sp1 = this.createClassObject(//);
sp1.contentPath = "test_mc";

When I do it doesn't find the mc in the library
So it assumes it's a relative link

I guess what im asking is there a workaround to load mc's I create in
Actionscript as the content for the ScrollPane

-----Original Message-----
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Bill Lane
Sent: Wednesday, 30 March 2005 9:47 AM
To: Flash Developers List
Subject: [fugli] Re: ScrollPane component

To load mc's at runtime you set the scrollpane's contentPath.  It
accepts the url of a swf or jpeg OR the liinkage_ID of a mc.

sp1.contentPath = "test_mc";

Bill Lane

>>> [EMAIL PROTECTED] 03/29/05 5:52 pm >>>
Can I load mc's created at runtime into the ScrollPane component?


---
You are currently subscribed to fugli as: [EMAIL PROTECTED] 
To unsubscribe send a blank email to
[EMAIL PROTECTED] 
Aussie Macromedia Developers: http://lists.daemon.com.au/ 

---
You are currently subscribed to fugli as: [EMAIL PROTECTED] 
To unsubscribe send a blank email to
[EMAIL PROTECTED] 
Aussie Macromedia Developers: http://lists.daemon.com.au/ 


---
You are currently subscribed to fugli as: [EMAIL PROTECTED] 
To unsubscribe send a blank email to
[EMAIL PROTECTED] 
Aussie Macromedia Developers: http://lists.daemon.com.au/

---
You are currently subscribed to fugli as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to