Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 05-11-2007, 04:09 PM   #1
Senior Member
Join Date: Jan 2006
Location: new york
Posts: 361
Talking contentPath ?

Can you use contentPath to attach multiples of a MC from the library that will invoke the scrollPane to hace scroll bars?

At the moment I can attach movieclips but not with contentPath. This causes a problem b/c I would like to take advantage of the scrollPane components ability to - well, scroll!

Last edited by vee; 05-11-2007 at 04:12 PM.
vee is offline   Reply With Quote
Old 05-11-2007, 07:50 PM   #2
Asleep At The Keyboard
mcmcom's Avatar
Join Date: Jun 2004
Location: Toronto, Canada
Posts: 2,528

this thread should explain it for you


(the solution is close to the bottom of the thread)

Adobe Certified Flash 8 Developer
mcmcom is offline   Reply With Quote
Old 05-12-2007, 01:46 AM   #3
Senior Member
Join Date: Jan 2006
Location: new york
Posts: 361

Hey thanx. This is what I came up with after reading that thread for those who are looking to do the same....
ActionScript Code:
var oriX:Number = 0; var oriY:Number = 0; my_sp.contentPath = "empty"; for (var i = 0; i < 10; i++) {     var itemsInScrollPane:MovieClip = my_sp.content.attachMovie ("item", "item_" + i + "_mc", i);     itemsInScrollPane._x = oriX;     itemsInScrollPane._y = oriY;     oriX += itemsInScrollPane._width;     my_sp.invalidate; }

thanx mcm
vee is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
scrollPane: attaching multi MC's using contentPath vee Components 2 05-12-2007 01:51 AM
Using a variable as FLV contentPath yoogie8 Components 8 03-28-2007 09:42 AM
mediaplayback contentpath davebarnett Components 0 08-23-2006 02:36 PM
FLVPlayback separate serverName from contentPath scuze Flash Media Server 10 07-10-2006 12:59 PM
problems with contentPath proto Components 0 02-06-2005 07:53 PM

All times are GMT. The time now is 09:05 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.