Praveen-
Please find below code snap.
If you want to save a.txt +b.txt =c.txt you can use file ref with
appropriate data.
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="
http://ns.adobe.com/mxml/2009"
xmlns:s="library://
ns.adobe.com/flex/spark"
xmlns:mx="library://
ns.adobe.com/flex/mx" minWidth="955"
minHeight="600">
<fx:Script>
<![CDATA[
import mx.controls.Label;
private var txt_loader:URLLoader;
[Bindable]
private var mergeString:String='';//to avoid null need to put this
line as ''
protected function button1_clickHandler(event:MouseEvent):void
{
txt_loader=new URLLoader();
var uri:URLRequest=new URLRequest('assets/a.txt');
txt_loader.addEventListener(Event.COMPLETE,onComplete);
txt_loader.load(uri)
txt_loader=new URLLoader();
var uri:URLRequest=new URLRequest('assets/b.txt');
txt_loader.addEventListener(Event.COMPLETE,onComplete);
txt_loader.load(uri)
}
protected function onComplete(e:Event):void{
mergeString+=e.target.data;
}
]]>
</fx:Script>
<s:Button x="10" y="10" label="loaddocs"
click="button1_clickHandler(event)"/>
<s:TextArea x="10" y="58" width="459" height="263" id="ta"
text="{mergeString}"/>
</s:Application>
On Aug 27, 8:49 am, PRAVEEN CHOWDARY RAMINENI
> *With Regards,
> PRAVEEN. RAMINENI
> **
http://praveenramineni.webs.com/*<
http://praveenramineni.webs.com/>