google-swiffy

Swiffy output transparent background

荒凉一梦 提交于 2020-01-06 07:54:39
问题 I'm just trying to figure out a way to use a swiffy outputted HTML5 animation in an iOS app but I can't drop the grey background. I thought this would be a way to drop animations in and circumvent the storage issues of using a png on a retina iPad display. Now I can't make the background clear. What should I do? 回答1: In the code that Swiffy generated, look for backgroundColor and remove it including its value. 回答2: Try to locate element with solid background and change it dynamically to

How Swiffy antialias canvas?

▼魔方 西西 提交于 2020-01-03 03:18:07
问题 I don't understand how swiffy succefully antialias clipping mask when it exports a flash animation that contains mask. Here is my exemple : Full canvas, with mask. Super dirty in Chrome : http://goo.gl/n8yB5h And a swiffy export where there is a picture that move inside a mask. Super clean on Chrome : http://www.creaktif.com/lab/test4.html I tried a lot of things, including draw a 200% canvas then scale it down, adding more points when I draw my mask, but no way to get a clean mask in my

get a response from javascript in a google's swiffy content? (flash converted to html5)

柔情痞子 提交于 2019-12-22 13:07:35
问题 I am trying to play with google's swiffy to convert as2 content into html5. so far it has been amazing. using getURL, I can make javascript calls. But, will I be able to get sort of response from a server or javascript? 回答1: Yes. You can call stage.setFlashVars('response=10'); from the JavaScript after which _level0.response should be set in AS2. But getURL returns before _level0.response is set. So a you should wait a little bit with setTimeout or onEnterFrame . 来源: https://stackoverflow.com

Swiffy on Android browser

你。 提交于 2019-12-22 11:45:30
问题 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 回答1: Yes the older android browsers supports SVG, but not

How does google swiffy maintain vectors in Canvas tag

本小妞迷上赌 提交于 2019-12-13 02:38:57
问题 I've noticed that google swiffy conversions from flash somehow maintain text and vectors in a way that they are crisp on retina displays or if you zoom the browser, all vectors stay sharp. For example. Load up this ad https://developers.google.com/swiffy/showcase/google-chrome-ad Zoom your browser in on it as far as you can. You'll notice all the text and vectors are perfectly crisp. I'm trying to emulate this in my own hand coded canvas, but when I zoom in all my drawn shapes and text get

Swiffy's export conflicts with google's guidelines

被刻印的时光 ゝ 提交于 2019-12-13 02:07:48
问题 This is a google flash to html5 banner question. When shoving in SWF files to google's Swiffy, it tells me my filesize is e.g. 40kb, but then when i download the gzip file and open it the html file becomes 160kb, and there looks like there's a runtime.js file which is 420kb. Google's guidlienes state that a)files need to be sent in a zip format not gzip b)they need to be under 150kb So I tried the zippy flash expansion which worked great at 160kb which i could compress easily but then it

Exit URL on converted swf with swiffy

社会主义新天地 提交于 2019-12-12 06:19:02
问题 I tried to add an exit URL and metrics from doubleclick studio from a converted swf with swiffy to the HTML5 file. Could anyone tell me what the most efficient way is to do this? What would the code look like in the HTML5 creative? Where in the code to add best? What tags to use? The code swiffy generates looks like a mess to me. <!doctype html> <html> <head> <script src="https://s0.2mdn.net/ads/studio/Enabler.js"> </script> <link rel="stylesheet" type="text/css" href="exit.css"> <script src=

Is there a way to get values form a swiffy animation

泄露秘密 提交于 2019-12-11 23:27:07
问题 let's assume that i'm detecting the number of mouse clicks in flash for that ive used the code import flash.events.MouseEvent; plus.addEventListener(MouseEvent.CLICK,aaa) var i:int=0; function aaa(e:MouseEvent) { i++; var a:Number= Number(input1.text)+Number(input2.text); answer.text=String(i); } and i'm displaying it in answer text box, i converted this to HTML5 using swiffy and i want to get the value of the answer text box in a javascript popop right after i click the plus button ? i tried

How to get swiffy to loop music

半腔热情 提交于 2019-12-11 19:45:59
问题 I tested swiffy out with http://leekspin.com/loituma.swf and it worked except for the looping music. It just plays the music through once. The animation loops just fine. 回答1: Gave up on swiffy a year ago. I couldn't get it to loop sounds either. The solution was to export the sound, copy and paste it (e.g. in Audiocity) the number of times I wanted it to loop, reimport it to the FLA and re-export to swiffy. In other words, swiffy didn't (looks like still doesn't) loop sounds. Also doesn't

fatal error: Array index out of range in uitableview on back to previous controller swift

谁说胖子不能爱 提交于 2019-12-11 11:47:02
问题 I have a UITableview that contains a search bar, with my filter everything works perfectly. When I click on a cell to pass values to another UIViewController and open the UIViewController at the same time, everything still works perfectly. But my problem is when I click to back button to get back to the the UITableViewController , I get this error: Array index out of range From this line of code : cell.textLabel?.text = filtered[indexPath.row] Here's all of my code: override func tableView