Horizontally centering flash .swf" and disallowing horizontal scroll??

Is it possible to center a flash .swf file on a website, and then disable horizontal scrolling?
I made my website in Flash Catalyst, and I made the width 1700px and the height 1200px. I made the width large because I wanted it to look good in the largest screen resolutions, but my biggest problem now that I've finished making the website is putting it up. Simply embedding it makes it scroll horizontally all the way to 1700px, which isn't good for those with small browsers.
Originally, I was planning on making the flash file the background in CSS (using body {background: url(FILE.swf) no-repeat #000 top center}) but then I found out you can't put .swf's as backgrounds.
Basically, I want to know if it's possible to center the .swf horizontally, and then disallow horizontal scrolling. I want to keep vertical scrolling,
Any help appreciated!

Is it possible to center a flash .swf file on a website, and then disable horizontal scrolling?
Yes, but it introduces other problems. With scrolling disabled, you might not be able to see all the page. I DO NOT recommend what you are trying to do. Flash scaling would most likely give you better results.
Background images if intended to cover a large area are typically very small images which are repeated to create a pattern. Using one large image will still never cover all the possible screen resolutions or page sizes... for example larger than 1700 or taller than 1200 pixels.
Centering requires a set dimension, like 1700 so auto set margins would center it, but it still may not cover 100% as using a width of 100% would.
That being said, turn off horizontal scroll and leave vert on with:
overflow-y: auto !important;
overflow-x: hidden !important
then you'll need to use z-indexing to lay anything else over the top of you background .swf
Here a sample page that should get you going... dimensions are smaller so you can see how it works... the principle is the same.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>No Scroll</title>
<style type="text/css">
<!--
body, html {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
overflow-y: auto !important;
overflow-x: hidden !important
#main_container {
position: relative;
width: 800px;
height:800px;
background-color:#ff0000;
border:none;
padding: 0px;
margin-left: auto;
margin-right: auto;
overflow: hidden;
#flash {
position: relative;
width: 800px;
height:600px;
background-color:#cccccc;
border:none;
padding: 0px;
margin-left: auto;
margin-right: auto;
z-index: 2;
#content {
position: relative;
top:-600px;
width: 400px;
height:300px;
background-color:#00ff00;
border:none;
padding: 0px;
margin-left: auto;
margin-right: auto;
overflow: auto;
z-index: 5;
-->
</style>
</head>
<body>
<div id="main_container">
<div id="flash">
  <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="800" height="600" id="overflow" align="middle">
  <param name="allowScriptAccess" value="sameDomain" />
  <param name="movie" value="overflow.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffff00" /><embed src="overflow.swf" quality="high" bgcolor="#ffff00" width="800" height="600" name="overflow" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
  </object>
</div>
<div id="content">
<p align="center">This is the center</p>
</div>
</div>
</body>
</html>
Best of luck!
Adninjastrator

Similar Messages

  • My iMac display occasionally flashes green and purple horizontal lines... is anyone else having this issue, or know of a fix?

    The screen occasionally flashes purple and green horizontal lines across it. Then the buttons on the left side of my menu bar turn fuzzy, and when I click on them they become black rectangles with green and purple lines running thru them. The dock also has a hint of green and purple in it. And some of the shadows around application windows are just black outlines, instead of gradiating shadows. Is this happening to anyone else? Does anyone have a fix? I read about the other supposed graphics issues, but I think they're unrelated, or at least left unfixed by the firmware update.

    All Macs come with a one year limited warranty.
    If you purchased AppleCare, contact info >  http://www.apple.com/support/products/
    Why can't you use the Bluetooth keyboard?
    According to the link I posted for the AHT..
    "For some Apple computers that shipped with OS X Lion, if Apple Hardware Test cannot be found on the hard drive, an Internet-based version starts up instead."

  • I have a question about Flash swfs and Scripts

    I have a Flash swf file and it is made up of my logo and stuff going past it and around it, behind it, and such. What can I do to it, so when somebody enters the page the logo will appear at the center of the page and then progressively move up until it hits the page logo and then kills the swf file?

    I wouldn't give up hope on getting some ideas for how to get what you want, trying things can be the best way to learn.   But you should clarify things because your current description is a little hard to follow.  You say you want a logo centered on a page moving up the page towards a logo, but then you say the page fades in when the logos meet (Wasn't the page there already?).  It's hard to differentiate the logos and the pages from your description.  Or maybe it's just me not being able to follow it.
    If you want a splash screen, then typically a splash screen will play thru whatever it does and then initiate a redirect to the home page.  This redirection would be coded into the Flash file.
    If you want the home page to fade into view, then you'd either have to build that page as a movieclip in the Flash file or try to utilize a page transition in the browser.  It has been so long since I even tried using a browser page transition that I couldn't tell you how to set it up, but if memory serves me well, IE was the only browser at the time that supported them, and I don't know if that has changed. (I don't know enough to know if there is a CSS solution to making a page fade in)

  • Flash .swf and .flv player

    I need to put a link, "view movie," on a website page. The movie is an .swf, and I'd like a Flash media viewer to open in a window (about 400x400px) when the link is clicked. I don't need the viewer to be a permanent part of the page -- I just want it to open in a pop-up window that can be closed when the person viewing is finished. I know I can just insert the .swf and it will open on link click in a separate window and autoplay (Dreamweaver CS4), but there are no start, stop or volume buttons on that window, and it doesn't look like I can insert them from the behaviors panel. I don't have Flash on my computer. I just need to be able to allow a movie to be played on my webite.
    Any suggestions for low-priced, but good extensions? If not needing an extension, any other good fixes?
    Tom

    What happens when you change it - does it work?
    If not, you may be better off to ask in the Flash or Dreamweaver forum, as this is not really a Flash Player question.

  • Difference between a Flash *.swf and a Flash *.flv video?

    What is the difference between a *.swf and a *.flv video?
    AFAIK both are Flash videos.
    Are they compatible?
    Is there a player (not from MS) which plays both videos?
    Peter

    Im guessing you're a complete newbie to all this, so in
    simplistic terms:
    - The FLA is the source flash file (the bit that contains all
    the design stuff and code). When you publish a FLA, it creates a
    SWF file.
    - The FLV file is a video which has been converted to flash
    video format.
    - A SWF displays anything thats been created within the FLA
    to provide things like a wizzy website, advertising banner or can
    be used to show a FLV (flash video) with added functions. Although
    it sort of points to the video rather than storing it inside (so
    the file is smaller and manageable)
    The benefits of using a SWF to play FLV's is that it displays
    at lot quicker. F4V's (another variance) I've now discovered,
    although are larger files, also display very quickly even with
    larger files.
    In terms of playback - do you want to view online or offline?
    to view online, you just need to make sure you have flash
    installed on whatever machine you're using - pc/mac.
    to view offline (from your hard disc), download the Adobe
    Media Player
    http://www.adobe.com/products/mediaplayer/
    or http://get.adobe.com/amp/

  • Exporting Flash(SWF) and Getting No Audio

    Hello All,
    I'm new to these boards and have only posted once previously.
    I'm recording lectures with Captivate 3 for University
    professors speaking in front of a class using power point. I have
    one Captivate project with about 570 slides. When I publish this
    project to SWF and play it in html and/or the skin player there is
    no audio.
    There is audio when I play each slide or when I preview the
    project but no audio when I publish it.
    I have audio selected as MP3 96 kbps, 44.10 KHz in the
    preferences of Publish but there's just nothing.
    Any ideas of what could be going wrong?
    Also, I'm not sure if I should post this in the Recording
    category but during some of these long recordings, part of the
    lectures end up recording blank white slides. There is audio as the
    professor is speaking and surely there's an image on the computer
    with power point but Captivate is recording pure white. Troubling.
    THANKS!

    I have the same problem here. I only have 47 slides, and
    about 12 have audio. The total size of the .cp file is 15 mb. I
    only hear audio when I am looking at the slides and press F3. None
    of the slides are muted. I have made sure that the "Include Audio"
    checkbox is checked. I do not have audio in preview mode or in the
    published swf or exe file. I am at a loss here.

  • Opening flash .swf and constraining it to it's original size rather than full-screen

    When I open a flash object (.swf) from my desktop to test it, it opens full screen. I would like to constrain it so that it opens to the size it was created, e.g., 800 x 600.

    If you open an SWF link directly in a browser tab then you always get the dimensions of that tab. You either have to open the link in a new window and resize it or use the above mentioned bookmarklet code with a keyword and the url as the parameter to replace the %S. Bookmarklet code like that is very handy as you can also use it if Firefox insists in downloading a file (image) and you want to open it in a tab. Of course you need to supply the correct MIME type in that case.
    * http://en.wikipedia.org/wiki/Bookmarklet
    * http://en.wikipedia.org/wiki/Data:_URI_scheme

  • Does the Flash 8 and Flash Lite 2.0 has the same SWF file format?

    Flash Lite 2.0 is based on the Flash Player 7 and supports
    most of the features in that version of Flash Player, also, the
    Flash Lite 2.0 provides serval features not avaliable in Flash
    Player 7.
    My Question:
    I've download the File Format Specification of Macromedia
    Flash (SWF) and Flash Video (FLV) Version 8 from Adobe web site,
    but, I don't know whether the Flash Lite 2.0 has the same SWF file
    format?
    If the SWF file format is different, where can I get the file
    format for Flash Lite 2.0?
    Thanks in advance.
    Sandy.

    > Flash Lite 2.0 is based on the Flash Player 7 and
    supports most of the
    > features
    > in that version of Flash Player, also, the Flash Lite
    2.0 provides serval
    > features not avaliable in Flash Player 7.
    >
    >
    My Question:
    > I've download the File Format Specification of
    Macromedia Flash (SWF) and
    > Flash Video (FLV) Version 8 from Adobe web site, but, I
    don't know whether
    > the
    > Flash Lite 2.0 has the same SWF file format?
    > If the SWF file format is different, where can I get the
    file format for
    > Flash
    > Lite 2.0?
    Yes .. it is a little different .. got some extras and has
    some
    restrictions. But there is a lot that is the same.
    There is a separate section on mobile devices (in the Adobe
    site where you
    can get info on the format (or at least, there was for flash
    lite 1.x)

  • How do you play a Flash video and then close the player?

    I have a splash page that plays a .swf. At the end of the
    video the home.html page is opened. As/after the home page launches
    I want to play a Flash video and then have the player close.
    I am willing to trade wife, children or beagles for the info.

    Are these two separate browser windows? One for the Flash
    .swf and a different window for the home.html document? Is this
    correct:
    1. show .swf in one window,
    2. open new, second, window with home.html
    3. show second .swf in first window
    4. close first window when second .swf finishes
    If this is the scenario, then no, you can't reliably close
    the first window. You can use Javascript to close a browser window,
    but, if that window wasn't opened using Javascript, then it may not
    close gracefully, or in the case of IE, may display a prominent
    error message.

  • Bringing Flash .swf files into Captivate

    Greetings,
    I use Captivate 2.0. I have been trying to bring a Flash .swf
    file into Captivate with very little success. The flash file is
    clickable (so that users can review case study information as they
    complete Try It simulations). When I bring the Flash .swf file into
    Captivate, it works. However, correction (or failure messages)
    display every time the user clicks the Flash .swf file. Is there
    anything that I can do within Captivate to stop this issue?
    Ideally, I would like the Flash .swf to run on top of the Captivate
    file so that users can view the case study details without having
    to see the failure messages.
    Please let me know if you have any questions about this. I
    hope it makes sense to you.

    Hi Zabcde (or PMW or P?)
    Can I just understand (sorry for being thick) your situation.
    You're trying to get a flash movie into a captivate session that
    the user can work on, see, interact with whilst they're also going
    through a Captivate simulation (try it)? Does that mean that slides
    are advancing for the simulation whilst you're watching the flash
    movie? Or are they watching the Flash movie as a kind of help to
    then go and do the Try It session?
    If it's the first, then I would suggest calling the Flash swf
    and the Captivate swf as seperate instances in flash (using
    loadmovienum or something). If it's the second, you should be able
    to remove the failure captions from that slide so they don't bug
    you.
    Apologies if I've got the wrong end of the stick though
    Cheers
    AJ (jiminiCricket)

  • Changing flash .SWF file into Keynote presentation

    Someone please help.. presentation in 8 hours and I want to use Keynote but the presentation is in flash .swf and the directions I got didnt work- they were:
    Use Flash MX to save the file as a Flash 5 movie. It should have a filename extension of ".swf". Important: Keynote cannot import native Flash files whose filename extension is ".fla".
    In Keynote, Choose Edit > Place > Choose.
    Select the file and click Place to insert it into your slide.
    I choose edit but theres no option that says place, how do I read my swf file through Keynote?
    Thanks everyone!
    Daniel

    That kind of thing is not done in Fireworks, which is a graphics 
    application; it should be done in a web page editing program such as 
    Dreamweaver. Generally, Fireworks HTML is not acceptable for final 
    production web sites unless you're exporting as CSS and Images, and 
    even then, it will most likely require tweaking in a web page editor.
    HTH
    Jim Babbage

  • Website scrolls horizontally when I only want it to scroll up and down? help!

    My wedding website is a one page website.
    www.nicklovesindia.com
    I had anchors scrolling to the left. I fixed that problem but now it scrolls back and forth horizontally.
    I made all the images 100% width but I do not understand why it still scrolls back and forth, I tested it on all browsers.
    Any help is much appreciated!

    Hi,
    I checked your site and I didn't get any horizontal scroll bar. Can you please confirm whether or not you are still facing the issue?
    Regards.
    Aish

  • Why are some of my pages centering themselves (vertically and horizontally) after I select the "Shrink document to avoid overwriting..." option under Add Headers and Footers?

    I'm working in Adobe Acrobat X Pro. I added header and footers through Adobe. I needed to select the "Shrink document to avoid overwriting the document's text and graphics" feature under the "Appearance Options..." option within the "Add Header and Footer" window. Some of the pages in my document that only had a few lines of text on them centered themselves (vertically and horizontally). How can I prevent that from happening?

    Just to recap, this is a collection of ports I have collected over time for people who needed this information when setting up the HP ePrint app so that they could view their email from within the app.  I am certain other applications also need this information.  Although lengthy, I could not find a more comprehensive place to retrieve this information.  Feel free to post additional information, faulty information, or other related topics below as this is simply a collection of data and it would be practically impossible to test all of them. Thank you!
    Don't forgot to say thanks by giving "Kudos" if I helped solve your problem.
    When a solution is found please mark the post that solves your issue.
    Every problem has a solution!

  • I run 3.6.10 and the horizontal scroll bar vanishes.

    I tried opening the browser in the Safe Mode & restoring the default settings. The horizontal scroll bar reappears until I resize the window. It vanishes again and does not reappear.

    It is possible that the screen is too wide or too high and that the scroll bars fall off.
    Open the system menu via Alt+Space and see if you can resize that window.
    If that works then close Firefox to save that setting.
    See also http://kb.mozillazine.org/Resizing_oversize_window
    If that didn't help then see http://kb.mozillazine.org/Corrupt_localstore.rdf

  • Add a horizontal and a vertical scroll bar to a screen

    Hi,
    How to add a hotizontal scroll bar and a vertical scroll bar to a screen?
    Thanks a lot.
    Best Regards,
    Stephanie

    Hi,
    I think it will be automatically added if your screen size is greater than the window size...
    Regards
    Karthik D

Maybe you are looking for

  • Windows Vista and ipod

    I heard on the radio that ipod is not yet compatible with windows vista so I haven't synced my ipod nano with my library since I got my new computer. Is this true and if it is what can I do about it? Dell XPS 410   Other OS  

  • How to put fotos on my iphone

    hy how can i put foto's on my i phone

  • ADF Jdeveloper 11.1.2 class not found exception.

    Hi ewerybody I am developing an Application in Jdev 11.1.2 where in i am getting this error. <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1344695980653' for task '0'. Error is: 'weblogic.applicatio

  • Variable help, urgent.

    How come, when I have defined a variable in one class, can't get the variable's value in another? The variables are Red, Blue, and Green I am trying to make this application mainly by myself, so don't tell me how to finish the code, please. Also, Are

  • Reader XI 11.0.01: Shapes yes; sticky notes yes; highlighter/other text NO. Please help. Thanks.

    Reader XI 11.0.01: Shapes yes; sticky notes yes; highlighter/other text NO. Please help. Thanks.