• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

MouseEvent.MOUSE_UP not dispatched in a StageWebView

Engaged ,
May 29, 2016 May 29, 2016

Copy link to clipboard

Copied

hello,

"stage.addEventListener(MouseEvent.MOUSE_UP, onMouseUp)" is not dispatched when I release the left mouse button in a StageWebView on Windows

package{

  import flash.text.TextField;

  import flash.events.Event;

  import flash.display.Sprite;

  import flash.events.MouseEvent;

  import flash.media.StageWebView;

  import flash.geom.Rectangle;

 

  public class Main extends Sprite {

    private var myTextField:TextField = new TextField();

    public function Main() {

      addEventListener(Event.ADDED_TO_STAGE, init);

    }

    private function init(event:Event):void {

      myTextField.border=true;

      myTextField.width=500;

      myTextField.height=50;

      addChild(myTextField);

     

      var webView:StageWebView = new StageWebView();

      webView.stage = this.stage;

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

      webView.loadURL( "https://www.google.com" );

     

      stage.addEventListener(MouseEvent.MOUSE_UP, onMouseUp);

    }

    private function onMouseUp(event:MouseEvent):void

    {

      myTextField.appendText("up");

    }

  }

}

MouseEvent.MOUSE_UP work if I release the left mouse button outside the air app but not in a StageWebView

MouseEvent.MOUSE_DOWN doesn't work too

Thanks

TOPICS
Performance issues

Views

464

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
May 29, 2016 May 29, 2016

Copy link to clipboard

Copied

Hi,

What is the AIR sdk version you are using?

Does it happen with latest AIR sdk only?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
May 30, 2016 May 30, 2016

Copy link to clipboard

Copied

I tried with Adobe Air SDK 20, the problem occurs whith "new StageWebView()" (Air WebKit embedded) and not with "new StageWebView(true)" (the system's default web engine).

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
May 30, 2016 May 30, 2016

Copy link to clipboard

Copied

Hi,

Can you please log a bug in our bugbase Home

Thanks

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jul 03, 2016 Jul 03, 2016

Copy link to clipboard

Copied

Hi,

I tried with both StageWebView() false and true and the result is same that events are not send to stage.

Did you see any documentation that says the events should be sent to the stage?

I think the behavior is as designed.

Thanks

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jul 04, 2016 Jul 04, 2016

Copy link to clipboard

Copied

LATEST

StageWebView should not fire any as3 mouse events

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines