@Harbs, thanks for responding.  Please be patient because I am very new to
this.  I have a couple of questions about this approach because it does not
make sense to me.  I am not trying to communicate between different iframes,
I am trying to get simple data OUT of an iframe, and back into my
actionscript.  On the asdocs for IFrame, there is no mention of the event
"message" in IFrame, and I can't get it to work.  Inside of the IFrame html
file, I have tried all three of these:

        window["top"]["postMessage"]("foobaz",'*');
        window.parent["postMessage"]("foobaz", '*');
        postMessage("foobaz", '*');

In Actionscript, I have the following:

        map.addEventListener("message", mapsEventHandler);

        public function mapsEventHandler(event:Event):void {
            trace("I Heard The Message");
        }

        <html:Iframe localId="map" width="100%" height="100%"/>

In it's simplest form, if the IFrame component was able to hear the
postMessage from the actionscript side, it should have traced out "I Heard
The Message".  I know you are good at this stuff, what am I missing?



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/

Reply via email to