Actionscript 3 usage in Edge Animate

Ok so our company has been using flash for the past 10 years. This year I have mentioned about Adobe Edge and what the capabilities are.  Amazed to say the least.  I did download the 30 day trial for edge trying to do the same things I had done in flash/AS3.  I have stubbled on a issue that I cant seem to get right.  Works in flash AS3 But I cant figure out if it works in edge. only because its new to me. 
I have exsisting actionscript 3: below
pbjack.text =  formatAsDollars(Number(root.loaderInfo.parameters.winner_amount)/1000000, 0);
Breakdown:
pbjack = Instance name (dynamic text field)
root.loaderInfo.parameters.winner_amount = a paramater name in xml stored on computer
above is the actionscript code that pulls in the value based on the paramater name "winner_amount"
I am trying to get the same information in Adobe Edge using the same code to pull in the same value.  I have been searching videos that show you can use actionscript but its not working for me.
Can someone assit me on how to translate the flash AScode above to Adobe edge output (html5)
Before we make this transition to adobe edge I have to test everything that is currently out there in production & this is the only piece that I am stumped on.
thank you in advance

Hi ,
Since pbjack is the same of the text field , you can set the value of the text using this snippet in Edge Animate :
var newText = sym.getVariable("winner_amount");
sym.$("pbjack ").html(newText);
This winner_amount variable needs to be set at stage composition ready function as :
sym.setVariable("winner_amount" , "");
You need to set this variable depending on the value you get from the xml.(However, not sure from where you are accessing this value)
Later when you get the value you store it in this variable and then retrive it from the same variable using getVarible.
Attached a sample for reference.
Let me know if you need any other info.
Thanks and Regards,
Sudeshna Sarkar

