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