The pa movie clip must contain the image not the stage itself, also double 
check that your linkage is correct (that is the movie clip has the name pa) 
finally double check that you have export for ActionScript.  What is the 
behavior your currently experience (no icon, the default icon)? 
 Alternatively you should be able to reference the file externally (without 
embedding/exporting for AS) if you'd like to reduce the swf file size and 
have the image load separately (you would lose the dynamic properties that 
you get with movie clip but if you'd like you could also use a Loader then 
drop the content into a MovieClip and drop that in the icon property).  FYI 
I'm not a Flash guy, I solely work in Flex so sorry if some of my 
terminology is a bit off Flash has likely undergone significant changes 
since I used that IDE last.  The problem with your initial post is you're 
making a string variable then you're saying treat this String like a Bitmap 
which it isn't so there's no way for that conversion to happen, consequently 
the run-time will return a null value when trying to cast.  Instead you'd 
want to do something like this:

import flash.net.URLRequest;
import flash.display.Loader;

var myLoader:Loader = new Loader();
myLoader.load(new URLRequest("myMarkerImage.png"));

markerOptions.icon = myLoader;

Alternatively:

var myMovieClipWrapper:MovieClip = new MovieClip();
myMovieClipWrapper.addChild(myLoader);
makerOptions.icon = myLoader;

Written but not tested :), hope this helps more than hurts.

Shaun

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