Thanks, Gregory! I'm passing this along to the person who's been working on parsing the image map from within flash. You approach would seem to eliminate the need for parsing by Flash.

[Peter: what do you think?]

Marc

At 10:35 AM 5/27/2006, you wrote:
Hello Marc,

I can suggest the following:
1) place your image map description inside <div> tag and set ID to
this div. Say, <div id="myMap">

2) Create a function in Javascript that reads the
document.getElementById("myMap").innerHTML;
and sets some of hosted swf's var(s) according to content of this
"innerHTML".

3)  From Flash, call this JS function:
getURL(javascript:...);

Done.


Feel free to ask questions or email me offlist.


--
Best regards,
 GregoryN
================================
http://GOusable.com
Flash components development.
Usability services.

> On 25/05/06, Marc Hoffman  wrote:
>
> Anyone have tips on making Flash read the image map on the host html
> page and parse it into a multi-dimensonal array (as would happen if
> we were importing xml)?
>
> In a web-based project, we provide non-flash browsers with a jpg and
> image map. We want to grab the image map data directly from the html
> and send it to the swf so that Flash can construct hit areas and URLs
> from that data (it's too cumbersome to copy this data manually into
> the .fla). I'm having trouble parsing the image map data inside
> Flash. For one thing, I have to account for the way I.E. rewrites
> html (different quoting conventions, for example). It would be nice
> if the image map data were sent to Flash in more of an xml format.
>
> Does this already exist? Any thoughts?
>
> TIA,
>
> Marc

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to