Tag Archive for 'zoom'

12
Oct

Creating a custom creation complete effect on a Flex Alert control

The following example shows how to specify an effect which gets played when an Alert control is displayed by setting the Alert control’s creationCompleteEffect style. You can also see how to embed both the normal and bold font using CSS and @font-face.

Full code after the jump.

Continue reading ‘Creating a custom creation complete effect on a Flex Alert control’

03
Oct

Displaying images from an XML file using the Repeater component

The following example shows you how to use the Repeater component to display images loaded from an external XML file.

Full code after the jump.

Continue reading ‘Displaying images from an XML file using the Repeater component’

20
Sep

Triggering effects when a container’s visibility is changed

The following example shows you how you can trigger effects when the visible property changes on a Flex container or control by using the hideEffect and showEffect effects.

Full code after the jump.

Continue reading ‘Triggering effects when a container’s visibility is changed’

06
Aug

Embedding and animating fonts in a Flex application

I meant to post this earlier, and I already touched on font embedding in an earlier post (Building a basic controller for the VideoDisplay control), but here’s a quick little way to embed a font in a Flex application.

In this example we embed a font (the awesome “Base 02″ PC TrueType font (TTF) from http://www.stereo-type.net/), animate it using the Zoom effect and the Elastic.easeOut easing method. We also set the rotation and alpha properties (which you can’t do with non-embedded fonts), and we set the fontAntiAliasType to “advanced” to give the font a cleaner look. Finally we use the effectEnd event to loop the animation.

Full code after the jump.

Continue reading ‘Embedding and animating fonts in a Flex application’