To do an animation it would need a continuous but interruptible callback loop - with delayed sending for the next iteration after the previous iteration has finished.
I think it is doable. Sent from my iPhone > On May 11, 2017, at 9:31 PM, Alejandro Tejada via use-livecode > <use-livecode@lists.runrev.com> wrote: > > Hi Hermann, > > I tried to apply your script, but just get an error. > Surely, it's because I do follow correctly > your instructions: > >> You could try to leave out the "liveCode.JStoLC" from the html. >> Instead send the conversion 'delayed", 1 tick should be enough: > local svgb="SVGBrowser1" > send "processSVG tID" to widget svgb > put "var dd=document.getElementById('canvas1');" & \ > "liveCode.JStoLC(dd.toDataURL(),tID)") into js > send "do js in widget svgb" to me in 1 tick > > By the way, open and resize an animated SVG like this: > https://openclipart.org/download/188969/WalkingMan.svg > > Notice how it changes to different animation frames > each time that you resize the image. :D > > Al > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode