It's easy .
Create a movie clip which is the animated marker , from library Export
it to ActionScript through Linkage and give it any name like
AnimMarker , then from AS panel create an instance of that :
var animMarker: AnimMarker = new AnimMarker();
//then add an event listener and the event :
animMarker.addEventListener(MouseEvent.ROLL_OVER, doRoll01);
function doRoll01(event:MouseEvent):void
{
Tweener.addTween(animMarker, {scaleX:2.0, scaleY:2.0, time:1.4, alpha:
1.0, transition:"easeIn"});
}
animMarker.addEventListener(MouseEvent.ROLL_OUT, doRoll02);
function doRoll02(event:MouseEvent):void
{
Tweener.addTween(animMarker, {scaleX:1.0, scaleY:1.0, time:1.0, alpha:
1.0, transition:"easeIn"});
}
then just add the animMarker instance as an icon in your MarkerOptions
"icon"
** I am using Tweener here so import :
import caurina.transitions.Tweener;
hope I helped
On Oct 14, 10:12 am, Phantobass <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> I want to have animated marker icons that would "grow" when rolled
> over and load a small image of the location inside it. on rollout the
> marker icon would shrink back to its original size.
> What would be the best way to achieve that? is there a way to target a
> marker's icon once it's been created with markerOptions?
>
> thanks!
> P
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---