Skip to main content
Participating Frequently
April 21, 2013
Question

App Code to Load website

  • April 21, 2013
  • 1 reply
  • 1406 views

Building an app to launch my website as soon as someone activates (touches the icon to launch) the app from their phone (Android phone or tablet).

Any help would be appreciated. I have the latest version of Flash Professional.

Thanks for your response.

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
April 21, 2013

use:

var htmlLoader:HTMLLoader=new HTMLLoader();

addChild(htmlLoader);

htmlLoader.width = stage.stageWidth;

htmlLoader.height = stage.stageHeight;

htmlLoader.load(new URLRequest("http://www.youwebsite.com"));

Participating Frequently
April 21, 2013

Thank you for your response.

I got this responce when I tried to run the code.

Scene 1, Layer 'Layer 1', Frame 1, Line 11046: Type was not found or was not a compile-time constant: HTMLLoader.
Scene 1, Layer 'Layer 1', Frame 1, Line 11180: Call to a possibly undefined method HTMLLoader.