Note on interactive SVG and Edge Commons

I encountered something I want to mention so people do not pull their hair trying to find out which things are not working.
1- issue publishing
If you add a js folder for your js files, Animate v2 will not import it in your web folder - So add it after you have published
2- SVG layer names
If you use uppercase for your layer names, you may have problem using it for adding images for example. This is especially true if your server is Unix because it is case sensitive. It is better to not use uppercase in names.
I used the layer names to add images and of course the server could not read the uppercase. The code was right but the reading was wrong  and the images did not load.
Note: in the code below I added 3 lines to take off numbers created when more than one layer had the same name and also took off space when I had more than one word in the name. Not pretty but it works.
var newText = (event.target.id).split("_").join(" ");
var newText2 = (newText).split("1").join("");
var newText3 = (newText2).split(" ").join("");
sym.$('image').attr('src', 'images/'+ newText3 + '.jpg');   // if the layer name is uppercase then the image is not loaded.

Thanks Gil
I guess being case sensitive can make things tricky!
To clarify, you have to keep track of what is what like for javascript. If your files are lowercase then your call needs to be lowercase too. This is exactly what happened. I suppose if my file names had been uppercase then it would have worked but I did not test it.

Similar Messages

  • How to add a link to an interactive svg using edge commons library

    Hi,
    I've been playing around with this wonderful Edge Commons interactive SVG tutorial
    My question is : How to add an external link "url" to an interactive svg using edge commons library ?
    Edge commons example file :
    http://edgedocks.com/market/interactive-svg-example-project-edge-commons
    Edge commons  video tutorial :
    http://www.youtube.com/watch?v=4UEB6gaLKuw
    I have adapted this tutorial to an interactive map, http://madudesign.com/works/france/ every thing is going fine until I couldn't figure out to link a particular url on each part of the region of the map.
    I managed to figure out how to change colors on the different parts of the map on mouse over and mouse out but I'm not quite comfortable with JavaScript since I don't use it every day...
    I have tryed to link to an url by passing it on the illustrator layer and via the onclick event (event.target.id) to a simple url
    http://redpen.io/6svh5u
    then working in Edge and publishing on the browser the link returns me a weird url line by replacing the original url slashes "//" by "_x2F_" and I must have misunderstood the proper JavaScript line to open that link from there...
    for example on my actual exemple "http://madudesign.com/works/france/"
    the first top region of France is normally a link to "http://www.google.com" and it returns "http:_x2F__x2F_www.google.com" plus the complete path to the file too...
    I don't know how to get around this trick and have back for each region a particular clean link from the event target id of the svg...
    thank-you for any help
    matt
    link to my edge animate file if needed :
    http://madudesign.com/works/france/carte_de_france.zip

    I got an answer from the Edge Commons dream team and I am very grateful to them :
    "The problem that you bumped into was that you hadn't included a valid URL so far. We weren't sure if you wanted to include them within the SVG file or if you wanted to implement the functionality within Edge Animate. We came up with a solution for the latter one, with a simple switch in the js code:
    You have to type in the appropriate URL of course for all the cases."
    I have to share the final result:
    http://www.madudesign.com/works/france/france_map/
    And the zipped project file:
    http://www.madudesign.com/works/france/france_map.zip
    Thanks to Daniel & Simon
    Matt

  • Edge Commons - Interactive Svg Map

    Hi folks!
    I've watched the extraordinary video tutorial of the very talented guys from EdgeDocks (http://edgedocks.com) about how to build an Interactive Svg Graphic with Adobe Illustrator and Adobe Edge Animate: http://www.youtube.com/watch?v=4UEB6gaLKuw.
    I've followed the example explained in the video tutorial using a Svg Map file and making selectable one region (the lower right, in light brown color) to try:
    http://www.terredainventare.it/svg/MappaSvgInteractive.html
    (project files: http://www.terredainventare.it/svg/SvgMap.zip)
    So when I select this regione, Edge Animate replaces the placeholder text with the name of the path ("Isontino"), but when I click the red Ellipse, the color of the region remains in light brown. Why?
    Many thanks in advance for your help!
    Davide

    Hi!
    Following a precious hint of Simon Widjaja, the author of EdgeCommons libraries,
    I've replaced
    $(selectedPart).css("fill", $(e.currentTarget).css("background-color"));
    with
    $(selectedPart).each(function (index) {
    $( this ).css("fill", $(e.currentTarget).css("background-color"));
    beacuse my "SelectedPart" was a group in Adobe Illustrator and I need to select each element to fill it with color: but it doesn't work.
    Where I am get wrong?
    Here the update project files: http://www.terredainventare.it/svg/SvgMapEach.zip
    Many thanks in advanced!
    Davide

  • How do I use edge commons composition loader to load multiple compositions with a next and back button?

    I am working on an interactive book and have set up each page as a separate composition in edge.
    I am using  the edge commons JS library to load multiple compositions into a main composition.
    You can see how this works here: Edge Commons - Extension Library for Edge Animate and Edge Reflow | EdgeDocks.com
    The way the edge commons tutorial is set up requires a button for each composition i want to load. I am interested in loading multiple compositions with a "next" and "back" button, and a "swipe left, "swipe right" gesture on the content symbol that each composition is loaded into. I also need the swipe features on the content symbol not to interfere with the interactive elements on the loaded composition.
    Please suggest a solution that will work without adding additional scripts beyond edge commons and jquery.

    Sort of. I'm using this code inside an action for a button symbol. But it doesn't work perfectly. Trying to debug it.
    Let me know if you have any luck.
    //Check to see if pageCounter already exists
    if (typeof EC.pageCounter === 'undefined') {
      // it doesn't exist so initialize it to first page
        EC.pageCounter = 2;
    //check if the page is only 1 digit -- patch for single digit
    if (EC.pageCounter < 9) {
       // it is, so we need to pad a 0 on the front.
      EC.pageCounterString = "0" + EC.pageCounter;
      //e.g.  01 ...09,11,12,13....115,222352,,....
    else {
      EC.pageCounterString = EC.pageCounter;
    EC.loadComposition(EC.pageCounterString + "/publish/web/" + EC.pageCounterString + ".html", sym.$("container"));
    EC.pageCounter = EC.pageCounter + 1;
    //TODO for back  -1

  • Yepnope still works, Interactive SVG does not without it | EA 2014.1.1

    Hi all,
    I'm trying to create an interactive map of the US using Edge Commons interactive SVG. I've been reading that yepnope is deprecated and doesn't work in the new version of EA 2014.1.1 but it seems to still work for me and appears to be the only way I can interact with an SVG. I have added both jquery-1.11.2.min.js and EdgeCommons.SVG.js in the scripts panel but can't seem to get it to work without using the yepnope function. Can anyone help me with this? I'm running a Mac OSX 10.10.2.
    Here's a link to the EA file.
    Dropbox - default.zip
    Thanks in advance for all your help!
    Kenny

    Hi all,
    I'm trying to create an interactive map of the US using Edge Commons interactive SVG. I've been reading that yepnope is deprecated and doesn't work in the new version of EA 2014.1.1 but it seems to still work for me and appears to be the only way I can interact with an SVG. I have added both jquery-1.11.2.min.js and EdgeCommons.SVG.js in the scripts panel but can't seem to get it to work without using the yepnope function. Can anyone help me with this? I'm running a Mac OSX 10.10.2.
    Here's a link to the EA file.
    Dropbox - default.zip
    Thanks in advance for all your help!
    Kenny

  • Advice on using Edge Animate & Interactive SVG to create an interactive map

    Hello folks, I'm hoping for some guidance on a complicated graphic. My org. has an existing interactive map which was created by a freelancer for us using Ruby and js. It's very nice but I wanted to see if it's possible to recreate using Edge Animate (both as a challenge to myself and as a way of being able to move ownership of it in-house). Here's the map:
    http://csai-online.org/sos
    I have done a fair amount of work in Edge Animate but have mostly stuck with simple interactivity (play, repeat, navigation links, etc.) so this would be a stretch. But I'm thinking that the map itself (with various shadings) could be recreated using Edge Commons' Interactive SVG function. I would create the map in Illustrator as an svg with different layers for each group of states, which would then be activated by the buttons in Edge Animate. (The floating box could be done entirely in Animate.)
    So my questions are,
    - Does this seem doable, and has anyone done something similar?
    - How do I trigger the layer visibility toggle from Edge? There's a tutorial from Edge Commons which changes the color of an object by CSS, but it seems like it would be simpler to use layer visibility.
    - Some of the combinations of checkboxes result in States that are in multiple groups (resulting in a striped fill). I'm guessing I'd need to add some code to indicate that if buttons X and Y were both checked, a third combined layer would be shown. (A further complication is that each of the groups of buttons shuts off the other groups.)
    Alternately, it seems like I could also create each state as a series of differently-colored graphics which are then shown or hidden based on which buttons are checked (using arrays, maybe?), but that seems a messier due to the million separate images.
    Anyway, how would you approach this problem, I guess is my main question.
    Thanks very much.

    This looks pretty simple to me and I don't see why you wouldn't be able to do it in edge animate.
    Create each state as a button and animate the hover effects inside a symbol and then on the main timeline animate the content boxes opacity to on and off and set labels for each "on" state and then in your button link to that label in the mouse over actions preset.u
    As far as calling the bottom content into the div i would just do that by hand by grabbing a simple script off the internet. *theres loads*

  • Edge Commons Spotlight not working any more on the new version of Edge Animate CC 2014.1

    Hi, i am trying to use the Edge Commons Spotlight but with the new version of Edge Animate cc 2014.1 is not working right. The result is a black transparent background with a little white spot on the center. Please help!!!
    CompositionReady:
    yepnope({
        load: [
                 "js/style.css"
    Click:
    var config = {
        width: 800,
        height: 508,
        type: "image",
        source: "spot/_01.png"
    EC.Spotlight.open( config );
    I also add js/EdgeCommons.js
    and js/jquery-2.1.1.min.js from the disk.
    This is the link to the proyect:
    https://www.dropbox.com/sh/5w1qspe4vfw0wza/AACEk6ieJiaGGMe_IFpWlssba?dl=0
    Thanks a lot!!
    more

    We will update you on the fix. Right now, if you add jquery ui as a dependency after jQuery, that will solve your problem. I am sharing a sample here - Dropbox - EC.zip. I am loading jQuery UI from the CDN, you can copy is locally also and load it from there.
    -Dharmendra

  • Edge commons parallax not working...

    Hello I am a new user I need help with edge commons the parallax feature is not working so anyone can send me a demo or somethings
    thanks

    We will update you on the fix. Right now, if you add jquery ui as a dependency after jQuery, that will solve your problem. I am sharing a sample here - Dropbox - EC.zip. I am loading jQuery UI from the CDN, you can copy is locally also and load it from there.
    -Dharmendra

  • Email only works on Wi-Fi and Edge, not on 3G

    My husband and I both have the iPhone 4. We run different versions of iOS (6.1 and 6.1.3 ) We both use different email providers (I'm with Gmail, he is not) but neither of us can send or receive email via 3G, only via WiFi and Edge.
    Our 3G is definitely working because we can use it to browse the web, run Pandora etc.
    Things we've already tried:
    - Close all apps and restart phone
    - Change Fetch/Push settings
    - Reset  Network settings
    Like I said, the only thing we have in common is the ATT data account, so it's not our email providers or iOS.

    Update: The problem seems to have corrected itsself (after 5 days of dealing with the issue)

  • Edge Commons to trigger CSS animation in SVG?

    Hi there,
    I have an SVG file that has a sequence of 2 CSS animations within it:
    <defs>
    <style type="text/css">
         .t1a {
    stroke-dasharray:537;
    stroke-dashoffset:537;
    -webkit-animation: t1a 2s linear forwards;
    <!-- Animation lines-->
    @-webkit-keyframes t1a {
    from {
    stroke-dashoffset: -537;
    to {
    stroke-dashoffset: 0;
         .t2a {
    stroke-dasharray:544;
    stroke-dashoffset:544;
    -webkit-animation: t2a 2s linear forwards;
    -webkit-animation-delay: 2s;
    <!-- Animation lines-->
    @-webkit-keyframes t2a {
    from {
    stroke-dashoffset: -544;
    to {
    stroke-dashoffset: 0;
    </style>
    </defs>
    The items touched by these CSS are 2 lines:
    <line id="t1a" fill="none" stroke="#000000" stroke-width="0.391" stroke-miterlimit="3.864" x1="282.5" y1="999" x2="423.2" y2="480.3"/>
    <line id="t2a" fill="none" stroke="#000000" stroke-width="0.391" stroke-miterlimit="3.864" x1="949.1" y1="622.2" x2="423.2" y2="480.3"/>
    I'd like to have 2 buttons on Animate to start the 2 animations. I mean that I was thinking to apply and remove the classes to the ids in some way. I think that maybe with Edge Commons this is possible. So, summarizing, I need to manipulate some ids in the SVG and apply those classes to them. Is it possible?

    Have you tried the Adobe forums also?  E.g. I saw
    http://forums.adobe.com/message/4718924

  • Episode 2: Flexible Layouts Using Adobe Edge Animate and the Edge Commons Library | Create Like Crazy with Adobe Edge | Adobe TV

    With Adobe Edge Animate you can create flexible layouts easily. In this lesson you will learn how to use percentage values, alignment and several other layout presets to build flexible layouts that look great across all screens. You will also learn how to create different adaptive layouts for specific screen sizes using the Edge Commons library.
    http://adobe.ly/QnCdXY

    No ADOBE TV videos play. Not in the latest Firefox nor IE. The play icon appears - I click it  - and the frame remains black -- no error message, nothing. I even tried accepting 3rd party cookies- nothing.  I can play videos fine from othe sites, youtube .... etc ....

  • I am trying to use a interactive form and it says "If this message is not eventually replaced by the proper contents of the document, your PDF  viewer may not be able to display this type of document."  This is a IRS form and has worked before.

    I am trying to use a interactive form and it says "see below"  This is a IRS form and has worked before.
    is there a tech support phone number?
    Please wait...
    If this message is not eventually replaced by the proper contents of the document, your PDF
    viewer may not be able to display this type of document.
    You can upgrade to the latest version of Adobe Reader for Windows®, Mac, or Linux® by
    visiting http://www.adobe.com/go/reader_download.
    For more assistance with Adobe Reader visit http://www.adobe.com/go/acrreader.
    Windows is either a registered trademark or a trademark of Microsoft Corporation in the United States and/or other countries. Mac is a trademark
    of Apple Inc., registered in the United States and other countries. Linux is the registered trademark of Linus Torvalds in the U.S. and other countries

    That means you are looking at the form online with a browser that uses its own (incompatible) PDF viewer, not the Adobe Reader plugin.
    Either
    download the form to your local disk and fill it from there
    use a browser that employs the Adobe Reader plugin
    configure your browser to use the Adobe Reader plugin: http://helpx.adobe.com/acrobat/kb/pdf-browser-plugin-configuration.html

  • HT5098 How can I read on my Apple Arabic files of Times New Roman or Arial in PC? when I get the files the Arabic letters are separate and not joined. Is there a common font in Arabic that can convert the PC Windows files to  my Apple?

    How can I read on my Apple Arabic files of Times New Roman or Arial fonts made in PC? when I get the files the Arabic letters are separate and not joined. Is there a common font in Arabic that can convert the Arabic  PC Windows files to  my Apple?
    The same with email messages ,
    And when I get Power Point files made in PC Windows, they are like PDF, not Power Point!
    Anybody with a good suggestion?

    Yewtree wrote:
    when I get the files the Arabic letters are separate and not joined
    Do not use MS Word for Mac, it does not support Arabic.  Instead use Mellel, TextEdit, Nisus Writer or OpenOffice.  Try the font Geeza Pro if others do not work.
    What are you using to read email?
    What are you using to read powerpoint?

  • Edge Commons and  adding external data?

    I'm trying to add information from a script.  Specifically, this script simply checks the ip address of the user to display the closest city to them and the weather.
    The docs on Edge Commons are still sparce, so I don't really have an idea of how to use variables passed to edge.
    The script creats four variables:
    edge_city
    edge_state
    edge_temp
    edge_weather (cloudy, sunny, etc...)
    I want to display these on the stage I have already created.
    Any suggestions?
    Thanks!

    anyone have any information on how to pass page variables in edge?

  • 'Element is currently not visible and so may not be interacted with' when using Firefox.

    .

    Hi MonsoonMally,
    Thank you for posting in MSDN forum.
    >>'Element is currently not visible and so may not be interacted with', when playing back a CodedUI capture for a particular button selection function (captured in IE) and played back in Firefox.
    Based on your issue, I suggest you can try to use the
    DrawHighlight Method /SetFocus() to check if the correct control is found before you perform actions on the target control.
    If the above suggestion could not help you, since this cross browser testing is involved to the Extensions tool
    Selenium components for Coded UI Cross Browser Testing, this extension tool is
    out of support range of this forum.
    In order to resolve your issue better, I suggest you post this issue
    here, click “Q AND A”, you will get better support there.
    Thanks for your understanding.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • ADFc: No view port found when using both Browser dialog and TF inline-popup

    Hi, Using JDev 11.1.1.2. We have a table with data and two commandlinks. One navigates to a task-flow-call configured to "run as dialog" in a modal inline-popup. This opens a modal inline-popup that can be used to modify the data. The second command

  • Note 3 4G Signal loss.

    I got the Note3 back when it first came out in October/November. I noticed that I did not have very steady or strong 4G signal in my new office. I just figured that it was the location of my office. I then started having problems with even getting ba

  • LMS 3.2 CSDiscovery stalled

    I am using LMS 3.2 and Device Discovery never finishes. It discoevers the majority of devices and then hangs. The only way to stop it is to run pdterm CSDiscovery from the server command line. I used to have exactly this problem under LMS 3.1 and was

  • Will my pictures be deleted if if sync with new harddisk?

    I´ve have used my ipod as a disk and got some pictures on it with my cameraconnecter. Now I got a new harddisk on my computer. Will my pictures be deleted if I sync it?

  • Page breaks options in BEx

    Hi All, Do we have any page break options in BEx? If so please provide me the steps. If not then, is there any alternate? Thanks and any help is appreciated.