I'm generating a link with php.
I need the link to be pulled into my animations.
I cannot hardcode the link into the animation via edge animate because the link is always changing.
Anyone have any ideas?
Or if you know a way to wrap an embed html tag with an anchor tag, that would work too.
Hi, firstly, if you are using php to generate the dynamic link then you will need to wrap your edge animate project inside another php document, you can do this with the code below:
include("dynamicLink.php"); // PHP File where your Dynamic link is generated
include("edgeAnimateProject.html"); //EdgeAnimate HTML File
<?php $dynamicLink = "http://www.adobe.com"; ?>
var dynamicLink = <?php echo json_encode($dynamicLink); ?>;
If this dynamic link was then to be used on a button you would then add the following code to a click action in your EA project code window:
This is the most likely solution. however, my situation was a little more complicated but I did figure out a solution. Thanks!