StageWebViewBridge Load And Communicate With Online Page

Dec 9, 2011

Has anyone been successful in using StageWebViewBridge to load and communicate with an online web page? [URL]. 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: [URL]. 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.

View 2 Replies


Similar Posts:


Have Two Swf Files On Same Html Page That Can Communicate To Each Other?

Jun 5, 2009

Was just wondering if its possible to have a two swf files on the same html page that can communicate to each other.

I have one movie that asks a series of question and what I'd like to happen is for those results to be shown in the 2nd swf. Sounds simple, which means it probably isnt

View 8 Replies

ActionScript 2.0 :: Can 2 Swfs On The Same Page Communicate With Each Other Directly

Mar 5, 2009

Can 2 swfs on the same page communicate with each other directly? Or do you have to do something tricky like setting variables in a stored object from one swf and then constantly checking for updates to it in the other swf?

View 1 Replies

ActionScript 3.0 :: Communicate With Page Class That's Not Loaded Yet?

Mar 6, 2011

I have an app with a setup page that requires the user to select a scenario for a quiz. Their choice determines the content that's loaded next.

With as2 I would have used a global variable to indicate the users choice but of course that's not longer an option, and I don't think I can send an event because the next page isn't loaded yet.

So how do I communicate with a class belonging to a dynamically loaded swf that isn't loaded yet?

View 1 Replies

Ios :: StageWebViewBridge Loading Included Assets?

Sep 16, 2011

My priority is to have a fullscreen (standard size) 1024x768 H264 video played on an ipad app compiled with flash CS5.5 AIR for iOS using the StageWebView class. This works perfectly fine. Although with no official way to communicate with the StageWebView, I can't 'remove' the video once it's done playing. Enter StageWebViewBridge which enables AS <=> JS communication.

I'm trying to get around the overall poor performance of the Video class on the iPad (1 or 2). Playing the video inside a StageWebView loading a html5 object works amazingly great (read: GPU hardware decoded h264).I do need to shut the video off after it's done playing in the StageWebView. I am packaging a .mov file encoded in H264 that plays great in webkit browsers. If I just load a webpage in the StageWebView with a tag pointing to any video file it plays perfectly fine.

Once I introduce StageWebViewBridge it changes. They want files put in a /html folder. I'm sending paths of all kinds for the players src to play and no video ever loads. The video is named 'a.mov'. I tried player.src = 'a.mov', or player.src = 'html/a.mov', or player.src = './html/a.mov' or even using the File class to get the File.applicationDirectory and resolve the file to the .nativePath. No matter what I send from AS to the JS in the StageWebView page, I cannot get it to load the video.

how to reference embedded files? I'd like to send the file to load from AS to JS and have JS reset the .src property of a html5 element. Even the File.applicationDirectory reference I make states the file 'exists', but I can never set the .src property of the element on the page. It doesn't seem to understand.

View 2 Replies

F8 :: Page-Flip - Works Online But Not Offline?

Aug 7, 2008

We're using the script to have an online brochure, and now want to be able to put it on a CD for offline browsing as well.When it is viewed offline, an error message pops up and wants me to add the page/folder in here:Since this is a plugin script that doesn't have an fla file for me to edit, what are my options here? I've tried to decompile the swf file in order to make the changes, but that doesn't work (the script is fairly complex, so I didn't think it would decompile fully).

View 6 Replies

Page To Have A 30 Sec Movie On It That People Have To Watch In Order To Get Online?

Mar 25, 2009

We are a Wireless ISP and we have portal page at a local airport. We offer free wifi there because of sponsorship. We would like the page to have a 30 sec movie on it that people have to watch in order to get online. I have 2 ideas on how to do this. 1. watch the movie and when movie is over automatically call to our login script and then log the user in through our network device. 2. have a get online button grayed out until the movie is over after the movie is over button becomes clickable and then the button after clicked calls to the script that logs my users in through my device.

View 5 Replies

ActionScript 2.0 :: When Page Is Online Scroll Sometime Doesnt Work

Apr 11, 2010

I'm editing this template but there is a problem, when the page is online the scroll sometime doesnt work.URL...I don't understand why, in the swf everything is perfect, but when the page is online if we test the scroll sometimes it simply doesn't work.[code]

View 1 Replies

ActionScript 2.0 :: Creating Online Brochure With Turning Page Option

Aug 5, 2006

I am trying to create an ibrochure or ebrochure, an online brochure where the user of it can turn its pages. It also looks like the content is actually on the page. Is there anyone who knows a trick or .fla file already on the site?

View 4 Replies

ActionScript 3.0 :: Flash Page Working Local Not Online (safari)?

Oct 15, 2010

I am making flash page and i have put it on my test server:[URL]It works in ie and firefox but not safari. But when i try it in safari locally on my computer it works.

View 3 Replies

ActionScript 3.0 :: Develop A Online PDF Viewer In Flash That Should Have The Options Of Page Navigation

Dec 8, 2009

I need to develop a online PDF viewer in Flash that should have the options of Page navigation, Zoom, Search, print How is is possible.

View 2 Replies

IDE :: SWF Does Not Load Online With MovieClipLoader

Aug 11, 2009

I recently began working on a large game. The main swf that all the levels load from also acts as a runtime library. When the MovieClipLoader loads the next level, if that level imports any mc's from the main swf then it won't load. It works fine straight from the HDD though.

I could really use a hand. I've used up most of my brain power figuring out the source of the problem (there's a lot of stuff to sift through).

