[CLOSED] How to change color of FlashComponent background

  1. #1

    [CLOSED] How to change color of FlashComponent background

    Hi,

    I am using a FlashComponent to show an .swf animation, the animation looks good, but the borders look of white color and they should be at the same color as the page background.

    I tryied to make the flash component background transparente by CSS, but it does not work.


    
    
    
    
    .flashComponent
    
    
    {
    
    
    background-color:Transparent;
    
    
    }
    
    
    
    <div class="bannerTop">
    
    
    <ext:FlashComponent ID="FlashComponentHeader" 
    
    
    Cls="flashComponent" 
    
    
    runat="server" Height="212px" Width="960px" >
    
    
    </ext:FlashComponent>
    Thanks,

  2. #2

    RE: [CLOSED] How to change color of FlashComponent background

    Hi,

    I think you have to make transparent flash (flash component is container only for flash object)

    Try to add the following flash parameter
    <ext:FlashComponent ID="FlashComponentHeader" runat="server" Height="212px" Width="960px">
            <FlashParams>
                <ext:Parameter Name="wmode" Value="transparent" />
            </FlashParams>
        </ext:FlashComponent>
  3. #3

    RE: [CLOSED] How to change color of FlashComponent background

    Hi,

    I used the following FlashComponent parameters that also are aready on the swf file and the white borders are not fixed.

    We tested the same swf file using just HTML code with an object tag and looks fine on the browser with out that white borders.

    Could you please tell me what else can I do?

    
    
    
    <ext:FlashComponent ID="FlashComponentHeader" Cls="flashComponent" 
    
    
    runat="server" Height="212px" Width="960px" >
    
    
    
    
    
    <FlashParams> 
    
    
    <ext:Parameter Name="wmode" Value="transparent" /> 
    
    
    <ext:Parameter name="quality" value="high" /> 
    
    
    <ext:Parameter name="swfversion" value="6.0.65.0" /> 
    
    
    <ext:Parameter name="expressinstall" value="Scripts/expressInstall.swf" /> 
    
    
    </FlashParams> 
    
    
    </ext:FlashComponent>
  4. #4

    RE: [CLOSED] How to change color of FlashComponent background

    Hi,

    Can you provide that swf file? If it is private then you can send it to the my email
  5. #5

    RE: [CLOSED] How to change color of FlashComponent background

    Hi,

    I just sent you the swf file example to your email.

    Thanks,

  6. #6

    RE: [CLOSED] How to change color of FlashComponent background

    Hi Vladimir,

    We already solved the problem setting the body color of the swf file to the same color of the main page.

    Thanks,


  7. #7

    RE: [CLOSED] How to change color of FlashComponent background

    Hi,

    Thanks for the update.
    In any way I tested your swf file and transparent mode works fine for me
    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <!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 id="Head1" runat="server">
        <title>Untitled Page</title>
    
        <script runat="server">
            protected void Page_Load(object sender, EventArgs e)
            {
                if (!X.IsAjaxRequest)
                {
                    FlashComponentHeader.Url = "bannertop.swf";
                }
            }
        </script>
    
    </head>
    <body style="background-color: black;">
        <form id="form1" runat="server">
            <ext:ResourceManager ID="ResourceManager1" runat="server">
            </ext:ResourceManager>
            
            <ext:FlashComponent ID="FlashComponentHeader" runat="server" Height="212px" Width="960px">
                <FlashParams>
                    <ext:Parameter Name="wmode" Value="transparent" />
                </FlashParams>
            </ext:FlashComponent>
        </form>
    </body>
    </html>

Similar Threads

  1. [CLOSED] Change background color of Toolbar
    By trieu.tran in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 06, 2012, 10:56 AM
  2. Replies: 2
    Last Post: Dec 29, 2011, 2:11 AM
  3. Replies: 12
    Last Post: Jun 17, 2009, 12:07 PM
  4. [CLOSED] Change background color of MultiSelect
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jan 30, 2009, 12:10 PM
  5. Change Tab background color or background image
    By georgelanes in forum 1.x Help
    Replies: 0
    Last Post: Nov 06, 2008, 3:55 PM

Posting Permissions