A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: I See White Backgrounds On My Flash Files, Others See The Intended Color

  1. #1
    Senior Member
    Join Date
    Sep 2000
    Posts
    100

    I See White Backgrounds On My Flash Files, Others See The Intended Color

    Hello,
    I have a little problem. If you visit this site, what color is the background of the flash file I made? I see it as white, but others see it as black, which is the color it's supposed to be.

    http://www.mikebinteractivemedia.com

    Every flash file I have made is now that way. This one is supposed to have a powder bluish/silver background, but in my browser it appears as white.

    http://www.demoptssolutions.com/

    It doesn't matter what browser I use, the background always appears as white. I have made sure I have the latest versions of the browsers.

    As if that weren't odd enough, if I open these pages in Adobe GoLive, and select "Preview In Default browser" so that I preview the page in my IE browser, the background color is correct

    Does anyone have a clue as to what may be going on?

    Thanks,
    Mike
    Last edited by mbain; 10-25-2007 at 06:05 PM.

  2. #2
    That web bloke Stoke Laurie's Avatar
    Join Date
    Jan 2006
    Location
    England
    Posts
    869
    1. Do you have a background to your swf? create a rectangle and colour it as you wish and send it to the back of your design.
    2. Export with html, then copy and paste this code into your page. Remember to include the following
    <script src="AC_RunActiveContent.js" type="text/javascript"></script> and include AC_RunActiveContent.js in the same folder on your server.
    Hope this solves the problem.

  3. #3
    Senior Member
    Join Date
    Sep 2000
    Posts
    100
    Hi Stoke, thanks very much for the quick reply.

    1. I have noticed that on the flash files in which I do use a colored rectangle as the background, that color does show up. But if I'm just using the Koolmoves canvas as the background, it will always be white, no matter what color I make it. Another strange thing is that this behavior only started when I got my new motherboard. I know, that seems like it doesn't make sense, but it's true. I could see the correct background color on all those flash files before I got my new motherboard. The video card's the same.

    2) What script do I put in the AC_RunActiveContent.js file?

    In those examples, do you see the proper background colors?

    Thanks,
    Mike

  4. #4
    Senior Member
    Join Date
    Jun 2000
    Posts
    3,512
    Did you let koolmoves create the html code for you? I suspect the code is not setting the background color in the html which should be in 3 places.

  5. #5
    That web bloke Stoke Laurie's Avatar
    Join Date
    Jan 2006
    Location
    England
    Posts
    869
    As Bob and I say, let Km export the swf for you to html, then copy this line in the <HEAD> of your project html

    <script src="AC_RunActiveContent.js" type="text/javascript"></script>

    Then in the desired location for your swf paste the code that appears between
    <script type="text/javascript"> .......and...... </object></noscript>

    Then save your new html page and upload to your server with your swf and the AC_RunActiveContent.js file (this file doesn't require any amendment and will be found in the folder where you asked Km to export to).

    As a test you could export to html with Km to a test page and upload the 3 files to your server, assuming this displays correctly, you can then follow the instructions above to include it within your composite page.
    Good luck

  6. #6
    Senior Member
    Join Date
    Sep 2000
    Posts
    100
    Hi guys, thanks for the replies. I'll give that a try, and let you know the results.

    But I don't understand why it is suddenly not showing the background colors. All these files have been up for a while; I haven't changed any of them.

  7. #7
    Senior Member
    Join Date
    Sep 2000
    Posts
    100
    I tried the fix using a sample file and it worked.Thanks, guys.

    But I still don't understand it. Every person I asked to look at it could see the proper background color. And yet, I looked at the code and the background color is not specified. So why does everyone see the background color if it is not specified, and why do I suddenly not see it if the others are? I was thinking maybe it happened when I upgraded to Flash Player 9, but I have since uninstalled 9 and reinstalled version 7, and I still have the problem. I cleared my cache completely, problem still exists. I don't like having to go back and re-export every single flash file I have uploaded to the web and having to redo the html, but what really bugs me the most is not understanding what's going on.

  8. #8
    Senior Member
    Join Date
    Jun 2000
    Posts
    3,512
    If you have javascript turned off, the object or embed clauses will execute depending on your browser. If the background color was specified in only some of the 3 possible places, it could explain the problem.

    You can get the proper code using File > Export Movie > Add Flash Movie to Web Page (Export Mode).

  9. #9
    Senior Member
    Join Date
    Sep 2000
    Posts
    100
    Hi Bob, thanks for the explanation and the tip on how to easily replace my html code.
    Last edited by mbain; 10-26-2007 at 12:14 PM.

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