Hi Diego-

Every time you use a class, you need to import it at the top of your
code. Check the reference to see what package each class comes from.

In Flash CS3/4 code, you don't use "private" or "public" before the
functions. Arothian was showing Flex code that could be adapted. Since
many of us here use Flex, it'll be a useful skill for you to learn how
to adapt Flex code to CS3 code, as in this case.


- pamela


On Wed, Mar 4, 2009 at 6:43 AM, Diego Gonzalez Joven
<[email protected]> wrote:
>
> FOR SOME ODD REASON THE LAST POST WAS INCOMPLETE....
>
>
> "            private function initMap(event:MapEvent):void {"
>
> i keep getting compile errors when i have the "private" before "function"
>
>
> on every sample or demo I see on the google api documentation it has the
> "private" that always gives me problems....ANY WORD ON WHY IS THIS???
> also when i remove the  "private" I get a compile error
> 1046: Type was not found or was not a compile-time constant: MapOptions.
>
> >
>

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