Highlighted

stagewebview won't show this html/ js but browser does

Community Beginner ,
Mar 26, 2020

Copy link to clipboard

Copied

is there anyway to get stagewebview to show the webpage below I suspect it does not like outside source files like

<script src="http://www.ohohmoney.com/mystuff/engine/phaser3/dist/phaser.min.js"></script>

that does't work either

<script src="engine/phaser3/dist/phaser.min.js"></script>

/////////////////////////////////////////website code///////////////////////////////////////////////////////////

<!DOCTYPE html>
<html>
<head>
<title>My Game</title>
<script src="http://www.ohohmoney.com/mystuff/engine/phaser3/dist/phaser.min.js"></script>
<script>
var config = {
type: Phaser.AUTO,
scale: {
width: 640,
height: 480
},
scene: {
preload: preload,
create: create,
update: update
}
};
var game = new Phaser.Game(config);
function preload()
{
this.load.image('logo', 'http://www.ohohmoney.com/mystuff/publicPhotos/buttons/1.jpg');
}
function create()
{
this.add.image(320, 210, 'logo');
}
function update() {}
</script>
</head>
<body>
</body>

TOPICS
ActionScript, Code

Views

83

Likes

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

stagewebview won't show this html/ js but browser does

Community Beginner ,
Mar 26, 2020

Copy link to clipboard

Copied

is there anyway to get stagewebview to show the webpage below I suspect it does not like outside source files like

<script src="http://www.ohohmoney.com/mystuff/engine/phaser3/dist/phaser.min.js"></script>

that does't work either

<script src="engine/phaser3/dist/phaser.min.js"></script>

/////////////////////////////////////////website code///////////////////////////////////////////////////////////

<!DOCTYPE html>
<html>
<head>
<title>My Game</title>
<script src="http://www.ohohmoney.com/mystuff/engine/phaser3/dist/phaser.min.js"></script>
<script>
var config = {
type: Phaser.AUTO,
scale: {
width: 640,
height: 480
},
scene: {
preload: preload,
create: create,
update: update
}
};
var game = new Phaser.Game(config);
function preload()
{
this.load.image('logo', 'http://www.ohohmoney.com/mystuff/publicPhotos/buttons/1.jpg');
}
function create()
{
this.add.image(320, 210, 'logo');
}
function update() {}
</script>
</head>
<body>
</body>

TOPICS
ActionScript, Code

Views

84

Likes

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
Mar 26, 2020 0

Have something to add?

Join the conversation