A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Lining up a SWF with a tiled background

  1. #1
    Flash Incompetent ChaseNYC's Avatar
    Join Date
    Jun 2002
    Location
    new york city
    Posts
    693

    Lining up a SWF with a tiled background

    I am curious if anyone can help me with a small problem I'm having. I recently decided I want to design a site with a very specific tiled background. Now the problem with this I can't seem to think of how to make sure my SWF lines up with the tiled background for different resolutions. Basically the SWF is going to be centered on the page and is going to incorporate the background so it needs to line up exactly with it (the first frame of the SWF basically will make it look like there is no SWF but just a full tiled background). I would presume people have encountered this problem before but I can't seem to come up with a solution. Anyways, thanks in advance for any help,

    ChaseNYC
    mmm signature

  2. #2
    junior master chef j_hunter182's Avatar
    Join Date
    Jun 2003
    Location
    Hull, East Yorkshire, UK
    Posts
    556
    Instead of having a tile in your SWF, make the background transparent.

    <param name="wmode" value="transparent" />

    Put that in the SWF object tags in your HTML file, remove the background from your SWF and then see how it looks.

  3. #3
    Flash Incompetent ChaseNYC's Avatar
    Join Date
    Jun 2002
    Location
    new york city
    Posts
    693
    hmm, this, surprisingly seems to work... kind of... in frontpage preview I can get the desired effect, but then when I check it in firefox it does not seem to register the transparency part... am I doing something wrong or does firefox not understand? if it isnt firefox compatible I think I want a different resolutions...
    mmm signature

  4. #4
    junior master chef j_hunter182's Avatar
    Join Date
    Jun 2003
    Location
    Hull, East Yorkshire, UK
    Posts
    556
    It does work in Firefox, there maybe some extra coding needed. In flash, open your FLA. Go to File/Publish Settings... Under the HTML tab in the "Window Mode:" drop down choose "Transparent Windowless". The HTML file published will have all of the correct coding and will work in Firefox. Take a look at the code and see what's different, or just use this HTML file as your main.

  5. #5
    Flash Incompetent ChaseNYC's Avatar
    Join Date
    Jun 2002
    Location
    new york city
    Posts
    693
    Thanks! Works like a charm, always love when there are simple resolutions to simple problems!

    Cheers,

    ChaseNYC
    mmm signature

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