Thanks a lot Jorge. Will try this.

On Mar 10, 11:21 am, luis jorge castillo porras <[email protected]>
wrote:
> you need to r/w asynchronous and addeventlistener when the its in process of
> read of writen and then you cant display the popupMenu inside the method
> when its done you .. remove the popup
>
> Luis Jorge Castillo P.
>
> Sent from: San José San José Costa Rica.
>
>
>
> On Mon, Mar 9, 2009 at 8:48 PM, VijayRama <[email protected]> wrote:
>
> > Hi
>
> > I use the below code to display a popup while reading and writing of
> > file is performed.
>
> > But the popup does not appear eventhough the file read and written is
> > big and takes more time for it. Only the wait cursor of the system
> > appears while performing this r/w process.
>
> > I am using Adobe AIR.
>
> > Please help.
>
> > var save:popWin=PopWin(PopupManager.CreatePopup(this,popWin,true);
> > var fb:ByteArray=new ByteArray();
> > var fst:FileStream=new FileStream();
> > fst.open(new File(path),FileMode.READ);
> > fst.readBytes(fb);
> > var en:Base64Encoder=new Base64Encoder();
> > en.encodeBytes(fb);
> > var encStr:String=en.drain();
> > fst.close();
> > var f:File=new File (writePath);
> > var fs:FileStream=new FileStream();
> > fs.open(f,FileMode.WRITE);
> > fs.close();
> > PopUpManager.removePopup(save);- Hide quoted text -
>
> - Show quoted text -

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to