Hi Alberto,
This file will not work as you the URL path of the files in MAC and WIndows differts u have defined the absolute path of the file which is for MAC (The location i mean to say) The window versions differs so .. please check if u need more help please buzz me Regards Abdulla. On Sep 27, 3:37 pm, alberto_il <alberto_i...@yahoo.com.br> wrote: > Hi, > > Please help me with the following issue: > > I created a flex (web) application which reads a log file (rsi.log) > and load the content into a DataGrid. Everything running fine in my > Mac but when I copied application to a windows PC it doesn´t load the > file and it doesn´t show any exception > > code below: > > fileURL="/Users/Alberto/Documents/LP/rsi.log"; > // in windows I tried several things as the URL > "rsi.log", "c:\folder\rsi.log", "file://..." > > var myURLLoader:URLLoader = new URLLoader(); > > myURLLoader.load(new URLRequest(fileURL)); > > > myURLLoader.addEventListener(IOErrorEvent.IO_ERROR,readyissue); > myURLLoader.addEventListener > (SecurityErrorEvent.SECURITY_ERROR,security); > myURLLoader.addEventListener(Event.COMPLETE, > completeHandler); > > function completeHandler(evt:Event):void { > > str = URLLoader(evt.currentTarget).data as String; > loadPattern(); // divide and load the string > (srt) into the > datagrid > > } > > function security():void{ > Alert.show("security") > } > > function readyissue():void{ > Alert.show("IO") > } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to flex_india@googlegroups.com To unsubscribe from this group, send email to flex_india+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---