i've searched this forum for an answer, and see that i'm not the only one to have this problem.
I'm using a mx:HTML control to display content of several HTML pages on a list.
Since i'm developping a multitouch application, i need to prevent user from selecting the HTML page text and prevent the HTML control to scroll (since the user will use touch gesture to scroll the list, not the HTML control..).
Is there any way to do that?
Thanks a lot,
The easiest way to do this is by loading the content inside an iframe, and putting a fixed positioned div on top of it, like in "<div id="overlay" style="position: fixed; top:0; left:0; width: 600; height:400"></div>" (you can calculate the size dynamically, of course).
When you want to disable all interactions, you simply set the div's visibility to "visible" (loader.htmlLoader.window.document.getElementById("overlay").style.visibility = "visible";)
When you want to enable the interactions again, you simply hide the div (loader.htmlLoader.window.document.getElementById("overlay").style.visibility = "hidden";)
is there a way to do it without using iFrame and do it with mx:Html control . If you have set iframe, where should it be set in an air application .