Hey all,

I'm currently trying to make a CustomMarker class which inherits the
Marker class in the google API.

Here is my code in CMarker.as (the actionscript file I've made):

// -- CODE START -- //
package
{
        import com.google.maps.*;
        public class CMarker extends Marker
        {
                private var markerAddress : String;
                private var markerType : Number;


                public function CMarker (_point : LatLng, _address : String, 
_type :
Number) : void
                {
                        markerAddress = _address;
                        markerType = _type;
                        super(_point);
                }
        }
}

// -- CODE END -- //

However, when I do this, I get the error:
"1017: The definition of base class Marker was not found."

When I add com.google.maps.overlays in front of package, so package
com.google.maps.overlays { ...rest of code, I get the error:
"5001: The name of package 'com.google.maps.overlays' does not reflect
the location of this file. Please change the package definition's name
inside this file, or move the file. C:\Users\...\Flash\CMarker.as"

The CMarker.as file is in the same directory as the .fla file from
which I am accessing it.

Does anyone know what the problem is? I would like to get this CMarker
class to work in my .fla.

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