 	 */
     public function textOf(key:String, ... rest):String
     {
-        if (!bundle)
-        {
-            if (bundleName == "messaging")
-                bundle = messagingBundle;
-            else if (bundleName == "rpc")
-                bundle = rpcBundle;
-        }
-
-		// Note: Writing bundle["getString"](key) instead of
-		// bundle.getString(key) avoids a deprecation warning.
-        return bundle ?
-			   StringUtil.substitute(bundle["getString"](key), rest) :
-			   "Key " + key + " was not found in resource bundle " + bundleName;
+        return _resourceManager.getString(bundleName, key, rest);
     }
 }
 

{

import flash.utils.getQualifiedClassName;
import mx.resources.ResourceBundle;
import mx.utils.StringUtil;

[ExcludeClass]

/**
 *  @private

    //
    //--------------------------------------------------------------------------

    
    //--------------------------------------------------------------------------
    //
    //  Class methods
