flex - Equivalent of "View Source" for <mx:HTML> Component -


How can I take a peep on the related HTML after setting the location of a control on a site? I notice that as soon as I set up the location, the html text becomes useless and on the contrary ... then how does HTML appear in the form of a text?

They certainly do not make it easy, but use the trick DOM.

The name of my HTML control is 'html'

  & lt; Mx: html id = "html" location = "http://www.googolflex.com" width = "100%" height = "100%" />  

DOM is contained in HTML component of HTML component, which is easily called 'HTML Loader'.

  var o: object = html.html loader.window .document.getElementsByTagName ("html") [0]; Trace (otext content); Trace (operator text); Trace (operator html);  

I'm not a JavaScript expert, but you've basically exposed the DOM via html.html loader.window. In addition to being a very convenient way of looking at the source, it lets you do lots of JavaScript-esque work through action script.

This help document takes me into this solution:


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -