View Full Version : FScrollPane...
mcmcom
07-01-2004, 07:30 PM
Why does the FScrollPane component always left align everything? Does it do this because it needs to figure out the "math" and can't do it without knowing that its content is at 0,0....?
im lost...this scrollPane is starting to annoy me...
Would I be able to use a Java ScrollPane instead inside my flash movie?
thanks in Advance...
MCM
CyanBlue
07-01-2004, 07:35 PM
I have no idea WHY it is working that way and I don't see any problem with how it is aligning stuff in there... I'd personally be more annoyed if things in the scrollPane gets centered... :)
As far as I know Flash cannot import anything that's done in Java... Java's swing component has its own use and it is useless when you want to import it into Flash cuz it won't work...
mcmcom
07-01-2004, 07:55 PM
I want my MC's centered (horizontally) in the scrollPane just because it looks better in the center with a bit of margins on the left and right sides. Unfortunately, the MC's that are the content in the ScrollPane(when created in Perl) have no margins and because my scrollPane is the whole window width, its lots of text at the left and lots of white space on the right. Code to center it works fine, however as soon as i even touch a scrollbar, it automatically refreshes the content in the pane and left aligns it.
Also Cyan, I have no scrollbar component in my Flash Components section. Is there somewhere I can d/l this? Im just going to try using scrollBars instead of the pane.
Thanks for the reply
MCM
CyanBlue
07-01-2004, 08:02 PM
Um... I guess you have two options...
Either center the movieClip again and again whenever you refresh the scrollPane...
Or, create a 1x1 movieClip in the background color and place it in the left top end of the movieClip so that it will center the movieClip without your centering routine...
+---------------------------------------------+
|* |
| |
| +----------+ |
| | | |
| | | |
| | | |
| |
The outer border being the scrollPane and the inner border being the movieClip you want center and the * being the invisible movieClip that you need to place...
I have no idea where you can get the scrollBar but it sounds like you have FMX 2004 where there is no scrollBar component pre-installed... If that's the case, please post your question to the correct forum since the matters with the component in FMX and FMX 2004 are totally different... If that's not the case, go to the Exchange area of the Macromedia's page to download one...
Oh... Don't call me Cyan cuz I ain't Cyan... :(
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.