I mis-spoke before. The MCL will load level.swf, I see the progress bar and OnLoadInit executes which should mean that the first frame of the level was initialized, but nothing appears.

View 4 Replies

ActionScript 2.0 :: Xml Load Locally But Not Online

Dec 5, 2009

Im trying to load xml files on another domain on mine. This code works locally but not when i post it to my server. Can you explain what im doing wrong?[code]

View 8 Replies

Website Won't Load Properly Online

Jan 21, 2010

I have an issue with website load.

[URL]

the content won't show untill you refresh 3-4 times.

View 6 Replies

ActionScript 3.0 :: Load A Local Swf Into Online Swf?

Oct 8, 2010

I am trying to upload a local swf into a swf app that i have on my server, any ideas about how to do this?

View 1 Replies

ActionScript 3.0 :: Load Rss Feed From Swf Online

Nov 13, 2011

I just create a rss reader of itunes feeds that work perfectly on my deskstop but when I put it online the Event.COMPLETE, rssLoaded is never fired look like the loading of the feed is impossible. I change with another feed : same problem I test this on my personal website Numéricable ( France) and on a blog plateform I saw security alert when I launch in my brownser but people on the forum said that it just a problem when you run the swf locally...

View 6 Replies

AS3 :: Load External Image Online

Jan 7, 2011

I would like to load an external image to a flashwebsite.I do this using a Loader.[code]When I test the swf offline, it works. But when I put everything online and I browse to the HTML file, it doesn't load the images anymore.What do I have to do to load external images online?

View 3 Replies

Server Side :: Have A Different Image Load On Home Page Everytime The Page Refreshes?

Jun 2, 2011

I want to have a different image load on my home page everytime the page refreshes or someone visits it. Is it possible to do it without using Flash?

View 2 Replies

ActionScript 2.0 :: Online RSS Load Only Works In Editor

Jun 29, 2009

im loading some RSS from twitter.. it works fine when i'm testing local, but when customer uploads it on 3rd part server, it doesent work. It's most likely a flash security issue. Is it possible to make a serverscript file that outputs the RSS to flash? Our server does have both ASP and PHP directories.. so any will do.

View 0 Replies

ActionScript 2.0 :: Load Xml Works Locally But Not Online?

Dec 6, 2009

I'm trying to load xml files on another domain on mine. This code works locally but not when i post it to my server. [code]...

View 0 Replies

ActionScript 3.0 :: Load Txt File From Desktop To Online Swf?

Sep 17, 2010

I am trying to find the solution to loading a .txt from c:/ to my online swf.

View 2 Replies

Make The Buttons On Each Page Load The Next Page (sprite) From The Library?

Jun 29, 2011

My basic aim is to create a newspaper that consists of four pages. Each page i have created and are sitting in the library as sprites. Each page has buttons that need linking so that when pressed it loads the next page or page that i want. This is the part i am confused with =/ how do i make the buttons on each page load the next page (sprite) from the library??

View 2 Replies

Javascript :: Getting A Flash Video On New Page Load At Position It Was At On Last Page

Oct 11, 2011

I have a an unobtrusive flash video looping in the background of a website, it is not essential to navigation - it is purely cosmetic.The flash video loops every 30 seconds.As this video is on all pages, it jumps back to the start when a new page is loaded.Is there an actionscript / javascript way to get it to remember the position it got to on the old page so it can start there on the new page?I do know that this can be accomplished by loading the flash movie in a frame as well as by having the subsequent pages load the contents in AJAX but I was hoping not to go down this route.I have seen other people ask the question and allude to the solution but they only posted that they got it to work without saying how.

