Variable created on click in edgeActions.js but want to reference it in external js file

Hi, I created a variable on-click in edgeActions.js but want to reference it in external js file. This is where I am at so far:
In my edgeActions.js I st a variable on compositionReady and then use it when I click on the symbol: questionMarkR1. This works fine.. the problem is that I don't know how to reference the variable in my external js file. This first code is working from the edgeActions.js:
Symbol.bindElementAction(compId, symbolName, "document", "compositionReady", function(sym, e) {
         sym.setVariable("questionAsked", false); // sets the initial value
Symbol.bindElementAction(compId, symbolName, "${_questionMarkR1}", "click", function(sym, e) {
         var questionAsked = sym.getVariable("questionAsked");
         alert(questionAsked);
         if (questionAsked)// if true
         sym.$("checkButton2").removeClass( "hidden" );
         sym.$("popUp").removeClass( "hidden" );
         else  //if false
         sym.$("pic2a").removeClass( "hidden" );
         sym.$("pic2b").removeClass( "hidden" );
         sym.$("pic2c").removeClass( "hidden" );
         sym.$("pic2d").removeClass( "hidden" );
         sym.$("closeBox").removeClass( "hidden" );
This next part doesn't work because I don't know how to reference the variable correctly. This is what I have tried and it doesn't work:
     var questionAsked = sym.getComposition().getStage().getVariable("questionAsked");
     alert(questionAsked);

Hi,
Edge Animate exposes some API for external scripts, which  you will need to use in your case:
For more info about the Edge Animate API, see Adobe Edge Animate CC JavaScript API
Use the code as below in your external js file:
     var comp = AdobeEdge.getComposition("EDGE-606063631"); // replace "EDGE-606063631" with your comp id, you can find in the .html file
     var stage = comp.getStage();
     var questionAsked = stage.getVariable("questionAsked");
     alert(questionAsked);
hth,
Vivekuma

Similar Messages

  • Can anyone help me, I am trying to create courses using Captivate for Udemy, but even after saving the courses as pdf files, Udemy will not reconize them. NOw I am back to square one because according to Udemy techs, they do not support Captivate files.

    Trying to create my courses using Adobe Captivate, but even after saving the files as a pdf it will not upload in Udemy. What can I do?

    Yep, you lose all interactivity when publishing to video.
    Udemy, Lynda.com, Total Training and other similar models are based on simple "watch the video to learn" type of consumption. The only real interactivity you get is an ability to pause, rewind, fast forward. Basically anything you can do with a video.
    Cheers... Rick

  • Apple Magic Mouse responds but does not want to click to web links, but wants to give me option to open, save, etc?  Keep trying by clicking again and again, finally it will let me link

    Apple Magic Mouse responds but does not want to click to web links, but gives options instead, go back, look up, save, etc?  Changed batteries but does not solve the mouse problem.  I click all over the page and it continues to provide options and link is indicated in blue, but have to keep trying until it finally let me continue.

    Are you sure you are clicking on the left side of the mouse, rather than somewhere in the middle (and probably closer to the right side)?

  • I created one profile in Firefox. But while deleting the Profile i deleted the files also. How to get those files?

    For creating a User agent, I created one profile in Fire fox. But while i am deleting the Profile, i clicked on the button 'Delete Files'. Now i want those files. Can you please tell me from where can i get those files?
    Please revert back to
    [email protected]

    Yes, the places.sqlite has been copied. I don't see any specific instructions in the "restoring to a different locaton" directions on how to open the new profile, though. Step 7 just says to paste the contents of the backed up file to the new profile (in this case, I've copied them over the default profile created when I first downloaded firefox). This overwrote the existing files. Then it says to Start Firefox. Which I did with no old bookmarks showing up. That's why I posted here - am I missing a step once I open Firefox to make it look at the new profile information?

  • How do I delete files  that  are no longer neede . I have tried everything that i know but no luck, when ever I write something in word and i,m finished with it  i click don't save , but when i open word ,guies what the file is still there , I have tried

    hello  I have tried everything to get rid of files  that I no longer need in word,  when I am finished with them  it asks do i want to save them i say no ,but when i open word again  the files are still in word ,I have tried to grag them to the trash can no luck, also went to finder to try there but no luck so what am I doing wrong it is very frustrating , as I no longer want these files kept in word  ????

    Which OS? Lion? If so, you're getting bit by the resume feature. Welcome to the iOS world of nonthinking, wherein the OS decides everything for you, whether or not that's what you want. Salient details described in http://www.apple.com/macosx/whats-new/features.html#resume   See these for steps to resolve: http://hints.macworld.com/article.php?story=20110918051930924 http://osxdaily.com/2011/08/01/turn-off-resume-per-app-in-mac-os-x-lion/ http://restoremenot.info/

  • I have created an iPhoto book in Australia, but want to pay for it and have it delivered to NZ.  How do I do this please?

    I have a photo book that I have created here in Australia, of my cousin's wedding.  My uncle in NZ wants to pay for the book with his NZ c/card and have it delivered to him.  I can't seem to change the delivery address to another country.  What are my options?
    Thanks,
    Trudi.

    Billing Address and Shipping Address must both be in the same country.

  • HT204053 I already set up an iPad with my school Apple ID but want to access my home Apple ID files in iCloud.  If I delete the school ID in iCloud is my school ID still available?  In other words, can I delete an iCloud account and get it back later as i

    Since I already set up an iCloud account using my school ID but need to access my home iCloud files, do I need to delete the iCloud school ID to get those home files?  I believe so.  If so, then can I use the same school ID and password later for iCloud or will it require that I change the password, etc.? Is there another way to get those home files without deleting the school ID?
    OR, just help me figure out how to get my school PC to read Pages files.  That would answer all the questions.  No, I don't have technical permission or power to add programs to my PC. 
    Thanks for any help you can give me in this matter.

    To change the iCloud ID you have to go to Settings>iCloud, tap Delete Account, provide the password for the old ID when prompted to turn off Find My iPhone, then sign back in with the ID you wish to use. 
    When you do this, you may find that the password for your old ID isn't accepted.  If this happens, and if your old ID is an earlier version of your current ID, go to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iPhone on your device, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll.  When finished go to Settings>iCloud, tap Delete Account and choose Delete from My iPhone when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • I've created a play list on itunes but only want to transfer the play list manually, not sync entire ipod due to large size of itunes file. Playlist is made but I can't seem to drag to the ipod

    I've created a playlist for my ipod but want to add it manually instead of using the full sync feature as I have a rather large music file in itunes but am trying to add to a 30 gig pod. How do I do this?

    See this article for information on manually managing your iPod's contents.
    http://support.apple.com/kb/ht1535
    B-rock

  • I have Pages 09 and I have  created a business card using the template but can't figure out how to duplicate it to the other 9 on the page Am and sure I am going to look daft coz its only the click of a button but I can't work it out Thanks

    I have Pages 09 and I have  created a business card using the template but can't figure out how to duplicate it to the other 9 spaces on the page. I am and sure I am going to look daft coz its only the click of a button but I can't work it out Thanks

    I do the following: Hold down the command key and highlight all the items to be reproduced. Then hold down option and drag the items from the first to each subsequent card.

  • Form that is a map of Ohio. I created layers for each county so I can click and it highlights, but I need to be able to click more than one. How do I do that?

    Form that is a map of Ohio. I created layers for each county so I can click and it highlights, but I need to be able to click more than one. How do I do that?

    Looks nice!
    I understand what you've done now. You used the "Set Layer Visibility" command which sets the on/off state of all the layers at once. What you need is a more subtle approach, one that will only change the state of the specific layer associated with the button, not the rest of them (so that you could have multiple layers enabled at the same time). The way to do that is by using a script.
    I wrote the script for you and applied it to the top-left counties (WILLIAMS and FULTON), in the attached file. You can now copy the actions I associated with those buttons to the rest of them, and it should work as you want it to.
    The file: MAP-HHA-Geographic(3)_edited.pdf - Google Drive

  • Variable created in MC (AS2)

    Hi there.
    I have a button on a movieclip that when clicked, will create
    a variable with a value. The problem is, I cannot seem to pass this
    variable and use on the _root. I have created the same but with the
    variable created on the _root and it works fine.
    I have tried using _root in various place on the code below
    but it returns 'undefined'.
    Any pointers on how I can access this variable on the root -
    see my code below
    Thanks a lot
    Tony Mead

    Thanks kglad. Although this does work (and the next bit is an
    oversight by me). I am actually creating the variable to act as a
    dynamic name for a movieclip that I can work with after the onPress
    action. This requires the variable to not be enclosed in"" marks
    but when I remove the quotation marks I'm getting
    undefined.
    Again, I have the very same thing and it is working on a var
    that I'm creating that is already on the _root timeline.
    Any clues?
    Regards and thanks again,
    Tony

  • Creating a click track to match an imported audio file?

    I used to do this on earlier versions of Logic, but have forgotten HOW I did it. I want to import a piece of audio with a bit of a wavering tempo. I want to create a click track to match that wavering tempo, so I can add further orchestrations quickly, and not have to worry about a perfect, tempo wise, performance.
    I can't remember what the 'tap'? process is called, or where best to look for it in the Logic 8 Manual.
    All ears,
    Ben

    thanks Ben.. you may be interested in this discussion:
    http://discussions.apple.com/message.jspa?messageID=3887918#3887918
    which includes a long 'blah blah blah' about my preferred beat mapping method.
    ( It is something of a pet obsession.. especially good for transcribing and extracting parts from audio you like.. CD tracks etc)
    Also type beat mapping into the 'Search Discussions' Q on the Forum
    all best
    MS
    Message was edited by: musicspirit

  • In my macbook pro retina 15 inch there is installed mavericks but ı want to create recovery disk and ı need to download mavericks from App Store but it doesn't download??

    Hey guys ı really need your help. I bought macbook pro retina 15 inch 2 weeks ago and it came with installed mavericks of course but ı want to create a recovery disk and to do that ı need to download mavericks installer from app store but when i click to download mavericks from appstore purchased part ı get a message says " Your purchasing process couldnt complete. OS X Mavericks cant be installed to this computer." How can ı solve this problem!??

    One way around tis is to borrow a Mac that can run Mavericks and then the download will work.  You can use these instructions:
    http://www.macworld.com/article/1167857/how_to_make_a_bootable_mountain_lion_ins tall_drive.html
    Though they are for Mt. Lion, the same steps will work.
    Ciao.

  • There is already installed mavericks on my macbook pro retina 15 inch but ı want to create recovery disk

    Hey guys ı really need your help. I bought macbook pro retina 15 inch 2 weeks ago and it came with installed mavericks of course but ı want to create a recovery disk and to do that ı need to download mavericks installer from app store but when i click to download mavericks from appstore purchased part ı get a message says " Your purchasing process couldn't complete. OS X Mavericks cant be installed to this computer." How can ı solve this problem!??

    One way around tis is to borrow a Mac that can run Mavericks and then the download will work.  You can use these instructions:
    http://www.macworld.com/article/1167857/how_to_make_a_bootable_mountain_lion_ins tall_drive.html
    Though they are for Mt. Lion, the same steps will work.
    Ciao.

  • I need to delete my Apple ID on my iPhone 4.  I forgot my psw for my account.  When I answer the security question, the system responds incorrect answer.  I created a new Apple iTunes account but I still unable to delete the old iTunes account.

    I need to delete my Apple ID on my iPhone 4.  I forgot my psw for my account.  When I answer the security question, the system responds incorrect answer.  I created a new Apple iTunes account but I still unable to delete the old iTunes account.

    AppleFAN7591 wrote:
    I need to delete my Apple ID on my iPhone 4.  I forgot my psw for my account.  When I answer the security question, the system responds incorrect answer.  I created a new Apple iTunes account but I still unable to delete the old iTunes account.
    How to reset your Apple ID password.
    Go to iforgot.apple.com and type in your Apple ID, then click 'Next'.
    Verify your date of birth, then click 'Next'.
    You'll be able to choose one of two methods to reset your password, either E-Mail Authentication or Answer Security Questions.
    If neither method works, then go to https://getsupport.apple.com
    (If you see a message that says 'There are no products registered to this Apple ID, simply click on 'See all products and services')
    Choose 'More Products & Services', then 'Apple ID'.
    A new page will open.
    Choose 'Other Apple ID Topics', then 'Lost or forgotten Apple ID password'.
    Click the blue 'Continue' button.
    Select the contact option that suits your needs best.
    How to reset your Apple ID security questions.
    Go to appleid.apple.com, click on the blue button that says 'Manage Your Apple ID'.
    Log in with your Apple ID and password. (If you have forgotten your Apple ID password, go to iforgot.apple.com first to reset your password with a password recovery email)
    Go to the Password & Security section on the left side, and click on the link underneath the security questions that says 'Forgot your answers? Send reset security info email to [email]'.  This will generate an automated e-mail that will allow you to reset your security questions.
    If that doesn't work, or  there is no rescue email link available, then click on 'Temporary Support PIN' that is in the bottom left side, and generate a 4-digit PIN for the Apple Account Security Advisor you will be contacting later.
    Next, go to https://getsupport.apple.com
    (If you see a message that says 'There are no products registered to this Apple ID, simply click on 'See all products and services')
    Choose 'More Products & Services', then 'Apple ID'.
    A new page will open.
    Choose 'Other Apple ID Topics', then 'Forgotten Apple ID Security Questions'.
    Click the blue 'Continue' button.
    Select the contact option that suits your needs best.

Maybe you are looking for

  • D2kwutil running with Forms6i under Windows XP

    Hi I'm trying to run D2kwutil.pll version 6.0.6.0 with Forms6i 6.0.8.8.0 under Windows XP and it's not working when I try to call WIN_API_FILE package. I tryed to run the demo form (WAPIDEMO) that I downloaded with the PLL but they don't run either -

  • Right-Command Key doesn't work

    Well, on my PowerBook G4, there are 2 command-keys (I'm sure that's common). My right command key doesn't work what-so-ever. I tried using the keyboard viewer and it doesn't turn gray either. Funny thing, but when I press the LEFT one, both cmd keys

  • Foxfire 4 and mac OS X 10.4.11

    Yikes - It appears that I cannot use Firefox 4 on my mac OS X 10.4.11 software. Will this always be the case? I had the previous version but now it does not appear that I can use the upgraded FireFox.

  • Creating Art for Ipad

    I am creating my art in illustrator for an ipad size book. I have been using 1024 x 768 for th eartboard. Just recently I went to the drop down menu in illustrator and chose ipad template and it was exactly twice that size. Should I going forward des

  • Multi level categorization component integrated into TASK

    Hello Experts, We are working on a CRM 7.0 EHP1 implementation project, one of the business requirements is multi level categorization on task object. The How-To Guide Add multilevel categorization component of the Interaction Record to other objects