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

  • Home
  • SEARCH
  • 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 6916739
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:38:29+00:00 2026-05-27T09:38:29+00:00

Has anyone been successful in using StageWebViewBridge to load and communicate with an online

  • 0

Has anyone been successful in using StageWebViewBridge to load and communicate with an online web page?

http://code.google.com/p/stagewebviewbridge/wiki/Communication

The documentation and examples offered are all configured around working with local files (which work successfully) and although the instruction to ‘include the StageWebViewBridge.js’ file within the loaded html page sounds very straight forward, sadly it doesn’t seem to work.

For anyone wanting to replicate my test I have uploaded the files here:

http://www.infin8design.com/clients/stack/swvb.zip

I’m basically loading the ‘ExampleCallBackFuncions.html’ file from a web server.
I’ve included the StageWebViewBridge.js file like so…

<script type="text/javascript" src="StageWebViewBridge.js"></script>

When I test the movie I get the correct setup output messages

_serializeObject =>___onDomReady
_serializeObject =>___getFilePaths
_serializeObject =>___onDeviceReady
_serializeObject =>fnCalledFromJS

and the html page appears in the viewport. But on pressing the button which should send a message to Actionscript I get the following error messages:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at es.xperiments.media::StageWebViewBridgeExternal/parseCallBack()[/Users/G5TowerIntel/Desktop/maptest/es/xperiments/media/StageWebViewBridgeExternal.as:88]
at es.xperiments.media::StageWebViewBridge/onLocationChange()[/Users/G5TowerIntel/Desktop/maptest/es/xperiments/media/StageWebViewBridge.as:236]

My goal is to send a message back to ActionScript from the html page.

Thanks,

Mark

  • 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-05-27T09:38:30+00:00Added an answer on May 27, 2026 at 9:38 am

    You are doing some things wrong in your code….

    You must listen to DEVICER_READY event before do any comm between as3 and js and viceversa…

    // listen StageWebViewBridgeEvent.DEVICE_READY event to be sure 
    // the communication is ok
    view.addEventListener(StageWebViewBridgeEvent.DEVICE_READY, onDeviceReady );
    
    // add a callback method for the function we like to call from Javascript
    view.addCallback('fnCalledFromJS', fnCalledFromJS );
    
    // load the localfile demo.html ( inside the www dir )
    view.loadLocalURL('http://www.someserver.com/ExampleBasic.html');
    

    You can take my ExampleBasic and change the line with:

    view.loadLocalURL(‘applink:/ExampleBasic.html’);

    to

    view.loadURL(‘http://localhost/ExampleBasic.html’);

    Then in the server html file add the line with reference to the .js file

    It must work…

    Say me…

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

Sidebar

Related Questions

Has anyone been successful with the integration of Phonegap in Bada? I am using
Has anyone been successful in adding the registered sign symbol to their text using
Has anyone been able to successfully get a user's OAuth token using reverse auth?
Im trying to load a flash movie using swfobject which i have been successful
I'm attempting my first SSO integration using SAML 2.0. I've been using: http://www.codeproject.com/KB/aspnet/DotNetSamlPost.aspx?msg=3562384 as
Has anyone been able to successfully unit test methods that are, by necessity, coupled
Has anyone been able to get an NHibernate-based project up and running on a
Has anyone been able to get xinc to run correctly under OpenBSD's chrooted default
Has anyone been able to get a variable record length text file (CSV) into
Has anyone been able to create Container-Specific Master Pages for Safari or Chrome? I

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.