📜  Flex-视觉效果

📅  最后修改于: 2020-10-25 02:25:41             🧑  作者: Mango


我们可以使用“效果”的概念为Flex应用程序添加行为。例如,当一个文本框获得焦点时,我们可以使其文本变粗体并使其尺寸稍大。

每个效果都从Effect类继承属性,而Effect类又从EventDispatcher和其他顶级类继承属性。

Sr.No Effect & Description
1 Flex Effect Class

The Effect class is an abstract base class that defines the basic functionality of all Flex effects. This class defines the base factory class for all effects.

基本效果

以下是一些重要的基本视觉效果-

Sr.No Effect & Description
1 Fade

The Fade effect animates the alpha property of a component.

2 WipeLeft

The WipeLeft class defines a wipe left effect.

3 WipeRight

The WipeRight class defines a wipe right effect.

4 Move3D

The Move3D class moves a target object in the x, y, and z dimensions.

5 Scale3D

The Scale3D class scales a target object in three dimensions around the transform center.

6 Rotate3D

The Rotate3D class rotate a target object in three dimensions around the x, y, or z axes.

7 Animate

This Animate effect animates an arbitrary set of properties between values. Specify the properties and values to animate by setting the motionPaths property.