-
Posts
8 -
Joined
-
Last visited
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
ScrollTrigger Demos
Downloads
Posts posted by ElectricEnjin
-
-
The last time I checked it was 10 files, but it looks like they have recently changed their guidelines to be 100.
-
They specifically state you cannot use minified JS files. How would this work then? I've been using greensock from the CDN and haven't had any issues with the DCM. What am I missing here?
Hi loughrank,
Welcome to the GreenSock forums, and thanks for posting your question.
I have heard directly from folks at Google / DoubleClick that the best way to use GSAP in AdWords / GDN ads is to reference it locally. At this time it is my understanding that they will not allow files being loaded from third-party CDNs.
Regarding the filesize TweenLite.min.js is 9kb when it is gzipped. This means that your browser downloads 9kb from the CDN and then extracts it to 26kb once it has been downloaded. Please view the network panel in Chrome to verify this:
If you upload TweenLite.min.js with your ad I suspect you will get similar results.
FWIW You can get all of TweenMax for 34kb uncompressed, so even in a worst case scenario, it should still be workable inside the 150kb limit.
As a side note, we are confident things on the AdWords side will get better pretty soon.
-
Does anyone know what the maximum number of files we can zip up for double-click standard HTML banner (For U.S.)? I've seen 10 files in some specs, and others have said it's now unlimited? Has anyone pushed more than 10 files through the double-click DCM?
-
I'm new to HTML and coming from a flash background. How does this particle animation get implemented? Any help would be appreciated, thanks!
-
genius! i'm such a noob
Thanks for your help, very much appreciated!
-
Hey,
I'm having trouble accessing a public function inside a document class in one of the loaded swfs. I was originally just using the standard As3 loaders, and it worked fine. Decided to give loadermax a whirl as it seemed cleaner and more efficient as all greensock classes are. Any thoughts to this nooby mistake? I've prioritized the items so I don't have nested movieclips inside a function like you have it on the tips and tricks page...unless theres a better method of doing this and accessing the root later on to all swf's.
Error: TypeError: Error #1006: initFrame is not a function.
private var containerArr:Array; private var counter:Number = 0; private var queue:LoaderMax; private var assetLoader:SWFLoader; public var _contactHolder:MovieClip = new MovieClip(); public var _scheduleHolder:MovieClip = new MovieClip(); public var _orderHolder:MovieClip = new MovieClip(); private var _frameHolder:MovieClip = new MovieClip(); private var _bgHolder:MovieClip = new MovieClip(); private function loadAssets():void { containerArr = new Array(_frameHolder, _bgHolder, _contactHolder, _scheduleHolder, _orderHolder); queue = new LoaderMax({name:"swfQueue", autoDispose:true, onComplete:completeHandler, onError:errorHandler, maxConnections:1}); queue.append(assetLoader = new SWFLoader(_frame, {name:"frame", container:frame_mc, onComplete: addSwf})); queue.append(assetLoader = new SWFLoader(_bg, {name:"bg", container:background_mc, onComplete: addSwf})); queue.append(assetLoader = new SWFLoader(_contact, {name:"contact", onComplete: addSwf})); queue.append(assetLoader = new SWFLoader(_schedule, {name:"schedule", onComplete: addSwf})); queue.append(assetLoader = new SWFLoader(_order, {name:"order", onComplete:addSwf})); LoaderMax.prioritize("frame"); queue.load(); } private function errorHandler(e:LoaderEvent):void { trace("error: " + e); } private function addSwf(e:LoaderEvent):void { containerArr[counter] = e.target.rawContent; trace(e.target.rawContent); counter++ } private function completeHandler(e:LoaderEvent):void { _frameHolder.initFrame(); //this is the function I get the error with }
-
Loving the new beta. I'm a little confused on how the TimelineLite/Max works. I'm looking to do a timeline tween on a MouseEvent ROLL_OVER and ROLL_OUT. I have a movieclip that plays a video thats about 82 frames. How would I go about tweening the timeline (on ROLL_OVER) in reverse at my current FPS(36) at whichever frames its currently playing at (so the video plays in reverse). And on ROLL_OUT have it automatically tween forward (from current frame) to continue playing the video again? Is it also possible to maintain the my current speed of 36 FPS from current frame? Any advice would be appreciated, thank you so much!
GDN + GSAP, HTML5
in Banner Animation
Posted
I think I had issues when I was uploading to DCM, so I switched to a CDN and it was ok.