Hi.........
jus try this
Mainapp.mxml :
****************
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:local="*">
<mx:Script>
<![CDATA[
[Bindable]
private var printValue:String;
private function dataHandler():void{
printValue = inPut.inputName.text;
}
]]>
</mx:Script>
<mx:TabNavigator left="10" right="10" width="100%" height="100%"
backgroundColor="#FFFFFF" borderStyle="none">
<local:InputSheet id="inPut" />
<local:OutputSheet id="outPut" creationComplete="dataHandler()"
PrintName="{printValue}"/>
</mx:TabNavigator>
</mx:Application>
Two MXML Components :
*******************************
InputSheet.mxml :
*****************
<mx:Canvas
xmlns:mx="http://www.adobe.com/2006/mxml"
width="100%"
height="100%"
label="INPUT SHEET" creationComplete="//onInit();">
<mx:TextInput id="inputName" />
</mx:Canvas>
OutputSheet.mxml :
******************
<mx:Canvas
xmlns:mx="http://www.adobe.com/2006/mxml"
width="100%"
height="100%"
label="OUTPUT SHEET"
creationComplete="//onInit();">
<mx:Script>
<![CDATA[
[Bindable]private var _printName:String;
[Bindable]
public function set PrintName(value:String) :
void
{
_printName = value;
}
public function get PrintName() : String
{
return _printName;
}
]]>
</mx:Script>
<mx:TextInput id="printName" text="{_printName}"/>
</mx:Canvas>
-----------
Sukumar.
________________________________________________
On Nov 9, 1:41 pm, senling <[email protected]> wrote:
> Hi,
> I need to get the value from the InputSheet.mxml textinput and display
> it in the OutputSheet.mxml textinput. How can i achieve this while
> navigating the tab. The code is followed
>
> Mainapp.mxml :
> ****************
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
> xmlns:local="*">
>
> <mx:TabNavigator left="10" right="10" width="100%" height="100%"
> backgroundColor="#FFFFFF" borderStyle="none">
> <local:InputSheet />
> <local:OutputSheet/>
>
> </mx:TabNavigator>
>
> </mx:Application>
>
> Two MXML Components :
> *******************************
> InputSheet.mxml :
> *****************
> <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="100%"
> height="100%"
> label="INPUT SHEET" creationComplete="onInit();">
> <mx:TextInput id="inputName" />
> </mx:Canvas>
>
> OutputSheet.mxml :
> ******************
> <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="100%"
> height="100%"
> label="OUTPUT SHEET" creationComplete="onInit();">
>
> <mx:TextInput id="printName" />
>
> </mx:Canvas>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---