OS 2.0.0.7971 + StageWebView

I just noticed that with the update to OS 2.0.0.7971 StageWebView does not load the channels more (by stagewebview.loadString (myString)). The component just silently fails. This applies both to QNXStageWebView.

Someone he knows this behavior and found a solution?

thx for your prompt response & the test scenario. I finally thought to it:

I use an eventlistener to manage the events of LocationChangeEvent.LOCATION_CHANGING because I would like some URLS to open in the native browser and others to be dealt with by the stageWebView himself. So the if clause:

       private function onLocationChanging(event:LocationChangeEvent):void{
            if(event.location == '' || event.location == STARTUP_URL){
                return;
            }
            else{
                event.preventDefault();
                var request:URLRequest = new URLRequest(event.location);
                flash.net.navigateToURL(request);
            }
        }

What caused the problem was event.location used to be a string empty in older versions when using stageWebView.loadString (mystring); but has now become a value of ' data: After you add this to the clause, everything works as expected again!

private function onLocationChanging(event:LocationChangeEvent):void{
            if(event.location == '' || event.location == STARTUP_URL || event.location == 'data:'){
                return;
            }
            else{
                event.preventDefault();
                var request:URLRequest = new URLRequest(event.location);
                flash.net.navigateToURL(request);
            }
        }

Tags: BlackBerry Developers

