shontee / stagewebviewbridge

Automatically exported from code.google.com/p/stagewebviewbridge
0 stars 0 forks source link

StageWebViewBridge in Flash Builder AS3 Mobile Project - stage not associated #25

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. this.webView = new StageWebViewBridge(0,0, this.stage.stageWidth, 
this.stage.stageHeight);
2. After added to stage and page loaded, want to add it to the stage
3. this.webView.stage = this.stage; // Compiler error: Read-only property

What is the expected output? What do you see instead?
The webview must be visible but because it is not possible to set proper stage, 
no webview is shown.

What version of the product are you using? On what operating system?
- Flash Builder version 4.6
- Latest source code of StageWebViewBridge.as (downloaded from google code)
- Windows XP

Please provide any additional information below.
Added to StageWebViewBridge.as the following code:

// Begin: Added EH 14-05-2012
public override function  get stage() : Stage 
{
   return this._view.stage;
}

public function  set stage(value : Stage) : void 
{
   this._view.stage = value;

}
// End: Added EH 14-05-2012

Result:
The webView is now visible

Original issue reported on code.google.com by streambu...@gmail.com on 14 May 2012 at 2:59

Attachments:

GoogleCodeExporter commented 8 years ago
Thank you!!

Original comment by babyfun...@gmail.com on 6 Nov 2012 at 5:37