1 Reply Latest reply on Aug 9, 2011 2:31 AM by Shilpa_

    Error In Flex.....

    Vasavi.K.G

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

       

      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"

      xmlns:s="library://ns.adobe.com/flex/spark"

      xmlns:fx="library://ns.adobe.com/flex/mx"

      layout="vertical" width="100%" height="100%"

      initialize="initApp()" >

      <mx:Script>

       

      <![CDATA[

       

      import mx.collections.ArrayCollection;

      import mx.controls.Alert;

       

       

      import sap.FlashIsland;

      [Bindable]

      public var childname:String;

      [Bindable]

      public var dateofbirth:Date;

      [Bindable]

      public var placeofbirth:String;

      [Bindable]

      public var mothersname:String;

      [Bindable]

      public var fathersname:String;

      [Bindable]

      public var doctorsname:String;

      [Bindable]

      public var hospitalname:String;

       

      public function initApp():void

      {

      FlashIsland.register(this);

      }

       

      public function sendSubmit():void

      {

      childname = chnm.text;

      placeofbirth = pob.text;

      mothersname = mn.text;

      fathersname = fn.text;

      doctorsname = dn.text;

      hospitalname = hn.text;

      FlashIsland.fireEvent(this,"newsel");

      }

       

      ]]>

       

      </mx:Script>

      <s:BorderContainer id="parent3" x="12" width="1010" height="614" borderVisible="false">

      <s:Image x="0" y="-1" width="968" height="188" scaleMode="stretch"

      source="@Embed('file:///C:/karnam GV/images/Picture2.png')"/>

      <s:Label x="96" y="13" color="#FCFAFA" fontFamily="Georgia" fontSize="29" fontStyle="italic"

      text="Kolkata&#xd;Municipal&#xd;Corporation"/>

      <s:Image x="10" y="11" width="83" height="105"

      source="@Embed('file:///C:/karnam GV/images/kmc.jpg')"/>

      <s:BorderContainer id="b3" x="38" y="124" width="877" height="489" backgroundColor="#F9F9F9"

         chromeColor="#EFEFEF">

      <s:BorderContainer id="b31" x="10" y="10" width="200" height="276"

         backgroundColor="#D4D4D4">

      <s:Label x="29" y="10" width="125" height="24" color="#AD393E" fontFamily="Georgia"

      fontSize="16" fontStyle="italic" text="Birth Certificate"

      verticalAlign="middle"/>

      <s:RichText x="10" y="46"

      text="Birth certificate serves to &#xd;establish the date and fact of &#xd;one's birth for a whole range of&#xd;purposes like acquiring right to &#xd;vote, admission to schools and&#xd;other government services, &#xd;claiming the right to marry at the&#xd;legally permissible age, &#xd;settlement of inheritance and&#xd;property rights and obtaining &#xd;government issued identity&#xd;documents like driving licence&#xd;or passport"/>

      </s:BorderContainer>

       

      <s:BorderContainer id="b32" x="10" y="294" width="200" height="186"

         backgroundColor="#D4D4D4">

      <s:Label x="54" y="6" width="80" height="24" color="#AD393E" fontFamily="Georgia"

      fontSize="16" fontStyle="italic" text="Quick links" verticalAlign="middle"/>

      <mx:LinkButton x="-4" y="33" width="121" label="&gt; Download forms" textDecoration="underline"/>

      <mx:LinkButton x="-3" y="52" width="190" height="23"

         label="&gt; Death certificate registration" textAlign="left"

         textDecoration="underline"/>

      <mx:LinkButton x="-3" y="71" width="178" height="22"

         label="&gt; Status of availed services" textAlign="left"

         textDecoration="underline"/>

      <s:Label id="message" />

      </s:BorderContainer>

      <s:BorderContainer id="b33" x="218" y="10" width="651" height="467"

         backgroundColor="#F0EEEE">

      <s:Label x="10" y="14" color="#AD393E" fontFamily="Georgia" fontSize="15"

      fontStyle="italic" fontWeight="bold" text="BIRTH REGISTRATION"/>

      <s:BorderContainer x="31" y="37" width="398" height="391" borderVisible="false">

      <s:Image x="-19" y="-16" width="45" height="39"

      source="@Embed('file:///C:/karnam GV/images/one.png')"/>

      <s:Form x="3" y="0" width="395" height="381">

      <mx:Label x="30" y="49" fontFamily="Arial" fontSize="15"

      text="Child name" />

      <mx:TextInput id="chnm" width="220" height="18" contentBackgroundColor="#FFF9F9"

        text="{childname}" />

       

      <mx:Label fontSize="15" text="Date of birth"

      x="30" y="78"/>

      <mx:TextInput id="dob" width="220" height="18" contentBackgroundColor="#FFF9F9"

        text="{dateofbirth}" />

      <mx:Label x="30" y="107" fontSize="15" text="Place of birth"/>

      <mx:TextInput id="pob" width="220" height="18" contentBackgroundColor="#FFF9F9"

        text="{placeofbirth}" />

      <mx:Label x="30" y="138" fontSize="15" text="Mother's name"/>

      <mx:TextInput id="mn" width="220" height="18" contentBackgroundColor="#FFF9F9"

        text="{mothersname}" />

      <mx:Label x="30" y="169" fontSize="15" text="Father's name"/>

      <mx:TextInput id="fn" width="220" height="18" contentBackgroundColor="#FFF9F9"

        text="{fathersname}" />

      <mx:Label x="30" y="169" fontSize="15" text="Doctor Name"/>

      <mx:TextInput id="dn" width="220" height="18" contentBackgroundColor="#FFF9F9"

        text="{doctorsname}" />

      <mx:Label x="30" y="169" fontSize="15" text="Hospital name"/>

      <mx:TextInput id="hn" width="220" height="18" contentBackgroundColor="#FFF9F9"

        text="{hospitalname}" />

      <mx:Button id="Btn1" label="Submit" alpha="1.0" chromeColor="#6C0C0C"

         click="sendSubmit()" color="#FCFBFB" fontSize="14"/>

       

      </s:Form>

       

      </s:BorderContainer>

      </s:BorderContainer>

      </s:BorderContainer>

      </s:BorderContainer>

      </mx:Application>

       

      I have Given Code like this...no errors ...when i did export release build im getting some errors like...

      TypeError: Error #1006: getResourceBundle is not a function.

      at sap::FlashIslandLoader$cinit()

      at global$init()[D:\depot\_build\tc\wd.flex\NW730CORE_SP_COR\src\_flashislands_custom\script \sap\FlashIslandLoader.as:7]

      at sap::FlashIsland$/register()[D:\depot\_build\tc\wd.flex\NW730CORE_SP_COR\src\_flashisland s_custom\script\sap\FlashIsland.as:29]

      at bc/initApp()[C:\Users\c5158344\workspace\bin-debug\bc\src\bc.mxml:34]

      at bc/___bc_Application1_initialize()[C:\Users\c5158344\workspace\bin-debug\bc\src\bc.mxml:7 ]

      at flash.events::EventDispatcher/dispatchEventFunction()

      at flash.events::EventDispatcher/dispatchEvent()

      at mx.core::UIComponent/dispatchEvent()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\co re\UIComponent.as:13128]

      at mx.core::UIComponent/set processedDescriptors()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent .as:1871]

      at mx.core::Container/createComponentsFromDescriptors()[E:\dev\4.5.1\frameworks\projects\mx\ src\mx\core\Container.as:4196]

      at mx.core::Container/createChildren()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\core\Conta iner.as:3189]

      at mx.core::UIComponent/initialize()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\ UIComponent.as:7624]

      at mx.core::Container/initialize()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\core\Container .as:3131]

      at mx.core::Application/initialize()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\core\Applica tion.as:1049]

      at bc/initialize()

      at mx.managers.systemClasses::ChildManager/childAdded()[E:\dev\4.5.1\frameworks\projects\fra mework\src\mx\managers\systemClasses\ChildManager.as:189]

      at mx.managers.systemClasses::ChildManager/initializeTopLevelWindow()[E:\dev\4.5.1\framework s\projects\framework\src\mx\managers\systemClasses\ChildManager.as:359]

      at mx.managers::SystemManager/initializeTopLevelWindow()[E:\dev\4.5.1\frameworks\projects\fr amework\src\mx\managers\SystemManager.as:3063]

      at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::kickOff()[E:\dev\4.5.1\frameworks\projects\fra mework\src\mx\managers\SystemManager.as:2849]

      at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()[E:\dev\4.5.1\frame works\projects\framework\src\mx\managers\SystemManager.as:2729]

      at flash.events::EventDispatcher/dispatchEventFunction()

      at flash.events::EventDispatcher/dispatchEvent()

      at mx.preloaders::Preloader/timerHandler()[E:\dev\4.5.1\frameworks\projects\framework\src\mx \preloaders\Preloader.as:542]

      at flash.utils::Timer/_timerDispatch()

      at flash.utils::Timer/tick()

      How to Resolve this ..Can Anyone help me...