本文介绍了Adobe Flash Builder对几个项目的效果相同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当对几个项目设置Rotate3D效果时,它们会相互干扰。

例如:



我有一个隐藏的ImageField效果和显示效果rotate3d工作正常。

然后我创建了一个组字段,应该在隐藏时使用rotate3d,并在悬停标签时显示。

现在当我将标签悬停时图像旋转这一切看起来完全搞砸了。当Image Animation完成时没有问题

我的代码:



有一个计时器隐藏并显示图像框,所以我使用了hideeffect和showeffect和组合框我在悬停时使用了effect.play



效果:



When Setting the Rotate3D effect on several items they interfere eachother.
For example:

I got a ImageField that has a hide effect and Show effect rotate3d works perfect.
Then i made a Group field that should use rotate3d on hide and Show when hovering a Label.
Now when i hover the Label while the Image is rotating this all Looks completely messed up. When Image Animation is done there's no Problem
My code :

There's a timer that hides and Shows the Image box so i used hideeffect and showeffect and for the groupbox i used effect.play on hover

The Effect :

<s:Rotate3D id="xrotin" angleXFrom="90" angleXTo="0" angleYFrom="0" angleYTo="0" autoCenterTransform="true" target="{menu1}" />

 <s:Rotate3D angleXFrom="0" angleXTo="90" angleYFrom="0" angleYTo="0" id="xrotout" autoCenterTransform="true" target="{menu1}" />

 <s:Parallel id="showEff">
 <s:Fade alphaFrom="0.0" alphaTo="1.0" />
 <s:Rotate3D angleYFrom="-90" angleYTo="0" autoCenterTransform="true" />
 </s:Parallel>

 <s:Parallel id="hideEff">
 <s:Fade alphaFrom="1.0" alphaTo="0.0" />
 <s:Rotate3D angleYFrom="0" angleYTo="90" autoCenterTransform="true" />
 </s:Parallel>









图像和组框:







The Image and groupbox :

<s:Image id="imgshow1" visible="false" y="250" width="{this.width - 40}" height="266"
backgroundColor="#B9B9B9" hideEffect="{hideEff}" horizontalCenter="4"
scaleMode="letterbox" showEffect="{showEff}" smooth="true"/>

<s:Group id="menu1" visible="true" x="142" y="57" width="237" height="177">
<s:Label x="0" y="0" width="217" height="16" backgroundColor="#918F8F"
chromeColor="#CCCCCC" text="Beschriftung" verticalAlign="middle"/>
<s:Label x="0" y="24" width="217" height="16" backgroundColor="#918F8F"
chromeColor="#CCCCCC" text="Beschriftung" verticalAlign="middle"/>
<s:Label x="0" y="48" width="217" height="16" backgroundColor="#918F8F"
chromeColor="#CCCCCC" text="Beschriftung" verticalAlign="middle"/>
<s:Label x="0" y="72" width="217" height="16" backgroundColor="#918F8F"
chromeColor="#CCCCCC" text="Beschriftung" verticalAlign="middle"/>
<s:Label x="0" y="96" width="217" height="16" backgroundColor="#918F8F"
chromeColor="#CCCCCC" text="Beschriftung" verticalAlign="middle"/>
<s:Label x="0" y="120" width="217" height="16" backgroundColor="#918F8F"
chromeColor="#CCCCCC" text="Beschriftung" verticalAlign="middle"/>
</s:Group>

推荐答案


这篇关于Adobe Flash Builder对几个项目的效果相同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-18 18:37