Setting scroll pane content  
Author Message
alisonspiegel





PostPosted: 2004-1-15 10:11:58 Top

flash-actionscript, Setting scroll pane content I need to set the content of a scroll pane to a movie clip that I build dynamically from a list of thumbnail images. I was doing this in Flash MX with the setScrollContent method. From what I can see in Flash 2004, you can only set the scroll content to a file or a movie clip from the library. Neither of these options will work for me, since I must create the content on the fly. I'm trying to work with the content property but am not having any luck. Does anyone have a suggestion or example?


 
Juji





PostPosted: 2004-1-15 21:41:00 Top

flash-actionscript >> Setting scroll pane content i don't know if it's the right way, but you could create the content on
the fly in a specific mc (ex: creteemptymovieclip) and try to put this
clip as the scroll content ......


"alisonspiegel" email***@***.com wrote:

> I need to set the content of a scroll pane to a movie clip that I build dynamically from a list of thumbnail images. I was doing this in Flash MX with the setScrollContent method. From what I can see in Flash 2004, you can only set the scroll content to a file or a movie clip from the library. Neither of these options will work for me, since I must create the content on the fly. I'm trying to work with the content property but am not having any luck. Does anyone have a suggestion or example?
>
>
>


--
-----------------------------------------------------------
ENJOY THE SILENCE
-----------------------------------------------------------
email***@***.com
www.didesidero.com
-----------------------------------------------------------

 
alisonspiegel





PostPosted: 2004-1-23 9:36:00 Top

flash-actionscript >> Setting scroll pane content Actually, I figured it out. You have to use the content property. It's pretty much a matter of setting the contentPath first, instead of using the old setScrollContent method after I'd built my movie clip. If you set the contentPath and then use the content property to get a reference to the movie clip, you can work with that reference from then on.