Actionscript 3 Flex4透明背景问题?

Actionscript 3 Flex4透明背景问题?,actionscript-3,flex4,flexbuilder,Actionscript 3,Flex4,Flexbuilder,我已经找到了几种解决方案,但没有一种对我有效。有人能帮我解决这个问题吗。 这是我的密码: <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.ad

我已经找到了几种解决方案,但没有一种对我有效。有人能帮我解决这个问题吗。 这是我的密码:

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
               xmlns:s="library://ns.adobe.com/flex/spark" 
               xmlns:mx="library://ns.adobe.com/flex/mx" name="app_clock" 
               minWidth="150" minHeight="150" width="150" height="150" backgroundAlpha="0.0">


               <fx:Script>
        <![CDATA[   

        ]]>
    </fx:Script>
    <fx:Declarations>
    </fx:Declarations>  

               <s:Graphic id="clock_graphics">  
        <s:Ellipse width="90" height="90" x="5" y="5">
            <s:stroke>
                <s:LinearGradientStroke weight="50" rotation="60">
                    <s:entries>
                        <s:GradientEntry color="#B5B5B5">                           
                        </s:GradientEntry>
                        <s:GradientEntry color="#494949">                           
                        </s:GradientEntry>
                    </s:entries>
                </s:LinearGradientStroke>
            </s:stroke>
        </s:Ellipse>    
        </s:Graphic>

</s:Application>

有人有有效的解决方案吗?提前使用Tnx。

'Backgroundalpha'不起作用。您需要创建一个自定义的透明应用程序皮肤类。大概是这样的:

<s:Skin xmlns:fx="http://ns.adobe.com/mxml/2009" 
        xmlns:s="library://ns.adobe.com/flex/spark">

<fx:Metadata>
    [HostComponent("spark.components.Application")]
</fx:Metadata>

<s:states>
    <s:State name="normal" />
    <s:State name="disabled" />
</s:states>

<s:Rect id="backgroundRect" left="0" right="0" top="0" bottom="0">
    <s:fill>
        <s:SolidColor alpha="0" />
    </s:fill>
</s:Rect>

<s:Group id="contentGroup" left="0" right="0" top="0" bottom="0" 
         minWidth="0" minHeight="0" />

</s:Skin>

[主机组件(“spark.components.Application”)]
并将其分配给您的应用程序:

 <s:Application ... skinClass="MyTransparentApplicationSkin" ... />

我已经在所有主流浏览器上测试过这个解决方案。(是的,包括狩猎)


而且,
对你没有好处。它只接受颜色十六进制代码。

您需要修复什么?您提到了您已经尝试过的几种解决方案,它们是什么?请记住,并不是每个web浏览器都以相同的方式处理透明度,例如,大多数linux浏览器不使用flash透明度。@Kyle我不知道linux上不工作,没关系,我只需要firefox、chrome和explorer:),我想要透明的背景。所以椭圆图形有一些颜色,其他的东西(背景)我想要透明,如果你在谷歌上输入flex 4透明背景,你就会看到我尝试了什么,我不是flex开发者,可能我做错了什么,tnx提前,对不起我的英语不好。为什么不简单地将alpha设置为0就行了?@Kyle,我尝试了,那不行。好的,tnx,首先让我看看如何创建应用程序外观。然后将测试它是否工作。非常感谢您的解决方案。工作得很有魅力:)
 <s:Application ... skinClass="MyTransparentApplicationSkin" ... />