PS: Perhaps embed the HTML code into a .js script and make Edge play that script on button press. Only thing is that I don't quite know how to yet.
You can use HTML code in an event e.g
so you can do sym.$("placeholder").html("
<ul class="playlist"> <li><a href="#" onclick="playsong('http://milesthatch.net/Portfolio/Charred%20Dirt/GrassLand%20001%20-%20Front%20Lines.ogg');">Grassland Frontlines</a></li>")
I hope this helps.
I'ev tried that, actually. That code works fine when build in into the HTML object in Muse. Edge messes up the animation and other codes when I use that exact code.
I've seen a tutorial that read something about the quotation marks not being read properly if used in that code.
My bad! Replace the " inside the .html with '
This code works I've tested it:
sym.$("Text").html("<ul class='playlist'> <li><a href='#' onclick='playsong('http://milesthatch.net/Portfolio/Charred%20Dirt/GrassLand%20001%20-%20Front%20Lines.ogg');'>Grassland Frontlines</a></li>")
Ah, i see, will try it out in a second.
Is there a simmilar thing for executign a java line of code in the same sym.$("Text") line?
Just write the code. That's all you need.
So does Edge Animate recognize plain java-script code if you write in in the code window of the actions then? I thought it was some Edge Code or some Edge specific programming language...
1 person found this helpful