Animations for responsive (conditional loading of images).

I am working on a responsive portfolio website. My idea is to create animations of my portfolio. There are two options:
A list of the references and on click I load the corresponding animation.
I include all animations on one page and I trigger them via the scroll position.
Regardless of which approach I choose, I only want these animations to run on a certain device width, because anything for mobile would be too big (I need rather big PNGs for the animations) + you can't really view it properly anyway. For every device specified I do not want to use these animations, this also means I do not want load all the images in the composition. Is this possible, or are the images always included as soon as you include your composition into a file. Or is there an instruction in order to start/prevent the loading of the images to my needs?

Thanks this looks nice!
Unfortunately the scriptloader isn't yet documented. I am trying to figure this out on my own how I can load the current animation that I need. It works if I append the script via jQuery's getScript, but I suppose this only works because it happens on document.ready(). If I try to append the required script on a click event, then nothing happens to the composition. -> The animation does not start. Any suggestions?
I currently have this code, which appends the stage on click, then loads the required script and as a callback I try to pick up the composition and play it. Am I doing something wrong?
             $(document).ready(function() {
                $('body').click(function() {
                    $('#mystage').append ('<div id="Stage" class="collector"  style="padding-top:60%;"></div>');
                    $.getScript("collector_edgePreload.js", function(data, textStatus, jqxhr) {
                        var loadedComps = AdobeEdge.getComposition("collector");
                        AdobeEdge.Symbol.bindTimelineAction("collector", "stage", "Default Timeline", "complete", function(sym, e) {
                            sym.play (/**0, true**/);

Similar Messages

  • How do i use Arrays and For Loops in Loading Multiple Images?

    I am struggling to load a sequential array of images to appear like a moving image. So when u click the button the images load one after the other.
    The code below is what i have so far, but it fails to do what i seek in that there's only one image loading which is the last image in the array, so either because the images are stacking up atop each other, or because i simply dont understand the basics...
    And, i am unclear about what you said kglad, that my solution will be more complicated because i need to preload my image sequence and then use a loop to load it?
    import flash.net.URLRequest;
    import flash.display.Loader;
    var count:int = 0;
    var imageArray:Array=["1.jpg","2.jpg","3.jpg","4.jpg","5.jpg","6.jpg","7.jpg",
    "8.jpg","9.jpg","10.jpg","11.jpg","12.jpg","13.jpg"];
    for(var i:uint=0;i<imageArray.length;i++){
    var btn:YourButton=new YourButton();
    btn.ivar=i;
    addChild(btn);
    btn.x=0;
    btn.y=0;
    btn.addEventListener(MouseEvent.CLICK,clickF);
    var ldr:Loader=new Loader();
    addChild(ldr);
    ldr.x=20;
    ldr.y=20;
    function clickF(e:MouseEvent){
        ldr.load(new URLRequest("D:/flash cs5.5/image_sequence/twirlSeq/"+imageArray[e.currentTarget.ivar]));
    function loadComplete(e:Event){
         // first process loaded image, then...
        count++;
        if(count < imageArray.length){
            loadCurrentImage();  // load the next image
        } else {
            // sequencial loading complete, carry on to next activity
    function loadCurrentImage(){
         ldr.load(imageArray[count]);
         ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);

    create a new fla, add btn and add the code i suggested.  test.
    var count:int;
    var imageArray:Array=["1.jpg","2.jpg","3.jpg","4.jpg","5.jpg","6.jpg","7. jpg",
    "8.jpg","9.jpg","10.jpg","11.jpg","12.jpg","13.jpg"];
    var ldr0:Loader=new Loader();
    ldr0.contentLoaderInfo.addEventListener(Event.COMPLETE,loadCompleteF);
    var ldr1:Loader=new Loader();
    ldr1.contentLoaderInfo.addEventListener(Event.COMPLETE,loadCompleteF);
    btn.addEventListener(MouseEvent.CLICK,clickF);
    function clickF(e:MouseEvent):void{
    // initialize count
    count=0;
    // call loadF
    loadF();
    function loadF():void{
    // add one of the loaders to the top of the displaylist and load the next image
    addChild(this["ldr"+count%2])
    this["ldr"+count%2].load(new URLRequest(imageArray[count]));
    function loadCompleteF(e:Event):void{
    // increment count
    count++;
    // check if the last has loaded
    if(count<imageArray.length){
    // if not clear the content out of the next loader.
    if(this["ldr"+count%2].content){
    this["ldr"+count%2].unloadAndStop();
    // and call loadF so the next loader can load the next image in the array
    loadF();
    } else {
    // if the last has loaded.
    // last load completed

  • Multiple animations for Responsie page

    Hi
    I am building a website with responsive webdesign in Dreamweaver. For the mobile I want a different animation the tablets/desktops hoe can I do this?
    Beceau with the normal responsiveness in Edge the mobile I can;t get the placements good So I want to make two different animations on optimized for mobile (480px width)  and the other for tablet/desktop (640 to 960).
    this is the website I am working on: 55k-producties.businesscatalyst.com
    Regards,
    F. Knijn

    goatmud wrote:
    > what about creating multiple animations one the same
    page in FW? In IR each
    > rollover has it's own animation timeline so you can make
    as many animated
    > rollovers as you want, but in fireworks there is just
    one frame timeline. I
    > tried getting around this by putting a animation symbol
    in the over state on a
    > button but it won't let me. Don't tell me i have to
    create individual
    > animations and place them in dreamweaver!
    >
    At this point, I recommend you post the PNG file so some of
    us can take
    a look at it.
    Jim Babbage - .:Community MX:. & .:Adobe Community
    Expert:.
    http://www.communityMX.com/
    CommunityMX - Free Resources:
    http://www.communitymx.com/free.cfm
    .:Adobe Community Expert for Fireworks:.
    Adobe Community Expert
    http://tinyurl.com/2a7dyp
    See my work on Flickr
    http://www.flickr.com/photos/jim_babbage/

  • What is the best approch creating a scalable animation for responsive website?

    I plan making an animated site in a responsive design approch. What is the best practice to do this? Would it be possible to do all animations and complete one size in Edge Animate and then use Adobe reflow to make the rest as planned? How would you do it?

    Funny you should mention this - Sarah just posted something on her personal blog about how to use Reflow and Animate together.
    http://sarahjustine.com/2013/04/03/create-responsively-with-animate-and-reflow/
    Hope that helps!
    -Elaine

  • "Use presets for responsive layout" not working in Chrome

    I am building a responsive website. I am going to have parts of the website animated using Edge Animate. I will make the animation and then insert it into a div in the responsive website I am building.
    The Adobe Edge animation has a width of 100%, so that it resizes according to the area that it occupies the full width of the div no matter how wide that div may be in px.
    It is all working fine, but:
    I have an image in the Edge animation that is center aligned. It must stay center aligned no matter what width the animation ends up being.
    Within Adobe Edge, in Properties, in Position and Size, there is a option where, if you hover your mouse cursor over the top right button a tool tip says "Use presets for responsive layout"
    With the image on the stage selected, I can click on the "Use presets for responsive layout" button and then choose "Centre background Image".
    It works perfectly in all browsers accept Chrome (even IE is playing ball this time). In chrome the width of the image stretches out as the div stretches out..
    The "Centre background Image" setting says that it won't scale the image. But in Chrome it does.
    What can I do to "tell" Edge Animate to center the image but not scale it in the Chrome browser?
    I can see that in the image properties it is set to Background image x axis and y axis 50%. And the width is set to pixels. But in Chrome, the image stretches.
    If you go to http://www.brainstormadvertising.co.uk/demo/services.html you will see what I mean. The circle image is centering BUT stretching in chrome browsers while centering nicely and NOT stretching in other browsers.

    Thank you for your reply Josh. But the point of this setting in Edge Animate is that you can set it up that the background image is center aligned and does not scale. Yet it produces code that gives the width as 21.72%.
    A little further along I see background-size: 48px; .  This is correct.
    So all the browers are reading background-size: 48px; as the scale measurement but Chrome is reading the width only, not the background-width. So this "Use presets for responsive layout" works in all browsers except chrome.
    I don't know how to change that code after the artwork has been published. I can see the code using Firebug, but where do I change it in my code on my computer before uploading to the server?
    I have reported this bug to Adobe.
    Please see the attachment. You can see where all the settings are made and where I am getting a problem.

  • Whenever I go to a site or click anything, I always have to move my mouse for the page to load, why is this happening? (When I go to a site full of images, I move my mouse a little bit at a time and it loads one image at a time)

    Whenever I go to a site or click anything, I always have to move my mouse for the page to load, why is this happening? (When I go to a site full of images, I move my mouse a little bit at a time and it loads one image at a time)

    Hi, Tom.
    FYI: You've not stated which of your listed Macs is having the problem. However, the following may help in any case:
    1. Did you install Front Row using the Front Row hack on a Mac that did not ship from the factory with Front Row installed? If so, See my "Uninstalling the Front Row hack" FAQ. This has been known to cause a variety of problems, including the menu bar (Clock, Spotlight) issues you noted.
    2. If you did not install the Front Row Hack, an incompatible or corrupted Startup or Login Item may be partly to blame for the problems with the menu bar. My "Troubleshooting Startup and Login Items" FAQ can help you pin that down if such an item is causing the problem.
    3. As a general check, run the procedure specified in my "Resolving Disk, Permission, and Cache Corruption" FAQ. Perform the steps therein in the order specified.
    4. Re: Safari and Mail, if not sorted by any of the above, see also:• "Safari: Blank icon after installing Security Update 2006-002 v1.0."
    • My my "Multiple applications quit unexpectedly or fail to launch" FAQ
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • How to remove flickering in a animation done by loading different image files

    Hello Everyone,
    I have done a character animation by loading multiple images one after another at runtime or dynamically by accessing files from there path directly.
    But the problem I am facing is, I am getting a white bg or delay when the images change, it kind of feels like the images are flickering. How can I get rid of this flicker.
    Thank you.
    Iceheros

    When loading images from a server during runtime you can never be sure that there will be no delay.
    What you could do is write a function, that checks with a progress Event how much of the next picture is loaded and base the percentage of the current pictures alpha channel on this figure.
    Say the progressEvent from your Loader returns a number like 0.1....1.0 (10%...100% of the next picture are loaded)
    Then in an eneterframe you could use that number to modify the current Pictures alpha (like img.alpha = 1.0- progress);
    A clear disadvantage is, that the tweens will always be different (depending on picture size/network traffic)

  • Pre-loading external images for XML-based gallery

    I'm working-on an XML-based photo gallery here:
    http://www.unionandparkwood.com/demo/flash_gallery/
    It works how I want it, except that the first time a
    thumbnail is clicked for an image, it pauses long enough to skip
    the fade. If you click-through the images a second time, you'll see
    that it works smoothly. My guess is that the first time the
    thumbnail is clicked, the image isn't cached, yet.
    I tried to fix this by creating a JavaScript file for the
    page to pre-load each image and thumbnail:
    0003a = new Image;
    0003a.src = "images/Down-Range.jpg";
    0003b = new Image;
    0003b.src = "thumbnails/Down-Range.jpg";
    But that didn't work. What would be the best way to do this?
    I included a link to "Download ZIP" of the FLA project on
    this page, too, because it wouldn't be easy for me to describe
    what's happening. In a nutshell, a thumbnail click launches a
    function that loads the appropriate image into the main image
    holder. What seems to be happening the first time is the image
    isn't loaded before the fade is finished, so the image just appears
    after a short pause the first time.

    >>What seems to be happening the first time is the
    image isn't loaded before
    >>the fade is finished, so the image just appears after
    a short pause the
    >>first time.
    As has been said many times in thos forum - use the
    MovieClipLoader class to
    load images, and then use that class' onLoadInit method to do
    things with
    the loaded image. Loading is asynchronous - you _have_ to
    wait until the
    image is done loading before doing a fade.
    Dave -
    www.offroadfire.com
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • Button to load dynamic image in interactive form webdynpro for java

    Hi all
    i tried to use image field to load dynamic image as shown in the online interactive form tutorial
    and it worked for test but when try it with view appears inside viewset it doesnt....
    so i think if we could call the image after render by pressing a button inside the form it may work
    but the problem is i have no idea about how to implement such solution ,so if any one has any idea about how to implement such solution i will be thankful if he can share me the solution.
    thanks.....
    Naguib..

    use the following tutorial. it is very easy to follow and it works fine, i have tried that.
    http://www.docstoc.com/docs/2540673/How-To-Integrate-ADOBE-form-on-WebdynPro-for-ABAP-and-Deploy-it-
    in case of some more problems, ask again and point out the part of tutorial where there is a problem.

  • I cannot seem to load raw images into LR 2.5.  I've been using this for years.  I always load from memory card, but it gives me an unknown error message.  I tried to load from camera, hard drive, & external drive and still will not work.  I checked import

    I cannot seem to load raw images into LR 2.5.  I've been using this for years.  I always load from memory card, but it gives me an unknown error message.  I tried to load from camera, hard drive, & external drive and still will not work.  I checked import menu and nothing has changed.  I loaded the photos onto my tablet and images are fine, so do not feel it is the memory card.  Any thoughts?

    The error message probably said "unsupported or damaged"
    The T3 requires Lightroom 3.4.1 or later. You can either upgrade to a more current version of Lightroom (version 5.6 is the most recent) or you can use the free Adobe DNG Converter to convert the RAWs to DNG, which should import into Lightroom properly.

  • When i try to submit an application with Application Loader, the wizard is blocked on "Send API itunes connect usage, waiting for response". Any idea ?

    When i try to submit an application with Application Loader, the wizard is blocked on "Send API itunes connect usage, waiting for response". Any idea ?

    Thank you, Vincent! It's still down for me, but at least I know someone had the same issue. Hoping it's going to work over here soon
    Best!

  • Infinite for loop to load images

    I hope to load repeat images until user close the browser.
    But I find it is hard to use infinite loop to make it.
    Is there any other way to do it ??
    Thanks a lot
    for (;;){     <=================================== ???
    //jpeg = (String) session.getValue("JPEG");
    //int jpeg_ch = Integer.parseInt(jpeg,10);
    session.putValue("JPEG_NO",String.valueOf(jpeg_no));
    //int jpeg = (int)((Math.random()*123456789)%16);
    %>
    <img style="position: absolute; left:<%= x[jpeg_no] %>; top:<%= y[jpeg_no] %>; width: 160; height:120;" Src="http://192.168.10.110:8080/servlet/Servlet?jpeg=<%= jpeg_no %>">

    for(;;) is an infinite for loop
    while(true) is an infinite while loop
    please post your URL so that I can make sure to avoid going to this page. I certainly don't want the page to constantly be loading images forever.

  • Slideshow page appears to load all images at once making it very slow. Is it possible to force it to load just the required items for the immediate page / slide

    Hi Everyone
    First post and a Muse / Web Noob.
    Im building my personal website with muse ( CC and now CC 2014 ) , its quite simple with slideshows embedded inside each other and is just 4 pages in total.
    My two slideshow pages appears to load all images at once making it very slow ( plus 20 secs on my system ). Is it possible to force it to load just the required items for the immediate page / slide. It would be so much faster and would work much better in this particular situation.
    Ive built all the images and icons at the correct size so optimisation shouldn't be an issue. The whole site is only about 42mb.
    www.paradoks.co.uk
    Many thanks
    Deck

    Oh well the problem seems to have fixed itself. It seems it was either a Java or Tumblr problem because the same thing happened when I installed Chrome. It is a lot more stable now and no more crashes yay.

  • Need to capture multiple image paths for responsive design when only one will be displayed at a time

    I'm new to CQ and am having enough trouble following the documentation on image components as it is (why is there no master reference for all this?). I have a requirement where we need to capture three versions of an image and put the URLs into three attributes of a tag. The appropriately sized image will be selected via JavaScript based on the browser/device capabilities. I need to know how to capture those images when seemingly only one at a time can be dropped onto the page. Or perhaps there is a more CQ solution to this.

    Hi,
    You need to customize image component. I mean selected image is a asset in the repository and each asset by default has 3 rendtion generated when the image is uploaded in the dam.
    For example when you upload image.jpg file into the DAM, standard workflow is launched and after a while inside the repository (see paths) are created following renditions:
    /content/dam/project/image/image.jpg/jcr:content/renditions/cq5dam.thumbnail.140.100.png
    /content/dam/project/image/image.jpg/jcr:content/renditions/cq5dam.thumbnail.319.319.png
    /content/dam/project/image/image.jpg/jcr:content/renditions/cq5dam.thumbnail.48.48.png
    This process can be customized by changing /etc/workflow/models/dam/update_asset.html workflow and modifing "Thumbnail creation" step by adding in the Process tab -> Arguments field new values for new rendition. So for example if you add there [400,400] new rendition will be created in the path
    /content/dam/project/image/image.jpg/jcr:content/renditions/cq5dam.thumbnail.400.400.png
    Next step is to customize jsp for image component. Using path to the drag and dropped image from a component attributes you can easily take all renditions iterating on the /content/dam/project/image/yourimage.jpg/jcr:content/renditions node and then set paths to all renditions in the tag attributes. Then like you wrote using js you can select proper rendition.
    I hope that it hepls you.
    Regards,
    Adam

  • Load external images

    Im wanting to make a photo gallery that I can update easy, I
    thought if I could have a movieclip load external images for my
    thumbnails it would be nice but Im not sure how to set it up. I
    would make a file for my images and then another for my thumbnails,
    then if or when I want to switch out pictures I'd just have to drop
    new images into my folders and not even touch the FLA. Could anyone
    point me in the right direction with the right action script to use
    or a tutorial that explains how this is done..
    And when I say load external I want it so I dont have to
    click on the image for it to load, I want it to just load
    automatically , I would put an invisible button or something to
    that efect over the images for a animated effect.
    Thanks for your help.

    I don't know if you are super enthusiastic about building it,
    or if you just want the utility. If the later is the case, I just
    purchased (cheap) a really great product that does all of what you
    want, fairly automatically, including scaling large pictures down
    to smaller size so that they load quickly.
    I am not sure of the policy of recommending third-party
    applicatons here. So, if you are interested, send an email (private
    message) to me and I will show you the simple site I put together
    using it and where to get it.

Maybe you are looking for