Skip navigation
Currently Being Moderated

Where is the focus when scrolling a web page loaded with HTMLLoader?

Jun 3, 2012 12:39 AM

Tags: #html #actionscript3

Hello everyone.

I'm making a simple web browser with HTMLLoader, URLRequest.

The basic process is quite simple:

1. Create a new URLRequest.

2. Load with HTMLLoader.

3. Set the width and the height of the loader then add it as a child.

 

After successfully loading the web page, when I click at a blank area of the page, then press Left, Right, Up or Down to scroll the page, it works wonderfully and I was amazed.

 

But I'd really like to know where (or should I say 'what') is the focus of the keys I pressed? Is the focus of the HTMLLoader or the stage itself?

 

Thanks.

 
Replies
  • Currently Being Moderated
    Jun 3, 2012 4:31 AM   in reply to Greek Fellows

    You should be able to trace the stage.focus property to see where the focus is after you click (use a MOUSE_UP listener for the stage)

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 3, 2012 5:37 AM   in reply to Greek Fellows

    The focus should be wherever you last clicked.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points