Clearing Stage focus

Posted on 2008-11-09
Last Modified: 2013-11-11
How do i clear the stage focus in ActionScript 2.0 I got this code here as

this.stage.focus = null;

This isn't working

What i want to do is lets say I have focused to a text area and i roll out of the loaded swf i want to clear the focus of the externally loaded swf.
Question by:stargateatlantis
    1 Comment
    LVL 39

    Accepted Solution

    hello, first of all, in AS2 you'd use Stage, not stage.
    but i'm not sure if its a syntax issue.
    you might want to rather explicitly set the focus to something else so that your swf file loses focus.
    you could probably use listeners, but it all depends how that externally loaded swf was loaded.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Suggested Solutions

    I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
    There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
    The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.
    This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now