Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all 9897 articles
Browse latest View live

How to make the code more simpler for dynamic data?

$
0
0

Hi everyone!

 

I have a JSON file with over 200 records.

 

I want every record to be active button with unique actions.

 

The code is the below:

 

$.getJSON("content.json",

          function(data){

                    for(var i=0; i<200; i++){

                        var s = sym.getSymbol("base").createChildSymbol("template", "conts");

                        s.getSymbolElement();

                            s.element.attr('id', 'symbol'+i);

                            s.$("imageholder").css({"background-image":"url('"+data[i]. image+"')" });

                            s.$("imageholder").data('myIndex', i);

                            s.$("imageholder").data('title',data[i].name);

                          

s.$("imageholder").click("click", function(e){                                                          

                       if ($(this).data("myIndex") == 0){

         WB = 10;

         sym.$("#symbol0").show();

                            sym.$("#symbol1").hide();

                            sym.$("#symbol2").hide();

                            sym.$("#symbol3").hide();

                            sym.getComposition().getStage().getSymbol('placer').$("holder").css({"background-image":" url("+$(this).data('Large')+")"});

                            sym.getComposition().getStage().getSymbol('placer').$("holdertxt").html($(this).data('tit le'));

 

 

                            if ( WB == 10) {

                            sym.getSymbol("#symbol0").$("rect").animate({opacity:1},700);

                                                          };

                                                        }

                        else if ($(this).data("myIndex") == 1) {

                          WB = 11;

                               sym.$("#symbol0").hide();

                               sym.$("#symbol1").show();

                                sym.getComposition().getStage().getSymbol('placer').$("holder").css({"background-image":" url("+$(this).data('Large')+")"});

                                sym.getComposition().getStage().getSymbol('placer').$("holdertxt").html($(this).data('tit le'));

                               if ( WB == 11) {

                               sym.getSymbol("#symbol1").$("rect").animate({opacity:1},700);

                                                          };

                                                                                 }

                                                            });

s.$("imageholder").mouseout ("mouseout",function(e){

if ($(this).data("myindex") == 0 && WB != 10) {

  sym.getSymbol("#symbol0").playReverse("selectend");

 

 

                                                                           }

else if ($(this).data("myindex") == 1 && WB != 11) {

  sym.getSymbol("#symbol1").playReverse("selectend");

}

 

 

                                                                                 }

                                                            });

s.$("imageholder").mouseout ("mouseout",function(e){

if ($(this).data("myindex") == 0 && WB != 10) {

  sym.getSymbol("#symbol0").play("selectstart");

 

 

                                                                           }

else if ($(this).data("myindex") == 1 && WB != 11) {

  sym.getSymbol("#symbol1").play("selectstart");

}

                                                            });                                                      

 

 

                    }

 

 

 

 

});

 

 

 

How is possible to place an each command or something else in order not to write for each Index and for each function the actions?

 

Now I am writing for every function of (mouseover, click, mouseout) the actions that every record of the JSON should make.

 

Can someone help me?


Save AJAX Load() Results As A Variable

$
0
0

Hi,

 

I am building a fundraising progress bar in Adobe Edge which has gone mostly smoothly.  When I enter a number for the variable I have called "total" ( var total = 45; ) and run the project in a browser, it works exactly as I want it to and I have uploaded the project to the server where it will be used.  However, I am not much of a programmer and I am having a hard time getting the data I need to load the current percentage raised toward the fundraising goal into the project.  The data I need is on a page on the website that the animation will be embedded on.  The only content on that webpage is the number I need.  Using jQuery, I haven't been able to load that number into the variable that's necessary for stopping the counter and animation for the progress bar.  At first, I tried to pull the data from a single div based on the ID of the div, but I eventually gave up on that much granularity and just stripped the site template for that page until only the number was left.

 

When I use this code:

var total;  $.get('http://www.mySite.org/restoftheurl?tmpl=minimal', function(data) {  total = data;  });

 

The counter counts to 100, which is the max I have set and the animation doesn't play.  I don't know what causes the counter to go but clearly, that doesn't work.

 

If I use this code:

var total = $.load("http://www.mySite.org/restoftheurl?tmpl=minimal");

 

Neither the counter nor the animation do anything, so that doesn't work either.

 

I have scoured the internet for days reading post after post where someone has had great luck with this bit of code or that bit of code.  I have tried at least 4 dozen different ways to make this happen and nothing is doing it.  I'm sure I am overlooking something stupid, but if anyone has a solution, I would be very appreciative!  Here is the rest of my action code (it is all in compositionReady tied to the Stage layer).

 

var counter_delay = 20;
var max_count = 100;
var present_count = 0;
var total = arghghghghghghghghg!;

var timer = window.setInterval(stepUp,counter_delay);
function stepUp(){
present_count++;
sym.$("number").html(present_count);
if(present_count==total)
clearInterval(timer);
if(present_count>=max_count){  sym.$("Text").html(100);  clearInterval(timer);
}}

var animation_ms = total*20;

sym.play(0);
setTimeout(function () {sym.stop()}, animation_ms);


 

