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

How to load offline HTML file (ipad, android and desktop application)

Explorer ,
May 10, 2014 May 10, 2014

Im trying to load HTML file form my PC using below code but got some error

package {

                import flash.media.StageWebView;

                import flash.display.MovieClip;

                import flash.geom.Rectangle;

               

                public class Main extends MovieClip {

                                // centralized StageWebView

                                private var webView:StageWebView;

                               

                                public function Main()

                                {

                                }

                               

                                // open StageWebView

                                public function LoadSWV():void {

                                                webView = new StageWebView();

                                                webView.stage = this.stage;

                                                webView.viewPort = new Rectangle(50,60,460,330); 

                                                webView.loadURL("test.html");

                                }

                               

                                // open StageWebView

                                public function CloseSWV():void {

                                                webView.stage = null;

                                                webView.viewPort = null;

                                                webView.dispose();

                                                webView = null;

                                }

                }

}

got output error

Error #2044: Unhandled ErrorEvent:. text=The protocol is not supported






I attached my “test.html” file publish setting

01.jpg

TOPICS
ActionScript
1.2K
Translate
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
LEGEND ,
May 10, 2014 May 10, 2014

The message appears to be objecting to what's in the file.  What do the contents of the file look like?

Translate
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
Explorer ,
May 10, 2014 May 10, 2014

I have 1 html file (flashtest.html) in my local PC and need to load that html file inside the page below of yellow box after pressing the ”Load URL” button. This script working well if I upload my HTML file (flashtest.html) in server but I’m looking offline solution

here is the screen short and the code if i use online html file (flashtest.html)

-------------------------------------------------------------------------------------------------------------

package {

     import flash.media.StageWebView;

     import flash.display.MovieClip;

     import flash.geom.Rectangle;

     public class Main extends MovieClip {

          private var webView:StageWebView;

          public function Main() {}

          public function LoadSWV():void {

          webView = new StageWebView();

          webView.stage = this.stage;

          webView.viewPort = new Rectangle(50,60,460,330);

          webView.loadURL("http://delta-adv.com/nav/flashtest.html");

          }

      }

}

4.jpg

looking for the offline solution to load HTML file (flashtest.html)

Translate
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
Explorer ,
May 17, 2014 May 17, 2014
LATEST

anyone have the solution for this issu

Translate
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