Edge Animate CC :: Animation Restarts When Move The Mouse
Mar 7, 2014
I have this animated menu, when I click one of the buttons the animation to show some information starts, but when I move the mouse, the animation goes straight to the beginning so i can't continue intercting with it, that shouldn't happen, what do you think it is?
I'm trying to make an interactive animation where when the user clicks and moves the mouse around an area, the opacity of that part of the layer decreases and the user gets to see the background layer. It's similar to the idea of using a brush to clean a dirty window.
I followed the tutorial on this page: [URL]. However, my animation auto plays and mousing over has no effect. I have searched and sreached to no understandable (to me) avail. Here's a link to the file: [URL]
I'm having a problem with IF ELSE code use with a mouse click. What I want each time a user "clicks" i want to execute a particular block of code, up to 3 clicks, then nothing. I've tried local and global click counter var but can't seem to get past the first "if". This is what I have now (I'm using console.log() to keep track.
In comp ready i create a global var ...
// insert code to be run when the composition is fully loaded heresym.getComposition().getStage().setVariable('clickcnt', 1); //set counter to 1 var i = sym.getComposition().getStage().getVariable('clickcnt'); console.log ("Counter is starting at "+i);
on the stage i create a "click" event..
// insert code for mouse click herevar i = (sym.getComposition().getStage().getVariable('clickcnt'); if (i=1){ console.log("counter is = "+i); //do some code sym.getComposition().getStage().setVariable('clickcnt', 2); //set counter to 2 } else if (i=2){ console.log("counter is = "+i); //do some code sym.getComposition().getStage().setVariable('clickcnt', 3); //set counter to 3 } else if (i=3){ console.log("counter is = "+i); //do some code sym.getComposition().getStage().setVariable('clickcnt', 4); //set counter to 4 taking it out of range sym.play(100); //play the timeline animation } else { //
I'm using this to negate any further clicks. I'm sure there's a proper way to do this. I just don't know it. sym.stop(1000); console.log("end"); };I When I run this It never gets passed the first if, It's like the "clickcnt" var is not getting updated or read properly.
I have a crosshair like in a lightgun style game at an arcade. What code would I use to have the symbol follow the mouse, and if at all possible, could the symbol's origin be in the middle of the symbol and not in top left corner of the symbol?
i need to control the timeline animation with the mouse wheel.i've tried this code but I've could only make it work with mouse move, unfortunatly the scroll does not work -
So I have an interactive piece with several shapes. There are about 5 rectangles, 3 horizontal and 2 vertical. For aesthetics and to fit them all in the space (stage), they overlap slightly. Whenever you mouseover a single rectangle it pushes the other rectangles away and a text bubble appears. When you mouseout, the text box goes away and the rectangles return to their original position. This worked without glitches when I applied it to the first rectangle. Now that I'm applying this to all of the other rectangles, I'm running into trouble. I'm thinking the trouble is with the overlapping portion. If you hover one rectangle where it overlaps another rectangle for a split second it plays the correct animation but then I think it tries to also play the animation for the other overlapping rectangle that appears underneath.
So my question is, what is the best way to remedy this problem? On mouseover can I temporaily disable mouse events for the other rectangles once one has been triggered? And then maybe re-enable them on mouseout? Is there a way for the rectangle that is visually on top to be the one that recieves the mouseover event?
I found a really good tutorial here for how to create childsymbols on a mouse click and it works fine - as long as you are doing it on the main stage.
Here is the code:
var circle = sym.createChildSymbol("flower", "Rectangle"); var circleElement = circle.getSymbolElement(); var posX = (e.pageX- ($(circleElement).width()/2)) + "px"; var posY = (e.pageY- ($(circleElement).height()/2)) + "px"; sym.$(circleElement).css({"position":"absolute", "top":posY, "left":posX});
I wanted to create the ChildSymbols on to a premade symbol I have called 'Rectangle'. This works as long as my symbol 'Rectangle' is the same size as the Stage or at least placed at the top left of the screen.
However if I move the symbol 'Rectangle' away from the 0,0 coordinates then the Child symbols appear offset by the distance that 'Rectangle is from the zero point.
How to keep the Child symbols where I want them to be on the Rectangle? I tried calling the childSymbol like this:
var circle = sym.createChildSymbol("flower", "Stage");
And that keeps the symbols where they should be, but for some reason it has a performance lag and also means that you can't click within the bounds of a generated childSymbol.
Everytime i open Adobe Edge Animate, it takes a good minute or too to stop the spinning ball. Then after every mouse click, it spins for another couple of minutes, and so on. I have tried creating the launchd.conf file with the proxy information, I have uninstalled and installed numerous times. I am working from CC with a Mac Book Pro Retina, 15-inch, Early 2013 OSX 10.8.5. I am having no other issues with any of my other applications and them being responsive.
I am trying to create an instance of a symbol at the mouse location when i click - anywhere on stage. I think it should be something like the following:
//stage on.click function
// Create an instance element of a symbol as a child of the // given parent element //premade code: var mySymbolObject = sym.createChildSymbol("Symbol_1", "ParentElement1"); var mySymbolObject = sym.createChildSymbol("Symbol_1", "Mouse");
This doesn't work of course because the mouse isn't a symbol.
I have a list of menu items. I want them to change color when the user rolls over any of the six menu items. I want to write a function so it would be
var = menuTarget; (this is the item the user is currently mouseovering how do I define this?) menuTarget.mouseover(function(){ $(this).css("color","red"); }) menuTarget.mouseout(function(){ $(this).css("color","green"); })
i have a problem with an animation in Edge Animate. I try to animate a button which spins 45° on mouse over and back on mouse out. So far no problem. Now i want the button to spin 90° when i click on it and let it stay on this position. I made it spin the 90° but it always spins back on mouse out because the event is still there. Is there any possibility to delet the mouse out event or pause it after clicking on the button. I already tried remove it but without any sucess.
I create a child symbol on the stage animate it and store the varible in the window
var infoscreen = sym.createChildSymbol("_01", "stage"); window.infoscreen = infoscreen;
I put a Btn_inside the symbol and want to delete it. But first - I want to fade out the symbol. I dont know how to do this. So the animation has to be complete before delete, but how?
I'm trying to move an object 10 px left or right depending on which button they click on.
Ex. Click Button A and a square will move 10 px left. Click Button B and the same square will move 10 px right. Click Button B three times and the box will move 30 px right.. etc..
Also is there a wiki or faq sheet of all possible actions?
I am using the rollover and rollout features to get a slide up and down kind of button panel. However when I rollover each of the three section (it's divided into three panes) it gets really twitchy and won't do the roll up and down smoothly are do it at all. URL....
I have this button that, when clicked, opens a new URL - window.open("http://www.xxxxxx.xxx", "_self"); - after playing a 1000 ms animation. The problem is that it changes to the new URL too soon, before completing the 1000 ms. I tried a setTimeout, and it worked great, but it's not so elegant as it depends on the user's computer/net speed...
I created a simple banner with a couple of basic animations. I never even touched any code. Only basic images are used, no triggers, no symbols.If I preview within Animate, everything works fine.
As soon as I hit ctrl+enter to preview in my browser, everything just stays blank. I checked in multiple browsers, all have the same result with no errors in console.Autoplay is turned on.
I am a graphic designer and I work on w7 64.I find the latest version of Edge Animate.I saw several tutorials, amongst those showing how to make a loop on an animation. I proceed as explained in the preview on my browser (Chrome), the animation runs, but no loops.In fact, I tried other interactions and other triggers : nothing of these works there!
I need to create a mask that will hide the elements as they rotate out of a free-floating window. I have an animation currently that sits in a circular window and plays when the page loads. The screen shot below is from the page in Muse with the .oam file playing. The images are PNGs with transparent backgrounds so the animation plays over the background images.
What I'm trying to add is an iris effect I've animated in Edge Animate. I haven't been able to hide the edges of the vanes in the iris during animation. I've tried to cut and paste code that I've found on this forum and others but I don't know much about coding and I haven't had any success. This screenshot is shortly after the animation starts to play as the vanes rotate out of the window:
Basically, I need to mask the iris animation to keep the images from showing outside the circular frame. I've found that the clipping tool in Edge only does square or rectangular masks. I have a PNG that I can use as a mask but the coding has really got me flummoxed. The mask:
I just made my first edge animate project and made a progress loader animation. Works well.When i placed the code in the site the animation was always on, so i've hidden the item in css
#Stage { display:none; }
When my animation is needed i'm making is visible however the animation has already been started in the background so wont begin the right place. I'm wondering should i stop the stage autoplay in the config and then start the animation in JS? If so how can i go about starting the animation via JS.
I've been playing around with AdobeEdge.bootstrapCallback but cant seem to get it to play.
I created an animation for a landingpage on my website(built with wix.com).
My problem is, that wix.com has got no folder-organisation or upload-function and my Edge animation has *.html, *jscript and *.jpeg/*.png files.
In a Wix.com-forum, I've found a response, that said, that I should use external storage-websites for my files.I did so and put these files in my dropbox/public folder, copied the open links in the *.html file like this:
i created an animation for my index page of an already existing website. i tried to "publish settings" but app would not allow me to publish to my directory however it did allow me to "publish". when i uploaded the files to my server, only the splash image came up but the rest of the animation did not run. what am i doing wrong?
I have created an animation where the objects move left to right.Is there a simple way of 'flipping' the timeline so that the animation effectively plays in reverse, rather than redoing the animation altogether?