google-swiffy

error with google swiffy calling runtime.js multiple times in the same page

为君一笑 提交于 2019-12-10 17:53:56
问题 I have converted multiple swf files using google swiffy v5.2 and will have my new animations displayed on many different pages, most of which I do not have control of or access to. In order for the animation to work it needs the swiffy's runtime.js file, which might look something like this on the page: <script src="https://www.gstatic.com/swiffy/v5.2/runtime.js"></script> The problem arises when I either have multiple instances of the animation on the same page or a client has this runtime

Calling a flash ExternalInterface in swiffyobject

℡╲_俬逩灬. 提交于 2019-12-08 06:34:23
问题 I have a flash that communicates with a javascript using ExternalInterface. I have converted this into HTML5 using swiffy. How do call the methods i have created in flash using javascript? 回答1: As per the swiffy documentation, ExternalInterface is not supported for AS 2.0 or AS 3.0 by swiffy. Please refer to: ActionScript 2.0 support ActionScript 3.0 support 回答2: Here is an update to the answer for who is still looking: As of now, Swiffy 5.3 has already supported ExternalInterface. I am able

Swiffy on Android browser

允我心安 提交于 2019-12-06 05:00:52
I would like to use Swiffy to convert Flash animations to HTML5. The converted HTML5 output run on modern browsers and iOS device, but doesn't work on Android(below 4). You can test http://www.google.com/doubleclick/studio/swiffy/gallery.html on Android. Android browsers supports Canvas and SVG. Then, does anybody know what lacks in Android browser to show the Swiffy output? If I know it, I will try to change Swiffy JavaScript. Thanks Yes the older android browsers supports SVG, but not inline SVG. Only android 3 and up supports it.. Inline SVG 来源: https://stackoverflow.com/questions/9289233

Is there any way to detect when a Swiffy animation has completed?

ⅰ亾dé卋堺 提交于 2019-12-04 14:19:22
问题 Do Swiffy animations trigger an event when they're complete? Or is there perhaps a way to grab the current frame vs. total frames? I tried de-minifying runtime.js as mentioned in another SO post, but I can't decipher it. 回答1: For anyone who comes across this post, I found a solution. I ended up using a getURL() call at the end of my FLA. It looks like this: getURL("javascript:animationIsComplete();"); Put whatever you want in the animationIsComplete() function and it will now be triggered at

Is there any way to detect when a Swiffy animation has completed?

前提是你 提交于 2019-12-03 07:56:56
Do Swiffy animations trigger an event when they're complete? Or is there perhaps a way to grab the current frame vs. total frames? I tried de-minifying runtime.js as mentioned in another SO post, but I can't decipher it. For anyone who comes across this post, I found a solution. I ended up using a getURL() call at the end of my FLA. It looks like this: getURL("javascript:animationIsComplete();"); Put whatever you want in the animationIsComplete() function and it will now be triggered at the end of the Swiffy animation. Flash timeline frame script: import flash.net.navigateToURL; import flash

Arbitrary Google Swiffy Canvas Size / Off Screen Rendering

大兔子大兔子 提交于 2019-11-28 12:52:12
I'm using Swiffy to render onto a hidden canvas so that I can take the result and use it elsewhere. The problem I'm running into is that when I resize the container div for Swiffy it won't make the actual canvas any bigger than the available viewport size. If I set the dimensions of the Swiffy div larger than the viewport then the canvas will only get as big as the viewport - it doesn't want to put any part of the canvas offscreen. I'm sure this is for efficiency, there's no reason to render something if it's offscreen normally, but I need to have Swiffy render it all the time, at whatever

DoubleClick Studio ClickTag after using Swiffy

可紊 提交于 2019-11-28 10:18:38
I've converted a AS2 flash file into HTML5 using Swiffy. I'm also using DoubleClick Studio for the Ad. I was wondering how i get a clicktag on the ad so it shows up in DoubleClick Studio under Events, and i can edit the Destination URL. Thanks! The solution is very simple. Take a look on my example. Destination url can be updated in DB Studio. HTML: <!DOCTYPE HTML> <html lang="en-US"> <head> <meta charset="UTF-8"> <title>HTML5 Banner</title> <meta name="ad.size" content="width=300,height=250"> <link rel="stylesheet" type="text/css" href="styles.css" media="all"> <script src="https://s0.2mdn

Arbitrary Google Swiffy Canvas Size / Off Screen Rendering

时光怂恿深爱的人放手 提交于 2019-11-27 07:20:47
问题 I'm using Swiffy to render onto a hidden canvas so that I can take the result and use it elsewhere. The problem I'm running into is that when I resize the container div for Swiffy it won't make the actual canvas any bigger than the available viewport size. If I set the dimensions of the Swiffy div larger than the viewport then the canvas will only get as big as the viewport - it doesn't want to put any part of the canvas offscreen. I'm sure this is for efficiency, there's no reason to render

DoubleClick Studio ClickTag after using Swiffy

耗尽温柔 提交于 2019-11-27 03:38:55
问题 I've converted a AS2 flash file into HTML5 using Swiffy. I'm also using DoubleClick Studio for the Ad. I was wondering how i get a clicktag on the ad so it shows up in DoubleClick Studio under Events, and i can edit the Destination URL. Thanks! 回答1: The solution is very simple. Take a look on my example. Destination url can be updated in DB Studio. HTML: <!DOCTYPE HTML> <html lang="en-US"> <head> <meta charset="UTF-8"> <title>HTML5 Banner</title> <meta name="ad.size" content="width=300,height