Hello,
how to add two lime.embed() in a web page ?
Thanks
Hello,
how to add two lime.embed() in a web page ?
Thanks
If you look at our generated “index.html” template, you’ll see that we A.) include the JS file for your project, and B.) include the file name (such as “DisplayingABitmap”) in our lime.embed
call.
You should be able to include two JS files on the same page, and lime.embed
each separate name to two different DIV elements.
The size of the OpenFL stage is based on the size of the element you embed in
this code doesn’t work, project1 is not displayed
<script type="text/javascript" src="./project1.js"></script>
<script type="text/javascript" src="./project2.js"></script>
<div id="project_1"></div>
<script type="text/javascript">lime.embed ("project1", "project_1", 200, 200, { parameters: {} });</script>
<div id="project_2"></div>
<script type="text/javascript">lime.embed ("project2", "project_2", 200, 200, { parameters: {} });</script>
this code work
<script type="text/javascript" src="./project1.js"></script>
<div id="project_1"></div>
<script type="text/javascript">lime.embed ("project1", "project_1", 200, 200, { parameters: {} });</script>
<script type="text/javascript" src="./project2.js"></script>
<div id="project_2"></div>
<script type="text/javascript">lime.embed ("project2", "project_2", 200, 200, { parameters: {} });</script>