Edge Animate CC :: Turning XML Imported Data To A Number
Apr 14, 2013
I am trying to turn XML data into a number that I can use in formulas in Animate. I have successfully retrieved the info from the xml file into the text on the stage. My problem is that I need to have the value of the imported data to be a number so that I can do future calculations with it, like add the two numbers together to make a new variable total. I have racked my brain reading about XML, spent several days trying obvious solutions to no avail, and yes I am new to coding although I have thoroughly tried many options.
-----IMPORTING AN XML FILE "textimport.xml"
<?xml version="1.0" encoding="UTF-8"?>
<mediansaleschart>
<figureone>20</figureone>
<figuretwo>10</figuretwo>
[code]....
I started an animation requiring a multitude of objects and I'm starting to find it difficult to remember which one is which when they are all called "round rect," "rect 2 copy 2," etc. I found it easier to animate if I let them remain as objects rather than symbols, but it has started to become difficult to determine which object I need to animate next. I tried turning them into symbols, but it seems to complicate things more for me.
In Edge, I have created an application where a user can click buttons and then it takes them to a separate scene. However, I seem to have run into a problem where the click only works in a certain area of the box. I created the buttons in Photoshop and imported them to Edge. Only the edge of the button closest to the edge of the stage will work for clicking for some odd reason.
What is the maximum number of elements I can have in the timeline? I believe I have about 92 elements now and when trying to add another element it shows up at the top of the elements panel, but isn't showing up at all in the timeline?
I have tried converting some elements to symbols or grouping elements but still the new element I've added to the stage is not showing up in the timeline. I am not EVEN done adding more elements.
I have a 3rd field created to hold the answer. I also made a text field with the name "scorefield" to see if that would work, either will do.
Then on a button on the stage, the user clicks on it to add those first two numbers together and have the sum appear in the 3rd field or the text field that has the symbol name "scorefield".
However I can not seem to be able to add the 2 values of the text fields. On the submit button I have:
var number1 = $("#input1").val(); var number2 = $("#input2").val(); var additionresult = number1 + number2; sym.$('scorefield').html(additionresult); answer1.value = additionresult;
The problem is that it is NOT adding number1 and number2 together!
If I substitute + for - or / or * it works using those symbols, but if I try to use the plus sign and add the two, it does not work and instead physically adds the numbers next to eachtoher.
So If I were to put a 5 in field one, and a 2 in field 2, the result comes out to be 52...instead of adding the two values, it places them next to eachother.
I know those ARE numeric values because any other mathamatical sign works. I can multiplay, subtract and divide those two numbers. I can even check to se if its higher or lower of a value using > or <.
But when I use the + sign, it breaks.
Is there some other sign I must use to add two values?
How to create two instances of the same symbol and change the texts and images inside the instances to have different texts (so I mean different from the other instance)?
Somehow, instead of using dynamic creation by using code, I can't manage this. Everytime I change a text inside A (instance of symbol1), the text of B (instance of the same symbol1) is also changed. The same with images. I can't figure out what I'm doing wrong here. I can't imagine symbols are always reference types, 'cause what's the meaning of having symbols then?
I've created a number of child symbols in a for loop for each of the data elements in my local json file. However, based on key pressed (up/down/right/left), css property of a particular child symbol only needs to be changed/highlight... how can i access an earlier created child symbol ?
What i'm trying to create is that based on arrow keys, i can select/highlight (by changing css property) a particular child element only. (similar to traversing cells in an excel sheet -top/down/right/left)..
I have a shape that was made in Illustrator. See right. It's the thought-ballon-y-looking thing.
The everything outside of the black part is transparent. I want to use this shape as a mask so that another comp will appear inside the balloon shape, but not outside the shape.
1. crolling like where you have buttons for example or press on a navigation bar tab, then it goes to that specific pace of the page, for a one page website, for example some sites you press on contacts and gose down to the bottom of the page where the contacts place is located, not opening a new link.
2.Second, navigation bar, where it fallows the scroll as it gose down, like for example when it is html the object is fixed to the top, and when you scroll down it will fallow it it,
3.I need Parallex scrolling where you can have the timeline or animations run while you scroll in the meantime and have animation running all the time, for example the infographic site where the bees are fluying but still have seperate animations while you scroll
4.I would also like to ask if like looping each animations sperately, not looping the whole timeline, can it be possible to loop an animation while you have all the interactivity witht he site like looping seperately all the time, without interfeering with all the other animation
5.I also are wondering if you can create multiple pages on one animate project, like multiple pages with html
I just moved on to edge animate from html, and html was also beirf learn for me and mostly i was doing design work, and i thought getting out of graphic river and moving on the theme forest.
I want also all the five things to work on one aimate project.
Is it possible to get the text color to FadeIn or the opacity of the text color to animate with the lines of code below? I simply want the color to fade in when the mouse rolls over the text.
I'd like to animate snow falling. I assume Edge would be able to do this. Will it be possible to add it as a background? Or would it just be easier to add the effect to the top graphic portion of my page? I've used Edge back when it first came out. But havent' touched it in a while. I'm now working "in the Cloud". and I do use Dreamweaver.
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 280 extracted frames from a 12 sec. mp4 clip. I've cut-out the main object to get rid of the background and saved all the files as png. How can I bring this to a HTML5 Animation to place it on a page that will be showed on ipad-air (no animated gif and no flash)
What the best way is to animate a progress bar with an increasing %. Seems like you would specify a variable set to 0 that is then incremented via javascript while an animation is going on.
I have an ordinary div I composed with HTML, that I'd like to import into an existing Edge Animate comp and have it treated like an ordinary div. The two closest things I saw were: a YouTube video of a whole page opening in EA, and divs animated within itThis other forum, which has more components imported than I need:URL...Isn't there some kind of pasting window somewhere?
So I created my own subscription form, I have it appear and disapear when you are on the button. And when you click on it, it stays. But how can a put in an action to add text to it?
I'm looking for a way to animate a link with a hover feature. I would like the link to be initally blank, but after hovering hover the link, a colored rectangle of sorts slides in from left to right, essentially creating a new background color. When the cursor moves off of the link, the colored rectangle in the background would slide back to the left, disappearing.
After some thought, initially it sounds like an animation of clipping masks. Not sure if this is possible in Edge, or if I am on the right track.
Another hover animation that looks as if it would be some sort of clipping mask is found here on this site: [URL]....
I love the link to the right of the screen that says "Watch the trailer." It's a simple, beautiful animation that gives the site a great look.
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.
The Elements window in Edge Animate seems to be unstable. When I right-click in the field to modify an asset, Edge often crashes with the resulting error message:
Edge Animate - Exception An error occurred. Please save your work and restart Edge Animate.
Is there a way for me to know what all features of HTML5 does my Edge project actually use.
I know there are a lot of sites which tests what all HTML5 features are supported by a browser, but I want to know which all features are being used by a edge project.
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.
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.
From the image above you can see that "jquery" loaded twice @ 91kb = 181kbedge 1.5 loaded twice @ 102kb = 204kb aswell as the edge and edge actions files loaded twice and if i boot strap comps together the images are loaded multiple times aswell
I followed the adobe tutorial to manually create an html page in order to have two edge animations on a page but it doesn't work well. The second animation starts but not the first one (I can see the first frame only).
Edge Animate project produces 4 default framework files right now: Edge API, jQuery, jQuery Easing and JSON. Gzipping them we got 60KB of pure JS compressed and minified code. After that we have actual project files which can be compressed into around 20KB but this really depends on a project. So finally we have around 80KB of JS code without images, styles yet. This is acceptable for broadband connections but looks a bit too large for mobile devices.
Is there any way to minimize dependencies on jQuery so that framework will be at least 30KB? Smaller is better in this case.
I'm evaluating Hype by Tumult at the same time and framework JS produced is 16KB compressed and minified. It's 4 times smaller (60KB of Edge Animate). It doesn't contain IE-compatibility though but I don't seriously care about IE 6-9 as mobile is primary target for me so Webkit.
How do you create a responsive and fluid carousel, vertical or horizontal for a menu which includes multiple items. the carousle can be dragged via mouse or touch. when the item is clickes, then it will launch a URL or plau a timeline.