Skip to main content
Inspiring
June 11, 2011
Question

new File(new File("app:/map-simple.html").nativePath).url doesn't work on Android

  • June 11, 2011
  • 1 reply
  • 2549 views

Hello,

import flash.media.StageWebView;
private var webView:StageWebView = null;
private function init():void{
    var fPath:String = new File(new File("app:/map-simple.html").nativePath).url;
    webView = new StageWebView();
    webView.stage = this.stage;
    viewPort = new Rectangle( 0, 0, stage.stageWidth, stage.stageHeight );
    webView.loadURL( fPath );
}

new File(new File("app:/map-simple.html").nativePath).url doesn't work on Android

Thanks

This topic has been closed for replies.

1 reply

relaxatraja
Inspiring
June 13, 2011

import flash.geom.Rectangle;
import flash.media.StageWebView;
import flash.filesystem.File;
import flash.utils.Timer;
import flash.events.TimerEvent;

stop();

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

Try by changing the order.

pol2095Author
Inspiring
June 15, 2011

It doesn't work too.