communication with stagewebview - actionscript-3

i am using StageWebView for displaying the html contents in my flex application,since i have to display another application( which was developed in html5 ) in my flex application.now i need to get the values from stagewebview's html content. but i searched a lot and i couldn't be able to find the solution.even in Adobe's documentation itself , it is stated that we cant communicate over stagewebview. but i have to communicate with it.My application is flex mobile application for ios.
please suggest me on this issue.
thanks in advance
vengatesh

I think you are looking for this:
http://code.google.com/p/stagewebviewbridge/
For me it is not working for some reason (compiler error) but maybe it can help you.

Related

Is there any way to read a pdf using AS3? (Air)

I want to be able to read at least some of the info a pdf has, this is in mobile, using an installed app built with Air.
Are there any libraries or methods to do this?.
Thanks.
Easiest way to do it is through StageWebView if you are running iOS. On Android, I haven't really found a good way to do it. There are no good libraries for it. Almost every PDF-related AS3 library is focused on writing PDFs, not displaying them. I've found a few in the past that can display them, but the end result is terrible and slow.

HTML book style paging

I have an unusual task. I have a big html with images and links. I need parse it and show as book with book style paging (by swipes). Do someone faced with task similar in iOS? Maybe there exist an opensource ebook solutions (with HTML support)? For example in Android I used FBReader.
I need iOS native solution.
You have turnjs, but it's not free
And jQuery booklet, but this one doesn't include swipe
if you are looking for native code you can get the paging effect from the following example
http://mobile.tutsplus.com/tutorials/iphone/building-an-ipad-reader-for-war-of-the-worlds/

How can I embed TouchDB in a phonegap html5 app?

Basically I want the sync feature of CouchDB while developing with HTML5 and package the app with phonegapp.
I see that couchbase mobile has a few drawbacks(large code size, long startup time) and TouchDB seems promising. However, I can't find an obvious way to integrate TouchDB with Phonegapp. Is this possible? Or what's the right way to do it? Thanks in advance.
I Think that the best way to use TouchDB on phone gap app's is to develop a phonegap-plugin that allow you to access touchDB from your JavaScript/HTML PhoneGap-app,
this means that you should develop a phonegap-plugin for Android that call TouchAndroid and another one for IOS that call TouchIOS, ...etc.
hope this help,

Displaying HTML in WP7

So I was looking for a way to display HTML in WP7 (binding it to datacontext) and a generous dude here suggested that I use the MPS Toolkit, that provides HTMLViewer and HTMLTextBox components to WP7. so I did and at the beginning it looked great. the html was displayed exactly how I wanted but for some pages it throws the following exception:
The property 'Margin' was not found in type 'Paragraph'
I've been sitting 2 days trying to fix this problem without luck!
I though it was because of some attributes in the xaml but I was wrong, it's something in the html that this library doesn't like.
Does anyone know about a solution for this? or maybe another suggestion for displaying html in wp7 (not webbrowser).
Anything would be REALLY appreciated!
What's wrong with using WebBrowser? All you need is an attached property that will be able to invoke the HTML rendering method (NavigateToString) with the content you pass to it.

Page title replaced in IE if fragment identifier set

In IE, with Flex application embedded, changing page location with JS like that:
document.location.href = "#someFragmentIdentifier";
causes change of page title to "#someFragmentIdentifier". I've read that the cause of that was supposed to be integration of Flex application with browser navigation, so I disabled it at the Flex compiler properties screen, however it didn't fix anything. Could anybody help me by pointing some working solution to this unwanted behavior.
Thanks.
PS: You can easily reproduce that by starting your Flex application and changing current URL by hand so it contains fragment identifier and then refreshing the page.
We've run into this using various ajax toolkits, including MS's.
It is not limited to Flex, flash, or any Adobe tech. It is purely a browser issue.
Unfortunately, the ONLY workaround we've found that was worthwhile involved "changing the title with javascript".
There's a bug in Adobe's bug tracker with various workarounds. I guess one of them should work...
http://bugs.adobe.com/jira/browse/FP-240