Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 30. Localizing Flex 4 Applications > Using Custom Resource Bundles

30.2. Using Custom Resource Bundles

You can create your own resource bundles that represent strings and other resources. Typically you create a custom resource bundle for each locale that you want to support. Resource bundles that include only replaceable strings can be created either at runtime or as compiled bundles; if you need to include fonts, images, and other binary resources, you should use compiled resource bundles.

30.2.1. Creating resource bundles at runtime

To create a resource bundle at runtime, declare a variable that's an instance of the ResourceBundle class. This class has two key properties you'll need to set so you can reference the bundle's resources in binding expressions and ActionScript statements:


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint