1 person found this helpful
No options. This is the way the Flex 4 is designed in order to give flexibility for us to include/exclude them. I know the feeling of one who worked on flex 3 could take sometime to digest this.
If you want the browser scrollbars, edit the html template and set the size
of the application to be larger than the SWFObject.
How do you do that?
I need to do this as well and having a hard time figuring this out.
Where is the "html template" ?
I dont have any HTML in my project that I can see. I see there is an HTML output file in the output bin folder. Where would I edit that?
there were two issues in this post, did you want to have scrollbars appear always, or only when needed for the whole application?
preferably, only display scrollbars when needed.
but i would like to see both ways if possible.
First please know that I an not an expert, I'm struggling to learn this like you, but I did run into this problem and got is solved through help in this Forum and trial and error.
I did not have to edit the html template. I simply gave my application a specific width and heigth and used a Basic Layout for the application. After the BasicLayout declaration, I put everyting inbetween <s:Group></s:Group> tags. Main application is orgainzed like this:
<s:Application ... width="1024" heigth="840"...>
(I have scripts, styles and declarations in the typical sections...)
All my content including components are here
The above application acquires srollbars when needed, and leaves scrollbars off when not needed.
Please see my last post to this thread.
The html template is located in a folder called "html-template" - should be right below the bin-debug folder in your Flash Builder Project Package Explorer (upper-left of screen). The template is the index.template.html file. I belive you have to edit this file with a text editor outside Flash Builder, that's how I do it and it works. The template has styles and other information on formatting and "wrapping' your Flex-generated SWF.
^ Thanks learner_doug. Right after I posted that question I noticed where it was. I have never messed with the HTML before (in a FLEX project).
It makes sense but at that moment I had no idea where to even find that! Very cool stuff, we can now do some cool things with that. Thanks for your help