So, I am having one of these 1009 errors,

I know the map has already run the onReady function, I can see it. But
i still get

TypeError: Error #1009: Cannot access a property or method of a null
object reference.
        at com.google.maps.overlays::Marker()
        at edu.psu.ist.transactive_memory.value::EventVO/setMarker()[C:
\Documents and Settings\vfm105\My Documents\ws3\transactive_memory\src
\edu\psu\ist\transactive_memory\value\EventVO.as:82]
        at edu.psu.ist.neocities.control::ServiceController/addEventToGame()
[C:\Documents and Settings\vfm105\My Documents\ws3\NeoCitiesFlex\src
\edu\psu\ist\neocities\control\ServiceController.as:764]
        at edu.psu.ist.neocities.control::ServiceController/incidentManager()
[C:\Documents and Settings\vfm105\My Documents\ws3\NeoCitiesFlex\src
\edu\psu\ist\neocities\control\ServiceController.as:432]
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at mx.messaging::AbstractConsumer/http://www.adobe.com/2006/flex/mx/
internal::messageHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc
\src\mx\messaging\AbstractConsumer.as:727]
        at mx.messaging::ConsumerMessageDispatcher/messageHandler()[C:
\autobuild\3.2.0\frameworks\projects\rpc\src\mx\messaging
\ConsumerMessageDispatcher.as:251]
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at mx.messaging::ChannelSet/messageHandler()[C:\autobuild
\3.2.0\frameworks\projects\rpc\src\mx\messaging\ChannelSet.as:1363]
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at mx.messaging.channels::StreamingConnectionHandler/
streamProgressHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\src
\mx\messaging\channels\StreamingConnectionHandler.as:603]

The weird thing is that it still adds the marker to the stage... here
is the code where i add the marker...

                public function setMarker (latLng : LatLng) : void {



                        if (latLng == null)
                        {
                                Alert.show("problem with latlng");
                        }
                        else
                        {
                                var markerOptions : MarkerOptions =  new 
MarkerOptions(
                                                                                
                                        {fillStyle: {color: this.color, alpha: 
0.8 },
                                                                                
                                        tooltip: this.eventName});

                                //Alert.show(latLng.toString());

                                var x : Map = new Map;
                                x.initialize();
                                marker = new Marker(latLng, markerOptions);

                                
marker.addEventListener(MapMouseEvent.DOUBLE_CLICK,
this.setDClickHandler);
                                marker.addEventListener(MapMouseEvent.CLICK,
this.setClickHandler);
                        }
                }


Any help would be great... thanks

vince

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