AnsweredAssumed Answered

dynamicallyl setting resourcemanager language

Question asked by GoogleGirl on Jan 10, 2012
Latest reply on Jan 12, 2012 by GoogleGirl
Hi again,

I have successfully added a combobox to the top of my gui in a skin, but getting errors trying to set the resourcemanager..
"Access of undefined property resourcemanager"
I am guessing that it is not accessible in a sparkskin file?? what do I know, I am new..

<?xml version="1.0" encoding="utf-8"?>

// Copyright (c) 2009 - 2011 Latitude Geographics Group Ltd., Canada
// All Rights Reserved
// This material is owned by Latitude Geographics Group Ltd. and protected by
// copyright law. It may not be reproduced or redistributed in whole or in part 
// without the prior written permission of Latitude Geographics Group Ltd. 
// (
xmlns:fx =""
xmlns:mx ="library://"
xmlns:s  ="library://"
xmlns:flexlib ="flexlib.controls.*"


   import mx.controls.Alert;
   import mx.resources.resourcemanager;
   protected function combobox_changeHandler(event:IndexChangeEvent):void
      var temp:*=ComboBox(;"You selected " + temp);
      if (ComboBox( = "English") {
       resourcemanager.localeChain = ['en_US'];  // ERROR
       resourcemanager.localeChain = ['fr_FR'];   // ERROR

<!-- Define the skin states. -->
  <s:State name="normal" />
  <s:State name="disabled" />

<s:HGroup height="100%" gap="-1" horizontalAlign="left" verticalCenter="0">
   <mx:FormItem label="Select Language:">
    <s:ComboBox change="combobox_changeHandler(event)"  selectedIndex="0"   >