FORUMS: list search recent posts

Flash Globalization Package

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Neha Gandhi
Flash Globalization Package
on Jan 28, 2011 at 4:01:57 pm

As i already know that there is a in-built flash globalization packge in Flash Player 10, but that package doesn't have anything that can convert english to spanish. So i searched a bit and found out that there is IresourceManager in flex that we can use, so imported framework_rb.swc and rpc_rb.swc files in the library. Now i have access to the classes, but somehow its not doing anythine. Please see the pasted code below:

import mx.resources.*;
import flash.display.MovieClip;

public class Global extends MovieClip
public function Global()
var resourceManager:IResourceManager = ResourceManager.getInstance();
var moreResources:IResourceBundle = new ResourceBundle("en_US","rb");
//rb is file which contain OPEN=Ouvrez

moreResources.content["OPEN"] = "Ouvrez";
moreResources.content["CLOSE"] = "Fermez";
resourceManager.localeChain = ["fr_FR"];

trace(resourceManager.getString("rb", "OPEN"));// outputs "Ouvrez"

Help me out here.

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved