简体   繁体   中英

Browser scrollbars for a flash website

I've made a page entirely in flash (flex actionscript project), and for weird reasons, should'nt scale when opened with a small windowed browser (low resolution or not maximized); in this case I need to have to browser scrollbar active to show the full flash application.

How can that be done?

Note: I don't want to implement a scroll method in flash (like flash scrollbars, or a mouse position related scroller), i just want to summon the browser scrollbars.

Just embed the flash with a fixed (not proportional) size. If it is larger than the browser window, the scrollbars will appear.

Also make sure that the html element containing the swf is either big enough to show the entire flash or doesn't have it's overflow css property set to hidden .

To show the scrollbars you can try this.

html {
     overflow: -moz-scrollbars-vertical;
     overflow: scroll;
}

StageScaleMode.NO_SCALE

StageAlign.TOP_LEFT

? maybe it should happen from within the SWF..

I think this is what you looking for: http://swffit.millermedeiros.com/

swffit automatically resizes your flash to 100% width and 100% height (full bleed) when your browser window is greater than the minimum desired size and resizes flash to the minimum desired size when the browser window is smaller... It can also resize the flash movie to a maximum size if the browser window size is greater than the maximum size...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM