Follow Flex After Dark on Twitter

Embedding Assets in Flex

Assets are often included in Flex projects under an assets sub-folder of the src directory.

[Embed] Metadata Tag

The [Embed] metadata tag...

   [Embed(source="assets/logo.png")]
   public var logo:Class; 

@Embed() Directive

The @Embed(...) directive allows images to be embedded...

   <mx:Image id="imgLogo" source="@Embed('assets/logo.png')"/>

Embedding is often used with images...

Related Links:

Related Docs
Recent Docs
  • Flex Embedding Assets Overview of embedding assets in Flex applications.
  • Flex List Controls Flex List controls refer to a special group of controls that display collections of items, usually from a data provider.
  • ActionScript ArrayCollection The ArrayCollection class is a robust collection class that can be more useful than a standard array.
  • Flex Collections Collections are objects that provide a uniform way to access and represent item lists.
  • ActionScript Exceptions ActionScript handles Exceptions using try, catch, and finally.
Random Docs