Hopefully, someone smarter than I am has an idea what I am missing.  Thanks!

E.An - Parallax - Stop play reverse

$
0
0

Hi all,

 

I have a problem with my Parallax in Edge Animate.

 

I am designing a site like this one: https://corporate.target.com/about/design-innovation/owned-brands/

 

But when I go to inverse scroll, the head of the timeline plays back in reverse, and the content is "saved" off stage.

 

My work is not nice. The sample site have a fixed content, after down scroll.

 

That I can do with my work to make me stay the same style?

 

I remember that I'm learning. Do not know much about Edge Animate.

 

Many thanks,

Where is Adobe Edge Animate 1.5?

Bootstrapping with JavaScript

$
0
0

Hello everyone,

 

I inserted few Edge Animate Composition into my project. I’m looking for a good reliable JSAP for my wrapper HTML page. Any suggestions?

 

Thanks,

Can I use Edge Animate and PhoneGap Build to create iPad apps?

$
0
0

I know you can use this combination for smart phones, but does PhoneGap also support tablets?

 

Thanks

handle z-index property in chrome browser (was : Is there another issue with Chrome?)

$
0
0

Hi,

 

I'm just wondering is there another issue with Edge and Chrome.

I know some stuff got sorted out but I am now having a problem with rectangles (as hitboxes) not showing up within Chrome.

 

Does anyone know why this is happening?

CSS pointer-events in Edge Animate (was : symbols over each other)

$
0
0

I have a button that I have an action event assigned to.  I also have another symbol that is over about half of this button.  When I click on the button only the half that is not covered can be clicked.  Is there a way to make the symbol that is over the button not effect the interactivity?

 

Thanks in advance.


How to display a static image while loading the animation

$
0
0

Hi there!

 

Is it possible to display a static image (maybe the poster-image) as a placeholder while the browser is loading the Edge Animate Animation?

 

Thanks
Joe

Fairly new to Animate | Would like some guidance

$
0
0

Hey guys... I am trying to figure out this program.

 

While learning I am adding it to a temp website.


But... I am working on getting my reserve animation once I've clicked my close button to jump back to a the label ("Siteloaded".

I would like this, due to the fact I do not want to make 3 editions of my mainPage. Like I have now: SiteLoaded, MouseIn and MouseInR are the same.
These last two are starting animation for a MouseEnter event. Once clicked on the Close.btn I would like the animation to reserve itself and jump back to the label "Siteloaded" and not stop at the labels "MouseIn" or "MouseInR".


Below is my timeline and it has some Snippets for hiding and showing some hit boxes and/or trigger animations once returning. I get that.

 

I could be (and I think it is so) that I am working at this all wrong, but I don't know better atm. Don't know JS and it's possibilities.

 

Cheers

 

Dennis

 

 

timeline.png

How to preserve aspect ratio with a responsive layout?

$
0
0

Hi,

 

I have an image that I need to place in the centre of my stage.

The image is that of a ball and has 400px by 400px size.

 

I want my animations to be responsive so that the image will scale but still maintain the correct aspect ratio.

Currently if I set pixels to % on width and height, the image stretches.

 

How do you do this in EA?

Stage Variable can also be called on click event?

$
0
0

Good Day guys, i just started using edge, and would like to know if the variable i set on the stage creation complete can also be called on a click event?

 

something like this:

 

stage creation complete:

 

var x = function()

{

console.log("x");

}

 

 

on click event:

 

var y = function(){

console.log(x+y);

}

Hi guys, Im a Print graphic designer ( I use Photoshop, Indesign & Illustrator ) I would like to learn more skills and switch from '' print to web design ''.

$
0
0

While doing some research, i came across some nice Adobe softwares like Adobe Muse and Adobe Edge Animate.

 

Which one would you recommend me to learn and master?  I have also been looking at Adobe After Effects and it seems to be very nice too. I know it's mainly for those in the cinematographic industry but I think it might be useful for me to have some kinda knowledge about it, especially for making some Intros and animations for logos. What do you think about it?
I have been watching some tutorials on Youtube and Lynda.com about Adobe Muse and Adobe Edge. They are pretty straight forward and I find myself comfortable with it.
But I would like to know the difference between Muse and Animate Edge please. They both seem to be some kinda softwares for those who want to design without coding, right? But apart from that, how do they differentiate from each other.
Hopeto get some nice tips, advices from you guys.
Cheers,
Yannick

 


 

set sub links on a one page website

$
0
0

Hi everybody!

 

I do a lot "one pager" sites with Adobe Edge Animate like my own site www.dnzstudio.com

 

All the "sub sites" are in the same document and are different symbols. The timeline looks something like this:

 

Bildschirmfoto 2014-09-27 um 11.57.05.png

 

The reason I am doing that is to have nice transitions between the sites.

Now I am desperately trying to find a solution that I can give my "sub sites" subdomains like when I enter www.dnzstudio.com/photo it will directly load my site and go to the keyframe "PHOTO".

(reasons for that: 1. users can use the back button of the browser, 2. I can share sub sites  on facebook or give the sub link to a customer, friend, whatever if the focus is on photography for example)

 

