Edge Animate CC :: Targeting Adobe From External JavaScript File?
Jul 12, 2013
Is it possible to target adobe edge build from an external Javascript file? For instance, I click a button outside of the edge animate project and javascript tells Edge animate to "play()". What would that syntax be?
I'm trying to create all kinds of functions on an external .js file, so I can just call them in Edge multiple times with less coding. The thing is, after importing jQuery and my external Javascript file, some code works, but I get stuck at this part: changing the .css property of a symbol, more specifically, the "font-size" property. My current function is:
function setFont(textid,fontsize,originalWinWidth){ //textid: symbol's name; fontsize: current font size of this symbol; originalWinWidth: window size at the start of the animation console.log("Set Font:"); //set the original font size var originalFontSize = Math.round(originalWinWidth/fontsize); console.log("Original Font Size: " + originalFontSize); console.log("Text ID: " + textid); //set the font size using jquery sym.$(textid).css("font-size", originalFontSize); }
I get an error at the last line, all other parts of the code works.
I have come across about a dozen similar discussions, but most have presented solutions that worked in earlier versions of Edge and no longer work.
I am trying to use Edge to build animations that can then be integrated into larger non-Edge projects. I would like to then be able to control the Edge timeline or Edge symbols from elements OUTSIDE of Edge, such as another link or button in the page.
I cannot seem to figure out how to properly reference the Edge stage or symbols.
I have come across several proposed solutions for referencing Edge stage, such as:
var comp = AdobeEdge.getComposition("EDGE-966604542"); var stage = comp.getStage(); var comp = $.Edge.getComposition("EDGE-966604542"); var stage = comp.getStage(); var comp = Edge.getComposition("EDGE-966604542"); var stage = comp.getStage();
and these either DO NOTHING or throw errors about either AdobeEdge or Edge or comp being undefined.
Do I have to write a CSS rule for every symbol and element in a presentation or can I just specify a general rule for the whole thing?For example, how can I specify that all images should have a red border, or all links should change color on hover?
Shouldn't I be able to create a separate CSS file as in Dreamweaver and just attach it?
the project I am working on is using a default.css and I would like to assign styles from the file to elements in edge - how can I do that?I already tried the "class" setting in the GUI next an element but the elements do not use the styles defined in the default.css.The default.css is linked in the html file properly. In the js file which edge creates I see that the value userClass: 'slideTitle' is assigned and slideTitle is defined in the default.css.
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.
then you add that symbol to stage and have the following code in document.compositionReady
var mySymbolObject = sym.getSymbol("HoverExample"); var targetElement = mySymbolObject.$("backing"); targetElement.css({"background-color":"#111111"});
where mySymbolObject is the symbol on the stage, backing is a rectangle div and the color is different than the original color in the symbol then you add the following code for hitbox (rectangle div that is alpha 0) under Hitbox.mouseover
sym.stop("over");
the end result is that the css from the project, in this case the red background color, gets reapplied on mouseover despite me changing the color on startup.
How to publish/ include my Edge animation which has an audio element (included via the buzz javascript library) to Wordpress. Thus far Ive been uploading Edge animations as .OAM's using Edge Suite plugin for Wordpress. However, when I upload the file, there is no audio so Im at a loss on this one.
I have managed to make a flake in Edge to flash randomly after following a tutorial on lynda.com
My javascript knowledge is fairly limited but I used the following code on a trigger inside the flake symbol I made:
var randomFrame = Math.floor(Math.random()*5000); var maxWidth = $('#Stage').width(); var randomX = Math.floor(Math.random()*maxWidth); var randomY = Math.floor(Math.random()*300); sym.play(randomFrame); var myName = sym.getSymbolElement(); $(myName).css({'position':'absolute','top':randomY+'px','left':randomX +'px'});
This all works as a randomly appearing flake which doesn't look like snowfall. How to make the symbol float down from the top of the stage and repeated lots of times to look like snowfall?
I am looking into edge instead of flash. My question is how do you load external images and videos from an external server?To clarify, I need to insert a link from where the images can load into the stage, so they don´t take up any of the final weight.
1. i created animation (lens flare) with .png and transparent stage in adobe edge animate 2. export .oam out of adobe edge animate 3. import .oam into adobe muse 4. upload muse to server
when the animation, placed over the logo (see link), is loading in browser a white box appearing first. URL...reload the page, or visit again by clicking the menu (there is a difference) on (re)load (or when the first time user is visiting site) a white box appearing, or?
I would like to use the Jquery Address plugin with an Adobe Edge Animate project. When I create a simple website without Edge, I can easily use the Jquery Address plugin and implement it but here I'm a bit disappointed because I'm not really a developer and I don't know how to do.
I find more friendly the fact to be able to use the browser arrow to reresh, navigate previous and next page. Maybe it can be added in a future update of Adobe Edge ?
the programme hang when the import assests or save as for the first time - it does save the files but you have to force quit and reopen the file - running on a Mac 10.6.8
i have a character, i want to control the animation to use left arrow key and right arrow key.
When i press left arrow key the character run animation call. When i press right arrow key character back run animation call. when user don't press any key the character stop animation call.
if it's possible to control a html5 video in Edge ?For example, I added a html5 video with the video tag and I want the video to play and stop after 20 seconds. Then, plays some animation on my edge timeline. I suppose the video must be controlled with Javascript ?
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 including an animation I built using Edge Animate into Dreamweaver. I can't use an .oam file because of some other JavaScript I'm using so basically I'm limited to an .html file with all my edge includes java, and other supporting files.
when I preview in browser within dreamweaver. However, when I upload the page to my domain, my animate HTML file won't work. Here is a link to the current site in progress. (The first green box top left is my link to my animation). URL....
I have an existing HTML page (created in Adobe Muse) and I am trying to draw some Adobe Edge objects on top of the page (e.g. a rectangle or an image). When I look in the layers panel, the Edge objects show as top in the list. However, visually when I look at the page, the elements show behind the pre-existing HTML page from Muse.
I've placed the OAM file of my Edge animation and gone through the steps of creating a "folio", but when I preview in Adobe Content Viewer all I get is a static page that fades out when clicked.
The PHP code is not parsed. In order to have it work with Wordpress, I am using "Edge Suite" plugin, which requires you to import the animation as an OAM file, then I am firing it like this inside one of Wordpress' PHP file:
I have imported an OAM file into the first page of an app I am making in InDesign. The OAM looks correct on load but once the animation begins it gets really big and all I see is a tiny portion of the animation.
I have other text and graphics on that page I was wondering if that could be the cause.