470,591 Members | 1,484 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,591 developers. It's quick & easy.

Controlling the scrollbar

Hi there :)

I'm making a small site in Flash. It has floating menus and windows which
the user can drag to different areas of the screen. Therefore, I'd like to
be able to let the users with large screen resolutions benefit from the
extra browser screen space they have, while people with lower resolutions
can still use the site.

What I'm thinking of doing, is making my Flash stage very large, like what
would fit on a 2048x1536 screen, but let the menu starting point be top
middle, so that each user's space expands circularly from this point, like

| http://blahblah |
| MENU |
| MENU |
| |
| |
| |
| |
| |

This means that the menu's center will be at the Flash stage's center, which
would be x==1024 px. Only thing is, if I just drop my Flash swf inside a div
in HTML, the default will be that the point 0,0 lies at the HTML page's 0,0
point, i.e. you'd have to center the horizontal scroll bar to get it to look
like the illustration above :)

How would I go about getting the browser to automatically center the HTML
page so that my menu inside Flash would stand in the horizontal middle like
in the illustration?

Thanks in advance,
Daniel :)
Jul 20 '05 #1
1 1202
Nevermind, got it working :P
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Price Brattin | last post: by
9 posts views Thread by kjs | last post: by
reply views Thread by h-h | last post: by
2 posts views Thread by kurt sune | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.