mx.core

# IFlexAsset - AS3 Flex

Package | mx.core
Interface | public interface IFlexAsset
Implementors | BitmapAsset, ButtonAsset, ByteArrayAsset, FontAsset, MovieClipAsset, MovieClipLoaderAsset, SoundAsset, SpriteAsset, TextFieldAsset

Language Version: | ActionScript 3.0

Product Version: | Flex 3

Runtime Versions: | Flash Player 9, AIR 1.1

IFlexAsset is a marker interface with the following meaning: if a class declares that it implements IFlexAsset, then that class represents an asset -- such as a bitmap, a font, or a sound -- that has been embedded in a Flex application. This interface does not define any properties or methods that the class must actually implement.

The player uses ActionScript classes to represent embedded assets as well as executable ActionScript code. When you embed an asset in a Flex application, the MXML compiler autogenerates a class to represent it, and all such classes declare that they implement IFlexAsset so that they can be distinguished from the code classes.

© 2015 Adobe Systems Incorporated. All rights reserved.
Mon Apr 10 2017, 12:28 PM -07:00