Animation doesn't work after publishing (Generate HTML)


#1

I built an animation by the following steps:

1: Saving five x- and y-coordinates from drawing in a canvas in five global variables:

javascript:
[…]
var varNumber = 1;
mycanvas.onmousedown = function(e) {
if (ctx.x == 0 && ctx.y == 0) {
ctx.moveTo(e.clientX, e.clientY);
}
else {
ctx.lineTo(e.clientX, e.clientY);
ctx.stroke();
}
var actualPointX = ‘Point’ + varNumber + ‘x’;
var actualPointY = ‘Point’ + varNumber + ‘y’;
var positionX = e.clientX;
var positionY = e.clientY;
$axure.setGlobalVariable(actualPointX, positionX);
$axure.setGlobalVariable(actualPointY, positionY);
varNumber += 1;
};

2: (OnMove) Setting four points to the first four coordinates
3: Then to the last four coordinates with an animation
4: Start OnMove again by “moving” the button

After generating the HTML files this animation doesn’t work any longer. What is the problem? What can I do?

Thanks!


#2

Hi Rebecca91,

Sorry for the late response! It’s a little hard to say what the problem is without having the actual RP file, so would it be possible if you could attach it with your next post? Please also let me know the build of Axure RP 8 you’re running (e.g. 8.1.0.3379), the browser you’re using to generate the HTML files, and whether you see the same issue when previewing or publishing the file to Axure Share. Ty!


unlisted #3