I don't know how with imageready.
One thing you could do is replace all "<area" with "</area><area" and the
last "</map>" with "</area></map>".

But before you do that delete all </area> entries, because flash add's
them(not at the correct place) if you don't use closed area-tags.

Bernard

> -----Oorspronkelijk bericht-----
> Van: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] Namens Marc Hoffman
> Verzonden: maandag 29 mei 2006 17:01
> Aan: Flashcoders mailing list
> Onderwerp: RE: [Flashcoders] sending HTML image map data to Flash
> 
> Very cool solution, Bernard -- thanks! Any way to force 
> ImageReady to close all tags?  - Marc
> 
> At 06:51 AM 5/29/2006, you wrote:
> >__xml = new XML();
> >__xml.ignoreWhite = true;
> >__xml.onLoad = function(success:Boolean){
> >         var xmlString:String = this.toString();
> >         var indexBegin = xmlString.indexOf("<map");
> >         var indexEnd = xmlString.indexOf("</map>")+6;
> >         xmlString = xmlString.substring(indexBegin,indexEnd);
> >         this.parseXML(xmlString);
> >         var mapNode:XMLNode = this.firstChild;
> >         trace(Flashout.INFO + mapNode.firstChild); //traces 
> the first 
> >area
> >(rect)
> >}
> >__xml.load("imagemap.html");
> >
> >The mapNode will hold all area nodes and you can access them 
> as normal 
> >XMLnodes
> >
> >The one thing you should do is close all areas, the map should look 
> >something like:
> >
> ><map name="MY_FLASH_TEST_MAP">
> ><area shape="rect" coords="20,25,84,113" 
> href="rectangle.html" /> <area 
> >shape="polygon" coords="90,25,162,26,163,96,89,25,90,24"
> >href="triangle.html" />
> ><area shape="circle" coords="130,114,29" href="circle.html" /> <area 
> >shape="rect" coords="19,156,170,211" 
> href="mailto:[EMAIL PROTECTED]" /> 
> ><area shape="default" nohref /> </map>
> >
> >
> >Greetz,
> >
> >Bernard
> >
> > > -----Oorspronkelijk bericht-----
> > > Van: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED] Namens Bernard 
> > > Visscher
> > > Verzonden: maandag 29 mei 2006 15:27
> > > Aan: 'Flashcoders mailing list'
> > > Onderwerp: RE: [Flashcoders] sending HTML image map data to Flash
> > >
> > > You can also load the html file with the XML loader.
> > >
> > > Something like:
> > >
> > > var __xml = new XML();
> > > __xml.onLoad = function(succes:Boolean){
> > >       if(success) trace(this);
> > >       else trace("Error loading file"); } 
> > > __xml.load("imagemap.html");
> > >
> > > Now it will trace the full html-file.
> > >
> > >
> > > Bernard
> > >
> > > > -----Oorspronkelijk bericht-----
> > > > Van: [EMAIL PROTECTED]
> > > > [mailto:[EMAIL PROTECTED] 
> Namens GregoryN
> > > > Verzonden: zondag 28 mei 2006 20:20
> > > > Aan: Flashcoders mailing list
> > > > Onderwerp: Re: [Flashcoders] sending HTML image map 
> data to Flash
> > > >
> > > > Hello Marc,
> > > >
> > > > Well, the decision WHERE to parse is yours entirely.
> > > > I think it can also depend on your security goals:
> > > > if you parse in JS, all your funtions, vars at swf's 
> _root etc are 
> > > > available in cache.
> > > > If you just pass all "innerHTML" to flash - something will
> > > be hidden.
> > > >
> > > >
> > > >
> > > > --
> > > > Best regards,
> > > >  GregoryN
> > > > ================================
> > > > http://GOusable.com
> > > > Flash components development.
> > > > Usability services.
> > > >
> > > >
> > > > > --------- Marc Hoffman wrote:
> > > > >
> > > > > 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
> > > >
> > > >
> > > > _______________________________________________
> > > > 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
> > >
> >
> >_______________________________________________
> >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
> 

_______________________________________________
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