Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

scrollpane quirly as H@ELL 1

Status
Not open for further replies.

theotrain

Programmer
Mar 5, 2003
150
MX
im trying to use a scrollpane to contain a movie clip that has dynamically changing content.

i will refer to the movie clip inside my scrollpane as "inner"

wierd thing #1: movie clips added to "inner" using attachMovie scroll when you move the scrollbars, but appear above the scrollPane container. (ie. always visible, never cropped)

wierd thing #2: if i dynamically change the size of "inner", the scrollBars do not adjust to accomodate the new size. for example, if i set my horizontal scrollbar to "true" (always there) and i press a button in "inner" that increases its width so it no longer fits inside the container, i still cant scroll over to see the whole thing. the scrollBars seem to be set when the scrollPane is loaded and they dont intelligently adjust.

can the scrollBars be prompted to adjust?

I noticed that wierd thing #1 has been resolved in flash MX 2004. the same movie played in that version keeps all the contents inside the scrollpane. but the bars still dont adjust dynamically. Ideas?
 
Look into FScrollPane.refreshPane() in the AS dictionary.

Regards,

cubalibre2.gif
 
thanks, that totally fixes the scrollBar updating problem. i blanked out on all those component actionscript methods, i guess im not accustomed to using components at all.

the other issue, where the content appears outside the scrollPane, still persists in MX, even if you do a refreshPane(). I guess MX users are screwed on that one. The amazing thing is it works correctly in MX2004 even if you are exporting to the flash 6 player! hmmmm

thanks again.
 
It works fine for me in MX. Have you tested your MX file online. I'm assuming you have the latest browser player plugins, and that's probably why it works in MX2004 and why it should also work with your MX only file.
If it does work online, then you'd probably have to update your MX test and standalone players, and that should solve the problem...

See For Macromedia Flash authors onlyhere:

Regards,

cubalibre2.gif
 
dammit. your right. it plays properly in a browser, its just f*cked in my 'test movie' environment in flash.
 
That link is to download updated players for your MX application, when installed it should work fine.

Regards,

cubalibre2.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top