Similar Questions

  • Not deploying on OS 2.0.0.7971 Android app

    Well, I'm developing an application on Android runtime. I rather already have the app and have run it before and everything worked fine when I was using the Beta of the OS developer 2.0

    I recently updated my Playbook OS 2.0.0.7971 and now no applications are running when it is deployed on the Playbook.

    My Playbook is on: OS 2.0.0.7971
    Dev PC operating system: Windows 7 Professional 64 bit

    Yes the developer mode is on and I am connected via USB to the PC

    My Dev Environment
    I just re-did my Eclipse Indigo, installed latest version of the Android SDK and ADT and redownloaded the playbook for eclipse android plugin, it now is everything last.

    This is the detail of the problem:

    1. I connect the Playbook and start a project in Eclipse
    2. the application starts to deploy on the Playbook, an icon is added to the Playbook (sometimes android runtime is started)

    And then following error message appears:

    Impossible to deploy the speed indicator project
    Info: Send request: install
    Info: Action: install
    Info: File size: 50980
    Info: installation...
    Info: Treatment 50980 bytes
    News: Advance of 50%...
    News: Progress 100%...
    actual_dname::com.valueapps.
    utilities.speedometer.testELFL8wt1HxFgGnioTFq0Z4A
    actual_id::testELFL8wt1HxFgGnioTFq0Z4A
    actual_version::1.0.1.0
    result::failure-4

    Any of you can help me with this? At least tell me what is failure - 4 means so that I could fix the problem?
    I'll keep posted the updates guys.
    Thanks in advance.

    While I'm talking to myself, I have a solution here too. This can help someone out there.

    I borrowed a different playbook with OS 2.0 and everything worked fine on that. Therefore, my Playbook had some flaws.

    Only thing I could see was different on my PlayBook it has been updated since the beta version of the developer with many applications to test on it.

    I did a cleanup of on my own, up-to-date security operating system and now it works good.

    A solution of taking time, but it worked.

    Hope this helps someone.

  • Cisco 7971 - reboot loop upgrade... failed

    Hello

    I got a refurb Cisco 7971 today, I read online to reset configuration press and hold the # during startup and enter # 123456789 * 0 which rebooted the phone.

    Now it starts and displays the updated level screen, then says error and automatically restarts.

    someone knows how can I fix?

    Chris,

    Glad to know that it worked. I was just downloading the files for you.

    Remember messages useful rate. It helps 1. people with problems similar to what the resolution and 2. Appreciate the people who have tried to help...

  • StageWebView - does not support links in the app world

    Anyone who has ideas on how to get StageWebView in your game supporting type links "http://appworld.blackberry.com/webstore/content/xxxxx"?

    If you click on one of these links in your html from an instance of StageWebView it reports:

    «Error: the browser doesn't know how to handle web page.»

    This is still part of my quest to provide an easy way to update/display for PlayBook users my other games that are available.  It would be so easy if there was a simple way to open a page of the seller in the app world app of your game.  No really good luck so far.  The idea of StageWebView was great, until I discovered it's the inability to manage the links of appworld.

    OK, so here is how I solved this now:

    private function openAppWorldLink(e:UnknownProtocolEvent):void {
        moreGamesWebView.stop();
        openURL(e.url);
    }
    

    I add an event listener to the QNXStageWebView to a UnknownProtocolEvent instance.  Who is fired off the power as soon as you click on the link "http://appworld.blackberry.com/blah/blah".

    You can see that I don't then stop any additional load (I did because otherwise you see 'ERROR' screen for a bit, and I thought that ugly).

    I then enter the url of the event and open it upwards (this is just a custom function that basically a call navigateToURL on the url string.

    It works great even if you do not see the error screens, it opens to the top of the page of game in appworld and I can update my html page customized each games change/update.

    Thanks for your suggestion to consider the QNX events!

  • stagewebview Windows PDF

    I'm developing an air application that downloads PDF files and displays them using stagewebview. The application works as expected on ios and Mac. The problem that I am running is when displaying PDF documents under windows. Rather than view the PDF, it prompts the user to download the file. It seems that it is not using the browser plugins. When I use the browser outside the air application it displays PDF files as expected. Any ideas how to solve this problem?

    If the user has Acrobat Reader installed - it will be used to display the PDF inside StageWebView. It is a case of

    new StageWebView (true);

  • A StageWebView of loading will appear empty on my iDevice

    I'm developing an application iOS on CC animate. I tried to use the StageWebView class in the application to display a Web page, but despite all my efforts on the documents of the following letter, I was unable to view the Web page on my iPad, nor on my iPhone. It works perfectly well on the Launcher of debugging AIR (test movie), but when I run it on one of the devices, all I see is a white rectangular void. I wonder if this class has no support IOS or there is another reason. I'd be happy if someone could help me on this issue.

    Code:

    import flash.net.URLRequest;

    import flash.media.StageWebView;

    import flash.geom.Rectangle;

    var webView:StageWebView;

    click_openWeb.addEventListener (MouseEvent.CLICK, click_openWeb);

    function click_openWeb(event:MouseEvent):void

    {

    {if(webView!=null)}

    return;

    }

    webView = new StageWebView();

    webView.stage = this.stage;

    webView.viewPort = new Rectangle (0, 200, 400, stage.stageWidth);

    webView.loadURL ("http://google.com" "");

    }

    closeWeb.addEventListener (MouseEvent.CLICK, click_closeWeb);

    function click_closeWeb(event: MouseEvent): void {}

    {if(webView==null)}

    return;

    }

    webView.viewPort = null;

    webView.dispose ();

    webView = null;

    }

    I added a few touches of InfoAdditions in my application descriptor file:

    NSAppTransportSecurity

    NSAllowsArbitraryLoads

    Now it works perfectly

  • Android StageWebView debugging does not work

    Does anyone use this feature? He works?

    SDK: AIR 21 SDK & compile for Macintosh: 21.0.0.176 SDK & compiler download

    Descriptor of the App:

    <?xml version="1.0" encoding="utf-8" standalone="no"?>
    <application xmlns="http://ns.adobe.com/air/application/21.0">
    ...
    <android>
      <webContentsDebuggingEnabled>true</webContentsDebuggingEnabled>
    ...
    

    USB debugging:

    android_usb.png

    StageWebView AS3:

    ...
    if (StageWebView.isSupported) {
       webView = new StageWebView(true); // false - also StageWebView debugging isn't working
       webView.stage = this.stage;
       webView.viewPort = new Rectangle(0, 0, stage.stageWidth, stage.stageHeight);
       webView.loadURL(url);
    }
    ...
    

    App with StageWebView open, but is not inspected WebView.

    chrome_devices.png

    Hello

    We have examined this issue at our end, and Android StageWebView debugging works very well. Please see photos below for your reference:

    We have examined this question to the 48 version 5.0 Android and chrome with AIR SDK 21.0.0176.

    Could you please let us know what version of Android and chrome work currently on. It should be 4.4 + for Android and chrome version should be 45 years and more, please update that your versions if they are lower than specified and then try.

    Please let us know if you still have problems with the updated versions.

    Thank you

    Adobe AIR Team

  • How to view the StageWebView page in Flash Professional app .ipa

    I need to display a .mp4 file in a small application I build for iPad with Flash Professional CC. The best way seems to be StageWebView, but I can't get this to work. I found a code that is supposed to do the trick, but I keep getting errors: 1180: call to a method may not set file.

    Can someone give me please help with this?


    var webView = new StageWebView(); webView.stage = this.stage; webView.viewPort = new Rectangle( 0, 0, stage.stageWidth, stage.stageHeight); var path:String = new File(new File("app:/path/file.html").nativePath).url; webView.loadURL("app:/path/file.html");

    at the beginning of your lines of code, add:

    import flash.filesystem.File;

  • Issue of StageWebView

    Hello:

    I can't connect to dropbox using StageWebView to open a window inside my iPad Air application.

    but it works very well in iOS PC Simulator. I get the user agent string what is my User Agent?.

    In iOS PC Simulator user agent string:

    Mozilla/5.0 (Linux; U; Android 2.2; en - us) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.19.4 AdobeAIR/14.

    The user agent string lack of 'Safari' on iPad Air as follows using StageWebView:

    • iOS iPad Air with the test App
      Mozilla/5.0 (iPad; CPU OS 8_1 lik Mac OX S) AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile / 12 B 410

    I think it should be the same as the native? or at least I can get something like "Safari"?

    • IPadAir Safari
      Mozilla/5.0 (iPad; CPU OS like Mac OSX 8_1) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile / B 12, 410 Safari/600.1.4

    It would be appreciated if someone could give me some suggestions.

    Best wishes

    Ben

    I found the reason why, I forgot the StageWebView() set to true.

    Code:

    webView = new StageWebView (true);

    Once I put it to the manufacturer, the problem is resolved.

  • Flash IOS StageWebView no sound

    Hi guys,.

    I would just ask if you have encountered a html5 with the video tag on your rendering air application and end up with no sound.

    I wonder because when a deployment on my ipad, video works perfectly but theres no sound playback.

    I hope you could help me guys. I'm already in pain for the last 2 days.

    Here is my code:

    protected function onAddedToStage(evt:Event):void

    {

    webView var = new StageWebView();

    webView.stage = this.stage;

    webView.viewPort = new Rectangle (0, 0, 500, 400);

    var path: String = new file (new File("app:/html/test.html").nativePath) .url;

    webView.loadURL (path);

    }

    HTML file:

    < html >

    < head >

    < title > Test < /title >

    < / head >

    < body >

    < video width = "500" height = "500" controls >

    < src = "source Eh_1.mp4" type = "video/mp4" > "

    Your browser does not support the video tag.

    < / video >

    < / body >

    < / html >

    Thank you guys so much.

    It seems that my video has no sound on ipad 2 but when I plugged my headset it works well. I tested it on air ipad and everything works fine.

  • How to clear cookies for a StageWebView

    Hello

    I work with StageWebView with OAuth of Instagram. When I connect first on one device the StageWebView shows the Instagram log in page so the user can enter a user name and password and the newspaper is successful. The problem is when I try to close the session at this stage, I try to open the Instagram in page log in the StageWebView new but this time the StageWebView simply connects to the help of the identifier and the password given earlier, it seems that he recorded in a cookie somewhere.

    My question is how can I delete this cookie so that I'll be able to connect as a different user?

    Thank you!

    IDU,

    If you disconnect a user Instagram, I think that you should not open the login page again. Instead, you must open this page https://instagram.com/accounts/logout/ in the Web mode.

    When successful, you can change the URL for the page of connection again.

    -Milot

  • StageWebView.drawViewPortToBitmapdata resizes. :(

    Hello

    I built a component view web scene that attracts and keeps the webview scene. For animations etc. I converted into a bitmap image.

    It works very well in theory, but on my Nexus7, I find all this shows about 50% too big!

    For EXAMPLE: Using the code below, I get the trace like this:

    BUILT WITH (x = 0, y = 60, w = 1280, h = 643)

    Stuff in the middle like a product animation

    SCALES: (x = 0, y = 0, w = 1280, h = 703)

    (x = 0, y = 60, w = 1920, h = 964.5)

    As you can see, the bitmap data is created in the right size, but as soon as I post it, it seems to resize to 1280 x 643 to 1920x964.5...

    This, I hasten to add, looks naff.

    Someone else has encountered this and someone else has a work around?

    Thank you

    G

    /**

    * When it is true, replace StageWebView with a bitmap overlay instead

    order to ensure that animations work smoothly.

    */

    [Bindable]

    public function get showBitmapNotBrowser (): Boolean {}

    Return _showBitmapNotBrowser;

    }

    private var _showBitmapNotBrowser:Boolean = false;

    private var _showBitmapNotBrowserInvalid:Boolean = false;

    public function set {showBitmapNotBrowser(b:Boolean):void}

    _showBitmapNotBrowser = b;

    _showBitmapNotBrowserInvalid = true;

    invalidateProperties();

    }

    protected var browserBitmap:Bitmap;

    override protected function commitProperties (): void {}

    {if (_showBitmapNotBrowserInvalid)}

    If (showBitmapNotBrowser) checkBuildBitmap();

    of other checkUnbuildBitmap();

    }

    super.commitProperties ();

    }

    /**

    * Replaces browser with bitmap displays.

    */

    protected function checkBuildBitmap (): void {}

    If (browserBitmap) return;

    var r: Rectangle = stageWebView.viewPort;

    trace ("BUILT WITH" + r);

    var bdd:BitmapData = new BitmapData (r.width, r.height);

    stageWebView.drawViewPortToBitmapData (bdd);

    browserBitmap = new Bitmap (bdd);

    addChild (browserBitmap);

    hideStageWebView();

    }

    /**

    * Removes a displayed bitmap to browser, as appropriate.

    */

    protected function checkUnbuildBitmap (): void {}

    {if (browserBitmap)}

    var r: Rectangle = browserBitmap.getBounds (internship);

    trace ("SCALES: '+ (new Rectangle(0,0,stage.stageWidth,stage.stageHeight))+"\n\t"+r);")

    removeChild (browserBitmap);

    browserBitmap.bitmapData.dispose ();

    browserBitmap = null;

    }

    this.checkBrowserVisibility ();

    }

    OK, I have a workaround:

    /**
    * Replaces browser with bitmap displays.
    */
    protected function checkBuildBitmap (): void {}
    If (browserBitmap) return;
    var r: Rectangle = stageWebView.viewPort;
    var bdd:BitmapData = new BitmapData (r.width, r.height);
    stageWebView.drawViewPortToBitmapData (bdd);
    browserBitmap = new Bitmap (bdd);
    browserBitmap.width = unscaledWidth;
    browserBitmap.height = unscaledHeight;
    addChild (browserBitmap);
    hideStageWebView();
    }

    No, I know what it _shoudn't_ be necessary, but it is relatively painless and it works.

    G

  • Put something on top of the stagewebview

    Hello

    I use stagewebview > Flash Builder 4.6

    I have a stagewebview and I load a url into it. I want to show sometimes a sliding Panel on the top of the stagewebview.  I tried, but the Panel is still behind the stagewebview. I know that stagewebview is not a display object, but anyone know if there is anyway that I can do?

    Thanks in advance

    Hello.

    You have to take a picture of the stagewebview, add the image to the scene, hide the real stagewebview and THEN you can add your slide Panel on the top of the photo. A bit of cunning, Yes, but that's how everyone makes do.

    Otherwise, no, you can add objects on top of a stagewebview.

    See you soon,.

  • stagewebview problem with https and invalid certificate

    Hello

    I use StageWebView to display a HTML with https and an invalid certificate, and I find a very strange error. It works well when I install the app on my iPad, but if I force to close the application, and then I open it again, the html page cannot load even if I close and open the application (do not force this time)


    Can someone help me please?


    Thank you

    I solved it with a valid certificate.

    I think that apple does not support the invalid certificate.

    Thank you

  • StageWebView viewport y offset

    I'm relatively new to creating applications with FlashBuilder.

    I am loading a simple HTML page in StageWebView.   I compile for the simulator of the Air and the device (iPhone 4 in this case). The results show the window with an offset y to 187 pixels.

    Windows 7

    Flash Builder 4.7 beta

    I have not had this problem with the same code in FlashBuilder 4.5 using 4.6SDK and Air3.4.

    My HTML code:

    <! DOCTYPE HTML >

    < html >

    < head >

    < meta charset = "utf-8" >

    < title > Test < /title >

    < style type = "text/css" media = "screen" >

    HTML, body {height: 100%; width: 100%; background-color: #FF0000 ;}}

    Body {margin: 0; padding: 0; overflow: hidden ;}}

    < / style >

    < / head >

    < body >

    Test

    < / body >

    < / html >

    My AS3:

    public void Test()

    {

    Super();

    testLoading();

    }

    private function testLoading (): void {}

    webView = new StageWebView();

    webView.stage = stage;

    webView.viewPort = new Rectangle (0, 0, stage.stageWidth, stage.stageHeight);

    var fileName:String = new queue (new File("app:/videos/video.html").nativePath) .url;

    webView.loadURL (fileName);

    }

    In my xml application:

    < autoOrients > false < / autoOrients >

    true < fullscreen > < / full screen >

    < visible > true < / visible >

    Any suggestions?  Thank you.

    Can't believe that I did not notice the difference, that we had in the constructor.

    I needed to include:

    internship. Align = StageAlign.TOP_LEFT;

    stage.scaleMode = StageScaleMode.NO_SCALE;

    This problem had nothing to do with the StageWebView. (Not sure if we can rename this thread or delete).

Maybe you are looking for