View 1 Replies

ActionScript 2.0 :: Load External Swf Into Main Page And Remove When Nav To New Page

Jan 7, 2009

I am trying to load an external swf with a number of quotes into an empty movie clip on the home page. then I want it to obviously disappear when nav to any other page.

1) know that you need a loaderEmpty_mc to load the swf into

2) don't know code for how to get it to load on entering the home page

3) don't know how to cdde for leaving the home page and making it disappear

View 3 Replies

ActionScript 2.0 :: Load A Different Page For The Flash Player To Scroll Up All The Way To The Top Of The Page Itself?

Apr 25, 2007

Im working on a website for school, and im doing it through flash. The server ive been given is being taken up by thousands of pages, so its slow. Instead of loading each page through HTML, ive decided i could do a seperate frame for each page. However, to reach the menu at the bottom, you have to scroll down. Is there any way to make it so that when you click a button to load a different page for the flash player to scroll up all the way to the top of the page itself?

View 1 Replies

IDE :: Full Movie Not Loading - Only Index SWF Load Online

Mar 1, 2009

Setup: I have an html page with an embedded flash object. The object is an "index.swf" with an empty movie clip on it. External swf's load onto the index swf via the empty movie clip when buttons are pushed.

Problem: On my test server in dreamweaver, the swf's load fine. When I put them on my server and test it online only the index swf loads. not the initial swf or any of the other swf's.

Site: [URL]
Files: [URL]
(index page and home page for your reference)

View 3 Replies

ActionScript 3.0 :: External Swf (load/unload/or Link Frame) - With Online Example?

Nov 18, 2009

I am making a flash site where one of my pages loads an external swf. In this external swf I have sub pages with links. My problem is when I visit a page from this external swf, and then go to a page from my main website (clicking my main time line buttons) and then go back to the page with the external swf i was previously on, the page would go to the last page i was on, instead of refreshing it back to the main frame of the external swf.

I made a small, simple example of what I am experiencing on the site I'm working on.

[Code]...

View 2 Replies

ActionScript 2.0 :: PHP - Load Random Jpgs Into A Movieclip From A Folder Online?

Jan 6, 2005

Firstly I aim to load random jpgs into a movieclip from a folder online. online image dir As jpgs will be constantly added to this by anyone, I will never know the file.jpg names to put into my AS. So i was advised I needed PHP to do this, (I know little about PHP) I got some space where PHP works! PHP enabled Right so at the moment I have a Movie Clip in flash with a piece of AS that says

[AS]onClipEvent (load) {
loadVariables("http://www.cppa.co.uk/t/test1.php", this, "GET");
filenames.split(":");[code]....

But when trying my php file through firefox its says (php file ."Parse error: parse error, unexpected '.' in c:websitesfreecrystalwww est1.php on line 5"

how to make this piece of PHP script send the flash the filenames of the directory, so flash can random insert on into a movie clip,

View 1 Replies

ActionScript 2.0 :: [CS3] Load Data From A .txt File, It Doesn't Work Online

May 11, 2008

I'm using LoadVars to load variable data into flash from a .txt file.Pretty simple - when uploaded onto a server, I can see the data loaded but no one else can, not even other accounts on my computer!Could this be a CHMOD permission problem? Could this a problem with my AS? A problem with directories? A problem with URLs?Anybody have a good method that simply loads vars from a .txt file and can also do it online?

View 2 Replies

ActionScript 2.0 :: Load Random Jpgs Into A Movieclip From A Folder Online?

Jan 6, 2005

Firstly I aim to load random jpgs into a movieclip from a folder online. online image dir As jpgs will be constantly added to this by anyone, I will never know the file.jpg names to put into my AS. o i was advised I needed PHP to do this, (I know little about PHP) I got some space where PHP works! PHP enabled Right so at the moment I have a Movie Clip in flash with a piece of AS that says

[AS]onClipEvent (load) {
loadVariables("http://www.cppa.co.uk/t/test1.php", this, "GET");
filenames.split(":");
myRandom = random(filenames.length);

[code]....

But when trying my php file through firefox its says (php file

"Parse error: parse error, unexpected '.' in c:websitesfreecrystalwww est1.php on line 5"

So if anyone could give me any advice on how to make this piece of PHP script send the flash the filenames of the directory, so flash can random insert on into a movie clip.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved