Hi,
I need to load a .shp file (which is stored locally) in the flex code
using httpService tag.
Part of the code:
                <mx:HTTPService id="shpfile" result="shpFileResult(event)"
resultFormat="text" url="C:\\MapData\tmpShapefile\Shapefile.shp"/>
                <mx:Button id="shpfileButton" click="shpfile.send()" label="Get 
the
Shape File"/>

and the fuction is:
                private function shpFileResult(event:ResultEvent):void
                        {
                                //dataIn = event.result as ByteArray;
                                //Alert.show("Data:" + data);
                                //C:\\MapData\\tmpShapefile\Shapefile.shp, 
C:\\MapData
\ShapefileResponse.xml
                                var data:String = event.result as String;
                                Alert.show("Data:" + data);
                                /*var retxml:XML = XML(event.result);
                                Alert.show("Data:" + retxml);
                                var retDoc:XMLDocument = new 
XMLDocument(retxml);
                                var decoder:SimpleXMLDecoder = new 
SimpleXMLDecoder(true);
                                var mapObj:Object = decoder.decodeXML(retDoc);*/

                        }

I am getting null value,that means it is not getting data in or code
is wrong?
Thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API For Flash" 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/google-maps-api-for-flash?hl=en.

Reply via email to