The easiest way would be to put a code in the timeline at the keyframe of "PHOTO"...

 

Is this somehow possible? Does anybody know a way to do that?

 

Thanks a lot for help, greetings,

Deniz

Javascript Screenshot page button

$
0
0

Hi everyone,

 

I'm really stuck on this for weeks already.

i want a button that takes a screenshot of the current page and sets it for download as picture.

 

i tried to use html2canvas but that does not support rotation and that is really important that is does support rotation.

Can someone help me with that? i really am stuck on that for ages now.

 

- Rob


how to create the animation div dyanimcally using jquery+javascript

$
0
0

Hello,

after a week of researching and without getting the full result i decided to upload new discussion here and maybe some of you guys will help me.thanks in advance.

 

include the file:

<!--Adobe Edge Runtime-->

    <meta http-equiv="X-UA-Compatible" content="IE=Edge">

    <script type="text/javascript" charset="utf-8" src="animate_edgePreload.js"></script>

<!--Adobe Edge Runtime End-->

 

html code:

<div id="Stage" class="EDGE-70798230"></div>    if i put it like this of course everthing works fine..i can put more with different id's and they will work fine...

 

my problem:

i dont know how many of this animation i will need...depends of what my server will give me in the response...so i need to create them dynamically...

i tried lots of things:

$("#newAnimation").append('<div id="Stage2" class="EDGE-70798230"></div>');    of course with this nothing happend...it even dont get the symbols under stage..and not any of the css...

 

$(".EDGE-70798230#Stage").clone().appendTo("#newAnimation");

$("#newAnimation").children('#Stage').prop('id','Stage2');   then mroe css changes and just then i can see the animation but it doesnt work..."play is not defind" when i try to run the animations..

 

i know there is some function that called createChildSymbol/createSymbolChild but none of them work for me...

i use jquery mobile..so to start the animation for example i do $.Edge.symbol.get($("#Stage")).play();

i tried to use the loadResources etc....doesnt work too..

 

anyone have some idea what i can do? it is possible?

background video behaviourattached

$
0
0

When you put a video using the video tag on stage as a background or even with edgehero background video the video behaves strangely .

I will try to explain….

- the video is at the background all right . But If you start ‘playing’ with your browser window and make it really small, the video will tends to disappear somewhere at the back of the top left corner.

It seems as that the video or the div it is "attached"  to, is linked to the bottom right corner.

It looks like the computer display extends itself all over the place around it. It's weird.

An image doesn't behave the same way. The 0 0  of the image is the at the top left corner as it should be.

thanks

edge.4.0.1 Failed to execute 'insertRule' - how can i fix it?

$
0
0

hello,

 

im having big trouble with my comp. in FF everything works fine.. but in safari and chrome i get errors in the edge.4.0.1.js (please see pictures). is there a way i can fix this?

 

PS: if i refresh the page once, everything works fine! it happens only the first time (cache cleared).

 

thanks in advance

santiago

 

chrome_problem.pngsafari_problem.png

Optimization techniques when animating?

$
0
0

Hi,

 

I am newbie when it comes to animations and was wondering if there are techniques/procedures that should or shouldn't be done when using EA to animate?

 

I have been playing around with animations and I clearly noticed one animation which was an image which moves from diagonally (initially not on the stage) to the top left corner tearing (I think that is the word). There is not much going on in the animation which has confused me.

 

So are certain things I should avoid in making animations?

 

I have an icore7 laptap with 16GB of Ram so I wasn't expecting to see tearing in a such a simple animation.

 

Thanks.

Edge keeps crashing (cc version)

$
0
0

Ever since upgrading to the cc version of edge I can no longer work with a particular file. My smaller edge animate projects are working fine. The most recently saved version of the large project I am having a problem with can be viewed here.

 

The files can be downloaded here.

 

The project is a combination linear/cyclical timeline that covers a period between about 4000 BCE - 4000 CE. You can switch between the linear and cyclical views with a button that is between the forward and reverse play buttons. The timeline focuses on bible chronology. There are links within the timeline that open other edge animations in a spotlight overlay window (used edge commons for this).

 

Before I upgraded to the latest version of EAcc I was able to successfully make changes to the file, although edge took a long time to save (up to a minute of "not responding"). I have found that zooming in closer to the edge timeline really boggs down the program to the point of being unusable, so I stayed zoomed out as much as possible.

 

Before the upgrade, I have had problems saving recently. If I complete more than a few operations without saving, and then try to save I get an error message that says "out of memory, save work and exit" (which proves to be impossible), so I have had to save every 5 minutes or so if I didn't want to lose my work. This is a major irritation that I have learned to live with, but of course now I can do NOTHING without edge hanging.

 

I have tried uninstalling and reinstalling edge, but that makes no difference. I am also not able to use the older version (1.5), since the file has been saved within EAcc(ironically the ONLY successful operation the program was able to pull off).

 

I am really trying not to freak out about this, but it represents over two years of my life. If anyone can see what in my file (or edge) is causing the bogging and crashing I would be forever greatful...

 

Thanks

Viewing all 9897 articles
Browse latest View live