-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
: [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
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
mapNode:XMLNode = this.firstChild;
-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens
Bernard Visscher
Verzonden: maandag 29 mei 2006 17:29
Aan: 'Flashcoders mailing list'
Onderwerp: RE: [Flashcoders] sending HTML image map data to Flash
I don't know how
.
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
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,
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
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
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
[My apologies if you receive this twice -- didn't seem to go through
the first time.]
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
10 matches
Mail list logo