Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8987661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T21:51:02+00:00 2026-06-15T21:51:02+00:00

I am building an HTML-based AIR app and in order to invoke ActionScript methods,

  • 0

I am building an HTML-based AIR app and in order to invoke ActionScript methods, I append hash tags on the HTML app’s URL with specific patterns (#AIRBRIDGE_methodName_arguments). Using window.location = ‘#AIRBRIDGE_methodName_arguments’; in the JavaScript of the HTML app invokes the AIR LocationChangeEvent.LOCATION_CHANGING event, but when I try to access the StageWebView.location value the hash is not returned.

Has anyone had experience with this? Here is the ActionScript code:

public function LoadHtmlPageByName(pageName:String, stage:Stage):void
    {
        stage.scaleMode = StageScaleMode.EXACT_FIT;

        webView = new StageWebView(); 
        webView.stage = stage;
        webView.addEventListener(LocationChangeEvent.LOCATION_CHANGING, onLocationChange);
        webView.viewPort = new Rectangle(0, 0, stage.stageWidth, stage.stageHeight);

        var htmlPath:String = new File(new File("app:/assets/html/" +  pageName + "#something").nativePath).url;
        webView.loadURL(htmlPath);
    }

    public function onLocationChange(event:LocationChangeEvent):void
    {
        trace("you are now at: ", webView.location);
    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T21:51:04+00:00Added an answer on June 15, 2026 at 9:51 pm

    Instead of # (hash anchoring), use an unknown protocol for window.location.

    Example: window.location=”unknown:/and_add_here_your_method_info”.

    Adobe Air can trap that through LocationChangeEvent.LOCATION_CHANGE or LOCATION_CHANGING.

    Notes for iOS:
    Also listen to EventError.Error. In my case using Adobe Air 3.4, the value of window.location is being passed to EventError.text. So also check on that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing out an HTML table and building an array based on the row
I was building a simple web based calculator which takes equations from a HTML
I'm building a composite control that renders HTML on a page based on a
I am building an HTML table based on the results of a query that
http://blog.jeremymartin.name/2008/02/building-your-first-jquery-plugin-that.html Based on this tutorial, I created my first plugin and made some modifications.
I am building a small web based game, using html 5. I need my
I'm building a browser based app in Python with the help of Jinja2 and
I am building a little web based application using an HTML table. One unusual
I'm building a pretty basic HTML table creator/editor (based on a designMode iframe) at
I'm building an AJAX based portfolio module using pushState / hash bangs and as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.