how set focus on flash object in webView ?

Discussion in 'Mac Programming' started by artbeat.easy, Jul 12, 2010.

  1. artbeat.easy macrumors newbie

    Joined:
    Jul 1, 2010
    #1
    Hi, i have some problem with setting focus on flash object ! in my app swf object not respond keyboard event but if i click on swf object my swf begins respond keyboard event

    Here is simple example http://dedalas.ru/TryFixKeyboardEvent.zip
     
  2. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    I'd suggest looking around here:
    -[WebView stringByEvaluatingJavaScriptFromString:]
    -[WebFrame DOMDocument]
    -[DOMElement focus]
     
  3. artbeat.easy thread starter macrumors newbie

    Joined:
    Jul 1, 2010
    #3
    hm… mb simple example ?

    stringByEvaluatingJavaScriptFromString what script me need Evaluating ?
    Code:
    return document.myFlash;
    ?
    -[WebFrame DOMDocument] ok i get DOMDocument what's next ?
    -[DOMElement focus] - how i can get DOMElement ?
     

Share This Page