What I said before still holds. The way I've done this before is to have a movieclip for menu items. I would create a menuItem class for this mc to manage the display of images and text for the menu item. Then I would have a menu mc and I'd create a menu class. The menu mc would add and position a menuItem mc for each product item. The menu mc is the one I'd get the scrollpane to add. When it finished adding all menu items it could dispatch an event to redraw the scrollpane component.
If the menu is quite simple (i.e categories with products and no images) you might want to consider using the tree component. Bill Lane >>> [EMAIL PROTECTED] 03/30/05 3:26 pm >>> I'm creating a website that displays the companies entire product list and im generating new movieclips for each of the categories. I was hoping to display these movieclips inside the scrollPane component instead of creating my own. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bill Lane Sent: Wednesday, 30 March 2005 10:26 AM To: Flash Developers List Subject: [fugli] Re: ScrollPane component 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/ --- 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/
