English 中文(简体)
灵活过渡针对所有要素
原标题:Flex transitions target all elements

I want to fade all the elements of the next state when transitioning from any state. I tried different things but I can t get it to work. And I don t want to manually add transitions for every state.

类似:

<s:Transition fromState="*" toState="*">
        <s:Fade target="*" duration="500" />
    </s:Transition>
问题回答

Hey, mihaimetal。 我在努力处理这件事情之后,刚刚找到你。 由此可见,这样做的最佳方式不是使用target property,而是使用targets。 这样一来,你就可以通过改动可<>/em>的整条轨道。 我可能强调,因为只有你在Array给你的信标上<>各条目标,在各州之间实际变化的项目才会受到影响。

你可以改变你的样本代码,如:

<s:Transition fromState="*" toState="*">
    <s:Fade targets="{[hboxID_1, hboxID_2, hboxID_3]}" duration="500" />
</s:Transition>

希望这一帮助!

萨米语问题。

附属于各州的布歇式屏幕,每次一次。 我不想放弃国家变革。

定向的三层野心:

target="*"

具体目标:

targets="{[ * ]}"

消除目标/目标

Nada

这样做,但我不想id击所有国家,并追踪目标清单。

样本如下:

<s:states>
    <s:State name="default" stateGroups="sessionless"/>
    <s:State name="Welcome" stateGroups="session" />
    <s:State name="Settings" stateGroups="session" />
</s:states>
<s:Panel includeIn="sessionless">
    <comp:Login id="login" includeIn="Login" />
</s:Panel>
<s:Panel includeIn="session">
    <comp:Welcome id="welcome" includeIn="Welcome" />
    <comp:Settings id="settings" includeIn="Settings" />
</s:Panel>
<s:transitions><s:Transition id="fader" fromState="*" toState="*">
    <s:Fade duration="4000" targets="{[settings,login,welcome]}" />
</s:Transition></s:transitions>




相关问题
Disable button tooltip in AS3

I want to disable the tooltip on certain buttons. The tooltip manager seems to be an all or nothing solution. Is it possible to disable the tooltip for just one or two buttons?

Multiple Remote call made simultenously

I was making multiple remote calls and they are done sequentially and when I am getting a result event back it s triggering calls to all the methods with ResultEvent as an argument . I am supposed to ...

Attaching a property to an event in Flex/AS3

I have a parameter that needs to be passed along with an event. After unsuccessful attempts to place it on the type by extending the class, I ve been advised in another SO question to write a custom ...

Clearing RSL in Cache

I have built a flex application which has a "main" project and it is assosciated with a few RSL s which are loaded and cached once i run my "main" application. The problem i am facing is that the ...

What s a good way of deserializing data into mock objects?

I m writing a mock backend service for my flex application. Because I will likely need to add/edit/modify the mock data over time, I d prefer not to generate the data in code like this: var mockData =...

AS3 try/catch out of memory

I m loading a few huge images on my flex/as3 app, but I can t manage to catch the error when the flash player runs out of memory. Here is the what I was thinking might work (I use ???? because i dont ...