html - Embedded Flash application, editable TextFields are not selectable when added as a children of source in fl.controls.ScrollPane -


i have flash app using fl.controls.scrollpane container sprite form. scrollpane.source referenced sprite form flash.text.textfield of form's children.

i tested using firefox , chrome browsers.

when flash file called directly development server, flash application runs correctly, except fact 1 needs click twice before being able select editable textfield.

the situation worsens when flash embedded on page strict control attributes such as:

<embed type="application/x-shockwave-flash" src="https://localhost:flashfile.swf" width="400" height="300" quality="high" scale="scale" allowfullscreen="true" allowscriptaccess="never" salign="tl" wmode="opaque"> 

i read wmode=opaque can bring undesirable side effects, ridiculous, can't select textfield objects. event mouse scroll isn't captured anymore. mouse events not hitting textfield objects.

this peculiar case because other objects such fl.controls.checkbox , fl.controls.combobox works, still clickable/selectable.

question: there should know in special scenario of scrollpane , embedding using wmode=opaque i'm missing out here?

after searching web half day, , combing as3 documentation till eyes go blind, found hint solution problem. i'm doing brain dump here fix textfield selection issue.

a lot of search results hinted @ problems of wmode=opaque , how browsers control mouse events, not many turn direct answers or solutions.

http://www.actionscript.org/forums/showthread.php3?t=170310

the forum question above gives hint, scrollpane object, captures first mouse click focus, lets subsequent click go through children object. tip given shown:

myscrollpane.focusenabled = false 

setting focusenabled property false.

for completeness, i've explicitly set more properties sure:

mousefocusenabled = false; // disable mouse focus on scrollpane focusenabled = false; // disable focus on scrollpane mouseeabled = true; // receives mouse input mousechildren = true; // enable selecting children objects 

miraculously, clicks able select editable textfield objects when flash embedded using wmode=opaque (i'm still not sure whether issue).

the mouse scroll events however, seems solvable external javascript. there's no internal as3 solutions.

that said, unanswered question is: i'm still not sure or how web browsers capture mouse events selectively pass them embedded flash containers. if can shed light on this, , point solution, great.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -