 {
 
 import flash.utils.getQualifiedClassName;
-import mx.resources.ResourceBundle;
+import mx.resources.IResourceManager;
+import mx.resources.ResourceManager;
 import mx.utils.StringUtil;
 
 [ExcludeClass]
+[ResourceBundle("messaging")]
+[ResourceBundle("rpc")]
 
 /**
  *  @private

	 */
    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;
    }
}


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

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