It sounded like more_info.html was an html file with # anchors in it.
 
If you stick that in an IFrame of id="moreInfo" you can add JS code the
main html to talk to the IFrame and give it new urls with the right #.
 
Your more_info will be a floating IFrame in HTML floating over the SWF
if you can get it right.  You can show/hide it with setting visible via
EI.
 
I'm sure there is more than one solution here so go with what you know
and what works for you.  I'm definitely not an expert on HTML.
 
-Alex

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of barry.beattie
Sent: Monday, May 07, 2007 1:34 AM
To: [email protected]
Subject: [flexcoders] Re: pulling in HTML content - looking for ideas



you might be on to something here, Alex...

(kicking around the idea...)

in the "more_info.html" file I can replace the 

<a name="#policy101"><h2>Policy 101</h2></a>
<p>
...
</p>

with 

<div id="policy101">
<h2>Policy 101</h2>
<p>
...
</p>
</div>

and then use myDiv.innerHTML to get each section of the HTML as needed?

HOWEVER...
(1)I thought ExternalInterface only allowed communication with the
Flex swf and it's continer HTML doc. I'm lost on how it can talk with
a "third party"...

... or are you suggesting "more_info.html" *is* the swf's container
doc and all the div's are hidden, showing only the swf?

(2) is the idea to get JavaScript to return the requested HTML back to
Flex's TextInput.htmlText?



 

Reply via email to