Jump to content


  • Posts

  • Joined

  • Last visited

Posts posted by ElectricEnjin

  1. I think I had issues when I was uploading to DCM, so I switched to a CDN and it was ok. 


    Thanks, Ohem.


    Seems they are saying the javascript files where tracking code and clickTags goes should not be minified. Makes sense as people need to read that code. 


    I believe they are recommending zepto as it is a decent alternative to jQuery for a selector engine, DOM manipulation and other conveniences. 


    I totally agree that it would help if they clarified these things and documented exactly how GSAP / TweenMax should be used. 


    If anyone has been denied usage of TweenMax.min.js with their ads, please let us know, we'll do what we can to help get it sorted out. We've hadnothing short of of excellent assistance from DoubleClick.

  2. 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.

  3. 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?


  4. 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}));
    private function errorHandler(e:LoaderEvent):void
    trace("error: " + e);
    private function addSwf(e:LoaderEvent):void
    containerArr[counter] = e.target.rawContent;
    private function completeHandler(e:LoaderEvent):void
    _frameHolder.initFrame(); //this is the function I get the error with

  5. 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!