I just re-uploaded my code to the files section for clarification.
On Jan 1, 2:29 pm, NJgirl <[email protected]> wrote:
> Wow you are amazing, thank you so much. The rollover/rollout event
> listeners work perfectly. The check boxes always show all of my
> markers no matter what I do. If I change each category one by one to
> false, the checkboxes are not checked. If I change
>
> private function toggleCategory(type:String):void {
> for (var i:Number = 0; i < categories[type].markers.length; i+
> +) {
> var marker:Marker = categories[type].markers[i];
> if (!marker.visible) {
> marker.visible = true;
> } else {
> marker.visible = false;
> }
>
> to (true, true), or (false, false), or (false, true), none of those
> work correctly either.
> I am still trying to figure out how to make the markers not show up
> when the boxes are not checked.
> Any ideas?
> Thanks again!
> Clare
>
> On Dec 31 2008, 3:41 pm, Benji <[email protected]> wrote:
>
> > First, if you don't want the check box marked at runtime you will need
> > to either specify the selected property as false or omit it from your
> > mxml. This will render the boxes unchecked. When creating your markers
> > just make sure the visible property of the marker is set to false.
> > This will make sure that all the markers are only visible when the
> > appropriate check box is marked.
>
> > Secondly, if you want your info windows to open on rollover/rollout
> > events you will need to alter your event listeners as such:
>
> > markerLocal.addEventListener(MapMouseEvent.ROLL_OVER, function
> > (e:MapMouseEvent):void {
> > // Open Marker Info window using openInfoWindow method.
> > });
>
> > markerLocal.addEventListener(MapMouseEvent.ROLL_OUT, function
> > (e:MapMouseEvent):void {
> > // Close Marker Info window using closeInfoWindow method.
> > });
>
> > And your last detial I cannot be much help on. Your data models are
> > very intricate.
>
> > On Dec 31, 12:07 pm,NJgirl<[email protected]> wrote:
>
> > > Hi. I posted the entire file in the files section. It is named
> > > mapxml.mxml.
>
> > > On Dec 31, 12:36 pm, Benji <[email protected]> wrote:
>
> > > > Could you please post your code so we can see what your doing with
> > > > more clarity?
>
> > > > On Dec 29, 10:25 am,NJgirl<[email protected]> wrote:
>
> > > > > Hi. I have a working map using one of the demos. I currently have it
> > > > > set to having all the points come up with check boxes checked on
> > > > > pageload. I would like to remove most of these checkmarks at pageload
> > > > > so the points don't all show unless the user checks them.
>
> > > > > Also my pop-up windows are are clicked to open and close. Can you show
> > > > > me the code for rollover for that? I believe I can get it to roll over
> > > > > but I still need the window to close when I roll off the marker.
>
> > > > > The last thing is: How do I add 1 location to more than 1 category
> > > > > without getting 2 markers in the same spot when both boxes are
> > > > > checked?
>
> > > > > Thank you so much!
> > > > > I really appreciate the help.
> > > > > I posted the file as mapxml.mxml
> > > > > Clare
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---