| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| --> |
| <mx:Application backgroundColor="0xFFFFFF" xmlns:mx="http://www.adobe.com/2006/mxml"> |
| |
| <mx:Script> |
| <![CDATA[ |
| |
| import mx.resources.ResourceBundle; |
| |
| public var resourceBundle:ResourceBundle; |
| |
| public var aClass:Class = ResourceBundle; |
| public var anArray:Array = [ "abc", "def" ]; |
| public var anObject:Object = { abc: "def" }; |
| |
| public function setup():void |
| { |
| resourceBundle = new ResourceBundle("qa_QA", "myResources"); |
| |
| resourceBundle.content["STRING"] = "abc"; |
| resourceBundle.content["STRING_LIST"] = " abc,def , ghi jil\tmno "; |
| resourceBundle.content["STRING_EMPTY"] = ""; |
| resourceBundle.content["STRING_NULL"] = "null"; |
| resourceBundle.content["STRING_UNDEFINED"] = "undefined"; |
| resourceBundle.content["STRING_TRUE_LOWERCASE"] = "true"; |
| resourceBundle.content["STRING_TRUE_MIXEDCASE"] = "True"; |
| resourceBundle.content["STRING_TRUE_UPPERCASE"] = "TRUE"; |
| resourceBundle.content["STRING_FALSE_LOWERCASE"] = "false"; |
| resourceBundle.content["STRING_FALSE_MIXEDCASE"] = "False"; |
| resourceBundle.content["STRING_FALSE_UPPERCASE"] = "FALSE"; |
| resourceBundle.content["STRING_NAN"] = "NaN"; |
| resourceBundle.content["STRING_ZERO"] = "0"; |
| resourceBundle.content["STRING_POSITIVE_INTEGER"] = "3"; |
| resourceBundle.content["STRING_NEGATIVE_INTEGER"] = "-3"; |
| resourceBundle.content["STRING_FIXEDPOINT"] = "1.5"; |
| resourceBundle.content["STRING_FLOATINGPOINT"] = "5.0e-1"; |
| resourceBundle.content["NULL"] = null; |
| resourceBundle.content["UNDEFINED"] = undefined; |
| resourceBundle.content["TRUE"] = true; |
| resourceBundle.content["FALSE"] = false; |
| resourceBundle.content["NAN"] = NaN; |
| resourceBundle.content["ZERO"] = 0; |
| resourceBundle.content["POSITIVE_INTEGER"] = 3; |
| resourceBundle.content["NEGATIVE_INTEGER"] = -3; |
| resourceBundle.content["FIXEDPOINT"] = 1.5; |
| resourceBundle.content["FLOATINGPOINT"] = 5.0e-1; |
| resourceBundle.content["CLASS"] = aClass; |
| resourceBundle.content["ARRAY"] = anArray; |
| resourceBundle.content["OBJECT"] = anObject; |
| } |
| |
| ]]> |
| </mx:Script> |
| |
| </mx:Application> |