Similar Messages

  • Edge Animate/javscript API command similar to Actionscript fscommand('quit')?

    Our company recently replaced Flash with Edge Animate due to some major memory leak issues when pulling in dynamic data for our digital signage.
    In Actionscript, it was easy to signal to the digital signage player that the movie was ending with a custom fscommand.
    However, in HTML5, im having issues with how to do this in javascript. I currently do not see anything in the JSAPI for Edge Animate that would allow me to signal a third party player to end and unload the animation that is playing.
    I need to do this because the length of the animation is based on how much XML data I parse. This amount of data can change daily (10 seconds per xml node).
    Has anyone has a similar issue with this in the past and found a solution?
    Or perhaps I'm doing this incorrectly and I should be dynamically be creating the animation based on the available nodes in the timeline.
    Any feedback would be appreciated.

    Hi ,
    We have a timeline complete event in Edge Animate which would signal the completion of the animation. You can add your code for the timeline complete and then perform the appropriate action here.
    Thanks and Regards,
    Sudeshna Sarkar

  • How do I edit a .swf file in edge animate? How do I save it as a swf file?

    Hello, I need to edit the actionscript in a swf animation file. How do you do that with Edge animate?

    There is no such workflow for swf files.
    Edge animate only understands html, javascript. SWF files are alien to it.
    You should be using Flash Professional CC, for generating the swf files.
    hth,
    Vivekuma

  • Typekit font not displaying in iPad DPS app (created by Indesign) in Web Content (Edge Animate)

    I think I have tried every permutation to make this work, but I am probably missing something. 
    I am creating a single DPS iPad app with InDesign, and I am using a Typekit font throughout.  So far so good. 
    I have created an Edge Animate project using the same Typekit font.  In preview mode, it is fine as well. 
    However, when I place the Edge Animate project into a frame in InDesign and use the Web Content Folio Overlay (regardless of whether I use the .oam file or link directly .html output published by Animate), the Typekit font will not show up in the Edge Animate portion of the DPS app and will instead use a fallback font. 
    Can anyone suggest a way to make Typekit fonts in Edge Animate work when embedded in a DPS app?  (For what it's worth, I have the same problem when embedding html output from Tumult Hype, so it seems unlikely that this is an issue with Edge Animate at all and probably has more to do with something in the way the DPS app is dealing with embedded html content.)
    Thanks in advance for any assistance. 

    Believe me, I understand the pain. Unfortunately there's only so much we can do at Adobe as the EULAs provided by the foundries for their respective fonts are very explicit in where you can and can not use them.
    For example, packaging an InDeisgn file and sending it off for pre-press with the fonts included in the package is in direct violation of most font EULAs. In a studio environment, you're only allowed to have a font installed on n number of computers and need to have multiple licenses to accomidate >n number of seats. When creating a PDF, fonts explicitly have to be subsetted before embedding into the PDF.
    That's just to paint a picture of the fragile state of using fonts in print, usage in digital mediums is just another bee in your bonnet when it comes to considering when you can and cannot use a font.
    Services like Typekit Desktop are trying to make this easier by removing a lot of those pain and condierations for you, by blanketing all these fonts under a single license you're free to use for print and the web. There's still some gotchyas, but we're aiming to greatly reduce how much you have to think about it where we can.
    So yes there's a bit of education when it comes to mixing embedded HTML content/fonts with DPS, but at least there's options
    Sarah

  • Edge Animate site says it's still free, but it's missing in Adobe Application Manager list.

    http://html.adobe.com/edge/animate/ says:
    "Get started with Edge Animate and the rest of the Edge Tools & Services with a free Creative Cloud membership"
    but there's no An icon at the Creative Cloud site interface or in the Adobe Application Manager list.
    Can someone please provide some info about this? I hope that the reason for this is taht it's just some update that's on it's way, not the cancelation of free usage.
    Tnx in advance.

    True, WinXP is the problem. I've been looking for the requirements for the Edge (though that x64 os version is required) and it states that Win7 is a must.
    That solves it. Thank you for your effort.
    Hope this clears things up for other people.

  • Glitches and Load Speed Issues with Edge Animate Site

    I recently created a website at www.goshowpro.com and am having some glitches and load issues occur and would appreciate any help or insight into the matter. The site loads relatively quickly on my computer and my hosting servers technical support system but when I show it to my client it takes anywhere from 15-20 seconds, even after I have cleared the cache and cookies. All my image files are 'gifs' as to alleviate memory usage and I don't know what else to do that I haven't tried yet. Additionally, when you go to the services page from the about page, the light beams don't connect to the lighting fixtures and the text is placed differently than what I initially had in Adobe Edge Animate before I published the files. And the facebook link doesn't go to facebook but to www.goshowpro.com/facebook.... (ie I get a 404 error) even though in the program I have the link set as www.facebook.com....  I don't know what else to do besides what I have been doing and would very much appreciate any insight into these issues.
    I should also mention that I used more html files than I initially planned due to lack of support on creating complete animation functionality with Edge Animate. I would like to have everything on one page but I don't know if that would be possible with the current version of Adobe Edge Animate (1.0.1.204.22434). Thank you again for your help.
    Mike

    Hi, Mike-
    Have you tried profiling?  You can use Firefox's Firebug or Google Chrome Inspector to see what's taking so long to download.
    http://blogs.adobe.com/edge/2012/01/04/why-cant-it-just-work/
    -Elaine

  • Does Edge Animate have preferences?

    I can't seem to find any in the menus. Most web design apps allow you to specify things like which browser you want to preview in etc.
    Also the UI elements are miniscule. Is Edge Animate "retina ready"? if it is, does that mean the interface scales? if, so, can a user enlarge it to make the items more readable. I have 20/20 vision and I can read the items, but it's unnecesary to have to introduce un-needed fatigue by making all the numbers in the display 10 pixels tall. (I'm using a 1920x1080 display on Windows 7).

    This is not new information to anyone using this product. I have already had to change my system default browser just in order to test my edge animate work more easily, but this is a pain, as I now have to switch this back and forth between edge animate sessions. The idea of software is to make your life easier - not create unnecesary work of copy/pasting URLs in the test/debug/create cycle. This "feature" is trivial to implement and would save the user time - especially in the long run. Without it, the product seems unfinished.
    Also the issue of miniscule text could be easily sorted as to prevent eye-strain and fatigue for long-term usage. This is another gimmie. Particularly if the app is retina-ready, I am puzzled as to why this is not adjustable.
    Anyway, it's all feedback.

  • Edge Animate Free Licence Question

    Edge Animate is free for sometime - this is great news- but i have one question,
    what will happen after ending this free offer, will I be allowed reinstall Edge if for example my Windows 7 crash?

    Thanks Elaine... I see. Then it will remain necessary to come back to the Creative Cloud Service to perform installs when changing computer or hard drive or if installing on a different machine.
    Sad to hear that and I won't hide that also made me a bit upset too.
    Call me old fashion but I am not a fan of macro-managing and intrusive policies (subscription requires collecting a given amount of data that buying previous versions didn't... why does Adobe need my DoB if it ain't going to send me a cake and a gift?!) and who will ensure users the company won't be monitoring, whether to ensure proper funcioning or for other reasons, the usage or collecting machine information? I am still one of those who wants a "physical ownership" of what I purchase and I'd rather have no "always on connection" with the companies providing the software (when I want that I'll come here ;D) when programs don't require it. I am a fan of manual updates and user controlled actions. I don't like automatic systems at least as much as I don't like automatic cars (And no, won't line up to buy a drive-itself google car when that hits the market Sorry Larry and Sergei, but keep at it lots of people who don't like to drive will!)
    Back on topic... I like the level of privacy and sense of privacy the separate user controlled and network disconnected installer had always allowed. So Adobe will forgive me for not meeting this decision with too much enthusiasm as I will continue to consider it an unwelcome imposition on those willing to pay a premium to own a perpetual license that comes with disks or downloadable copy of the installer that can be kept by the buyer and istalled as they see fit. Unfortunately I have no influence on company policies and will have to suck it up. That's really too bad because while I like what the wiz teams are doing at Adobe, I can't say the same for marketing and executive departments
    That said though a question though will come natural here. Since I use my the Adobe product on my desktop while at my home office and I use the same copy on my laptop while at clients or on the go... how would that work for creative cloud applications with perpetual license or for those rented via subscription? Will I now be required to buy 2 perpetual licenses or 2 subscriptions for something I can't use at the same time unless growing 2 extra arms? Are there formulas that allow at least installation for smaller operations such as one-man bands or tiny quartets to operate without "breaking the piggy-bank"?
    In conclusion and as a reminder which I've already posted other times, when the community gets upset on topics like these it's not all just about money and even when "yelling, ******** and moaning", we do that with all the best intention to let Adobe know we still love the people working hard there, but we strongly and passionately disagree with some of the decision being taken and affecting all of us out here. When a company is this large and capable in direct and indirect ways to set standards and trends, we do feel the need to voice our concerns being part of those who have stakes as both end users of the products and consumer or what produced by those products... (hope this last thought will be clear to everyone reading ).
    Thanks again for your always welcom, informative and very much appreciated replies Elaine!
    Cheers!
    tfbkny

  • Have you used Drawscript to create code for Edge Animate?

    Drawscript is an Illustrator extension, http://drawscri.pt/
    Code can be generated into many formats: Obj-C iOS, JavaScript Canvas, CreateJS Tiny, ActionScript 3, Processing, JSON, Bezier Points Array, Archor Points Array, C++ OpenFrameworks Simple and C++OpenFrameworks Shape.
    Made note of this program some time ago and finally getting back to it.
    Looking for anyone using Drawscript to create shapes with code to add to Edge Animate.
    Do you have a working example of Drawscript to Edge Animate or tutorial?
    Thanks for any info.
    Cindy J-H

    I have replied to your previous thread.
    Thanks,
    Sanjit

  • How do I use Edge Animate to make a clickable image which can be used in Author, and which will redirect you to a different page in your ebook?

    If anyone has experience with Edge Animate, I know that I can make an image clickable, and I can insert a url to define where it will go once clicked. But I want to make a widget to use in iBooks Author, that can take the reader to a certain page of the book. Is this possible?
    It all seems very complicated. Make one thing in Edge Animate, then somehow have that reference something in Author, which will finally work in an ebook. I have no clue where to begin.

    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

  • How do I include 'Edge Web Fonts' into Edge Animate?

    How do I include 'Edge Web Fonts' (not Google Web Fonts) into Edge Animate?

    Have you tried to use google fonts? I have used them and they work for me.
    When you add your font for example:
    Copy paste:
    <link href='http://fonts.googleapis.com/css?family=Finger+Paint' rel='stylesheet' type='text/css'>
    and then for font family.
    'Finger Paint', cursive;
    then select addfont on the addfont screen

  • Adobe Edge Animate CC 2014.1

    Hello, do the animation in Adobe Edge Animate CC 2014.1
    and faced with a problem, animating picture animation works when you hover over the image and still have the text which also operates and has a different animation, and the problem is if I'm pokartinke mouse and spend the mouse over the text in the image on the animation picture as if jumps and starts with a new one, I want to know how to do so that would be mouse as I had not seen the text of this so I can keep the mouse on the image and animation are normally worked

    UPDATE
    i have ulpaded 2 animation ( one normal and one Responsive ) in 2 different server here the link
    www.eclipseadv.com/maliRP/maliRP.html
    Untitled
    via SAFARI or CHROME on MAC all OK
    but via IPAD ( SAFARI, CHROME and MERCURY) i didn't see the video, just the animation of the BUTTON  and the link if i click on it (not in Mercury), like in the content viewer.

  • How to make something like this in Edge Animate?

    Hi,
    I'm hoping to make something like this – https://www.youtube.com/watch?v=OJeDppEHI1g – in Edge Animate but I'm not sure where to start.
    I'm new to Edge but am keen to explore.
    Anyone have any feedback on whether:
    1. It's possible, and
    2. What techniques/effects have been used.
    Thanks!

    Hi there and welcome,
      Could you be a little more specific on what it is exactly that you would want to create? Most of what I can see from that website is doable in Edge Animate, but if you specify what it is you'd like to accomplish I could walk you through how to do it.
    Thanks!

  • Sticky header and footer in Edge Animate

    I've created a long scrolling site in EA and need my navigation bar and logo to remain static at the top as I scroll down. I also want my Contacts bar at the bottom to stay put. Can anyone help me?
    I'm not familiar with JS, CSS or HTML5 so please imagine you're talking to a child. I also need to know where to add the code in the Edge Animate project.
    Thanks for your patience...

    These fragments might fall under the category of "other", as an example, there is a copyright fragment in the Other tab of the fragment toolbox window. You could copy that and enhance it to make your footer.

  • Adding to a website animation made in edge animate

    Hello, I am web designer, I made several banners for our webpage in edge animate, and now our programmists are having trouble adding them to a website. May be someone can tell, what they did wrong? Or may be you may give as lint to a tutorial explaining, how to add it in the right way?
    link to a website: https://imfoption.com/a/new-home-page/
    link to a banner: http://giteldesign.com/portfolio/works/banners/imfoption/man-moving/

    This may be because of the site being served on https and some of the edge animate scripts being served over http, which are blocked by the browser. You can change the URL scheme from http to https in the file /wp-content/themes/imfoption/js/newban/man_edgeActions.js to make it work.
    Following URLs will need a change:
      aLoader = [
          { load: "http://imfoption.com/wp-content/themes/imfoption/js/newban/edge_includes/jquery-2.0.3.min. js"},
          { load: "http://imfoption.com/wp-content/themes/imfoption/js/newban/edge_includes/edge.4.0.0.min.js"},
          { load: "http://imfoption.com/wp-content/themes/imfoption/js/newban/man_edge.js"},
          { load: "http://imfoption.com/wp-content/themes/imfoption/js/newban/man_edgeActions.js"}];
    You can also just use the URLs without a scheme as follows, then the scheme will be automatically chosen.
    aLoader = [
          { load: "//imfoption.com/wp-content/themes/imfoption/js/newban/edge_includes/jquery-2.0.3.min.js" },
          { load: "//imfoption.com/wp-content/themes/imfoption/js/newban/edge_includes/edge.4.0.0.min.js"},
          { load: "//imfoption.com/wp-content/themes/imfoption/js/newban/man_edge.js"},
          { load: "//imfoption.com/wp-content/themes/imfoption/js/newban/man_edgeActions.js"}];
    There are some other resources which are loaded over http, for eg:
    http://fonts.googleapis.com/css?family=Economica%3A700%2C400italic&ver=1.7.4
    http://imfoption.com/wp-content/themes/imfoption/css/impreza/fonts/fontawesome-webfont.svg ?v=4.0.3
    These may or may not work depending on the client settings, ideally you should fix all of these issues too. Hope this helps.
    -Dharmendra

Maybe you are looking for

  • How to handle the 'folder button' in the path command throug Event loop ?

    Hi everybody. Again a stupid question but I can't find the answer. My VI has a dynamic event loop, to execute the right code depending on user action. Everything is working well but now I wish to do the following : I use a 'path command' with the pat

  • Is there a way to make the AAC music files smaller?

    A while ago the AAC music files seemed to double, I want to save room on my computer so I've been changing all my songs to the mp3 setting instead, but I would like to go back to AAC, but they are way to big. Does anyone know how to make them smaller

  • Check fields when approve or deny

    Hello, Can any one please check for me if there is something wrong or if I miss any thing in the statement below which causes it to not working right. User fills the form and submit it to the manager, when the manager approve/deny then he/she should

  • Trying to get Row numbes to display in a DefaultTableCellRenderer

    Hello all. I have extended the defaultablecellrenderer and have got my JTanle to use it. Howeve, i want to represent the rows of the tables as well as the colums...so far i have managed to colour each row (by colour the first colum of the JTable) is

  • My isync vs 1.5 doesn't recognize .mac account.

    Tried to sync and it tells me I don't have a .mac account. I have 2. Need help. G4   Mac OS X (10.3.9)