dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: how do u centre your flash movie within broswer???

  1. #1
    Junior Member
    Join Date
    Jun 2002
    Posts
    7
    Im sure i have seen this on the forums before but i did a search and nothing came up so...

    i how do i get my flash movie to centre in my browser? do i place javascript on my splash page to launch in a new browser or... i dont know im just rambling. any help is much appreciated.

  2. #2
    Senior Member catbert303's Avatar
    Join Date
    Aug 2001
    Location
    uk
    Posts
    11,222
    There are a couple of things you could do, first you could make a javascript popup window containing the movie and centre that, there is some code that does this on http://www.angelfire.com/electronic2...opup_demo.html or you could use tables to centre the movie in the main browser window. try this


    <html>
    <head>
    <title>centred flash movie</title>
    </head>
    <body>
    <table width="100%" height="100%">
    <tr>
    <td align="center" valign="center">
    <object .....
    <!-- flash object and embed tags go here -->
    </object>
    </td>
    </tr>
    </table>
    </body>
    </html>

  3. #3
    FK's Wave Pimp kamyab's Avatar
    Join Date
    Jan 2002
    Location
    Orange County, CA
    Posts
    1,210
    you can also use a template to center it. i guess that could save a little time.

    try this link: http://www.aritali.com/flash/templates/

  4. #4
    Junior Member
    Join Date
    Jun 2002
    Posts
    10
    Originally posted by aquemini
    Im sure i have seen this on the forums before but i did a search and nothing came up so...

    i how do i get my flash movie to centre in my browser? do i place javascript on my splash page to launch in a new browser or... i dont know im just rambling. any help is much appreciated.
    The easiest way to do this is to publish the movie , then open the published movie.Inside the published page right click on the mouse to bring up the view source option (html).Next add this tag <center> before and after the <body> tag . That should do it . Good Luck.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center