Controlling a symbol from a button inside of the symbol

I hope this explanation makes sense:
I have an animate file with buttons on the main stage that control symbols.
(buttons are circles labeled 1876 and 1877)
The symbols simply move a png image on and off the stage.
For example, the two circles labeled 1876 and 1877 are PNG files made into buttons that control two different symbols.
The symbols move the scoreboard image on and off the stage.
Within the scoreboard image is an X, that I am hoping to put a button on top of within the symbol to close the symbol.
The code I am using to move the symbols on and off the stage is:
var current = sym.getVariable("current");
   if (current != "") {
      sym.getSymbol(current).play("out");
      sym.getSymbol("syboard1876").play("in");
   else {
      sym.getSymbol("syboard1876").play("shortIn");
   sym.setVariable("current", "syboard1876");
syboard1876 is the green board png.
Any idea how i can get the symbol to move off of the stage by tapping it?
And will I be able to have multiple buttons beneath the symbol (that are hidden beneath the b=green board when it is visible)?
This was the original tutorial I adapted the get the animation to work so far.
Tutorial: Leveraging Independent Symbol Timelines « Adobe Edge Animate Team Blog
Now I just need to figure a way to give the user the ability to tap the X to close the symbol.
Any suggestions?

you could use $each() with jquery in compositionReady
if not you need to get back to stage with sym.getComposition().getStage() or
you could use this in compositionReady
function useButtons(element) {
sym.$(element).bind("click",function() {
  sym.$('image').attr('src','images/'+element+'.png').css({"opacity":1.00});  // this is a code example - I used the same name for the buttons and image names.
// add button names here
['', '','' ,'',''].forEach(useButtons);

Similar Messages

  • How do I control my mac from another mac not in the same network?

    How do I control my mac from another mac not in the same network? Thanks

    You can do it manually, but it is much simpler if you use a tool such as Back To My Mac, LogMeIn, or something like that. Those programs enable you to connect to your computer through your router without you having to adjust the router settings manually.

  • Control the Timeline, from a button inside a movieclip.

    First off, I have a movie clip called mc_instructions.  Inside the movie clip, about 940 frames into it, a button appears called btn_ready.  I need this button to bring me to frame 3 on the main timeline when clicked on.
    How can I do this in ActionScript 3.0?
    I can't figure it out!
    Thanks
    Don

    on frame 940:
    btn_ready.addEventListener(MouseEvent.CLICK,f);
    function f(e:Event):void{
    gotoAndStop(3);

  • Cannot map control record values from payload w/XSLT after SP13 upgrade

    Hi!
    Since we upgraded to SP13, the mapping of control record values form the XML payload to the IDOC control record (File->XI->IDOC scenario) no longer works if the mapping is done via XSLT. It works if the XI graphical mapper is used. The XSLT used is the same pre and post upgrade, but worked fine previously.
    [ Apply Control Record Values from Payload is checked in the IDOC adapter comm channel. ]
    Has anyone else experienced this? Am looking for any inspiration
    Cheers
    Duncan

    Are you sure the xslt file is still there?
    Maybe some non-compliance was corrected in later SP and your XSLT was using that non-compliance.
    If you post the XSLT we could try to point out any possible errors.
    Regards,
    Henrique.

  • Controlling apple tv from my macbook

    i know this question has been answered several times already but the latest post i saw was from january '11. i was just checking to make sure this hasnt changed for the late '11 macbook pros, that there is still no way to controll apple tv from a macbook.

    Welcome to the Apple community.
    No, other than sending content from iTunes via airplay from the computer, there is no other way to control the Apple TV from it.

  • Control stage animation from buttons nested in a symbol

    I have a symbol that is animated png SEQ of a rotating "cube". Added to the symbol I created "buttons" that are clear rectangles that define a "clicking area" . Each one corresponds to a side of the "cube". As the cube turns i turn these "buttons" on/off and track the corresponding cube face while it is facing the user. The symbol name is "CubeSpin" the button names in the symbol are Button1, Button2, etc to Button6.
    What I want to be able to do is create click actions for these buttons from the main stage compositionReady which would - (1) stop() the play of "CubeSpin" symbol and (2) goto and play(label) on the main stage timeline.  The animation at the head of play(label) on the main stage, among other things, slides symbol "CubeSpin" off the stage and out of view, then turns it off (display off). At the end of this animation, "CubeSpin" slides back on stage and I want to add a trigger code to start play() again for the "CubeSpin" symbol.
    Thanks for any help here.
    Joel H

    Hi there!
    Edge is a very flexible tool that allows you do very simple things (animate objects on the timeline), and very complex things (custom javascript coding in the code panel, using external code libraries, etc).
    For specific Edge Animate questions, a good place to start is this forum- use the search function to find answers to your questions, or start a new thread if you can't find your answer here.
    Also, be sure to read through the Edge API doc:
    http://www.adobe.com/devnet-docs/edgeanimate/api/current/index.html
    If you are looking to dive deeper into javascript, here are a few good JS tutorials:
    http://elegantcode.com/2010/10/22/basic-javascript-part-1-functions/
    https://developer.mozilla.org/en-US/docs/Web/JavaScript/Getting_Started
    http://eloquentjavascript.net/chapter1.html
    If you have a javascript-specific question, http://stackoverflow.com/ is also a great resource.

  • Control a symbols timeline from with in another symbol

    I just started using this product.
    I love it.
    I am currently building a project.
    I have a button inside of a symbol, and this symbol is on the stage.
    I am trying to use this button to start an animation from a label in a second symbol that is on the stage.
    I cant figure out how to amend sym.getSymbol("one").play("start");
    to say
    go outside of this symbol to the main stage and get the second symbol and then play it form the label.
    Or
    go outside of this symbol and get a symbol from with in the second symbol and then play it form the label.
    Can you help me with this.
    thanks again for the awesome product.

    I had on other question.
    I have a timeline full of symbols.
    Most of the symbols have nested buttons and symbols that responed to those buttons.
    I have the whole thing scrolling back and forth slowly.
    I want to be able to change the direction it scrolls relitive to the half of the project your mouse is hoverning over.
    I.E. hover over the right hand side and the timeline scrolls right and hover over the left hand side and it scrolls to the left.
    I can achieve this buy placing transperant symbols that cover each half of the stage and addind either play or play reverse respectively.
    But these transparent symbols block the symbolsand buttons and such that i have below them.
    So then i though i will put the transperant symbols towards the bottom of the heirocracy and as i suspected the symbols in front of the transperant buttons block them.
    is the some code i can add to the stage to achieve this?
    thanks a million

  • Controlling and object state from a button within an object state

    I have a MSO with a set of fridge images, to show the different colourways, but I also want to be able to show open and closed versions of the images.
    My idea was to have two MSO, one with the colour varients and one with the open varients and have a button inside the colour varient MSO so each colour shows its own button, but it looks like that button can only control the MSO that it is part of, is there anyway for it to trigger the second MSO?

    Ok well this is a screenshot from the laundry page, but its the same as fridge freezers.
    There is a MSO called colour change, and the red box is the button which has a go to next state action.
    I was going to have a second MSO with the open versions of the products that would be triggered by a button in each state of the first MSO, but this isn't possible.
    I don't want to put all the images in one MSO because that button is specifically to change the colour of the product.
    I guess one option could be to make each image in a scrollable frame so you swipe up/down to open/close.
    Any other possibilities?

  • Control button inside movieclip with AS

    If I got a mc with a button inside, how do write the script
    to control that button from the main timeline?
    My script (that doesn't work) looks like this:
    mymovieclip.mybutton.onRelease = function() {
    gotoAndStop(2);

    Sorry, my mistake, it should go to frame 2 inside
    mymovieclip.
    Script should be like this:
    mymovie.mybutton.onRelease = function() {
    mymovie.gotoAndStop(2);

  • How can i access and change a text from a button in diferents symbols!?

    I have this:   ELEMENTS:  Stage  - symbol_1
                                                         - symbol_2
    So,... i would like to change a text inside symbol_2 from a button on symbol_1, using sym.$("Text").html("NewText");  What's the correct path!?
    Thanks in advance,
    Regards,

    sym.$('symbol_2')
    sym.getComposition().getStage(). getSymbol('symbol_1').$("Text").html("NewText");

  • I have an Ipod touch 2nd generation 8gb. Metal peice fell out from the inside where the home button is and I lost it. Put the screen plug in and put the screen on and it would turn on but it won't unlock or respond to anything I try to do. PLEASE HELP ME!

    I have an Ipod touch 2nd generation 8gb. Metal peice fell out from the inside where the home button is and I lost it. Put the screen plug in and put the screen on and it would turn on but it won't unlock or respond to anything I try to do. PLEASE HELP ME!!!!!!!!!!!!!!!!!!!

    Look her and it may give insite on what is missing. Otherwise:
    Apple will exchange your iPod for a refurbished one for $99. Likely not worth it for a your iPod. They do not fix yours.
    Apple - iPod Repair price              
    A third-party place like the following maybe less. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
    Repair it yourself if you are up to it
    iPod Touch Repair – iFixit

  • My macbook doesn't work. After pressing down the power button I hear the sound from starting the apple symbol appears and after a while a sign prohibited appears on the place of the apple symbol

    My macbook doesn't work. After pressing down the power button I hear the sound from starting the apple symbol appears and after a while a sign prohibited appears on the place of the apple symbol

    Hi Kappy Thanks for your answer. I did a reboot on my Macbook as suggested and this operation is going on non stop for 14 hours and on the screen always appears the same message that you can see in the picture in attachment. Any ideas?

  • Button inside a symbols

    Hello
    I have a button inside a symbol and I would when you click to play this symbol.
    The symbol is "Anim_Perso".
    https://creative.adobe.com/file/47b82617-3124-4eab-9482-ac94b30674c4
    https://creative.adobe.com/file/47b82617-3124-4eab-9482-ac94b30674c4
    Thank you
    Stephane

    Hi there.
    Inside your symbol, uncheck Autoplay and, on the button's actions panel, select click and add this line of code:
    sym.getComposition().getStage().getSymbol("Anim_Perso").play();
    pmfr

  • Controlling one vi from another (auto button pusher)

    The labview forums have been such a great resource, especially for someone that is not an expert level programmer like myself, that I thought it was just about time, that I tried to give something back to the community of people that have been so helpful. I just recently solved a problem that I would think effects lots of other industries, and that possibly many people have been in a similar situation.
    We have a fully built labview program that tests a box that we have here. It is an actuator for the aerospace industry. But it could just as well be any other sort of electronic box. The labview code has been evolved for a number of years now, by many different developers, and is in a word AWFUL. It is just about the the most complicated and convoluted code I have ever seen. What makes it even worse, is that there is no documentation whatsoever. Imagine trying to fix the engine of a car, with no instructions as to how any of the parts are supposed to work, and you get the idea. 
    The time has come in our developement process, that we want to start doing some automation. The main .vi has buttons and indicators that a technician will enter information into, send it to the box, and then wait for a response (part of a testing procedure). The code is not modular at all, and it would take a VERY long time, to attempt to re-write the code as it should have been written, in a more modular fashion. So what to do?
    So I came up with a concept that I am calling "automatic button pushing". So basically what I did, was perform an Asynchronous VI call, to the VI in question, and then use various references and property nodes back to that VI, to push the buttons, and then look at the responses, as though I were a technician doing it manually. Clearly, this is not the most ideal solution. The proper way to do this, is to re-do the software so that things are more modular, and then probably use something like teststand to set up the testing for it. All of those things will happen in the future, but they needed something quick that can bridge the gap, and they did not want to touch any of the original code, as that would require re-certification etc. So what I proceded to do was to create a series of sub-vi's that touch all of the various buttons, and read the indicators that I need. Then string them together in a top level .vi to create a fully automated test. Enclosed is the subVI that I used to do the Asynchronous VI call, and an example of one of the controls that I am "pushing".
    I am thinking this sort of thing might be very useful for others. Hope this is helpful.....
    Attachments:
    Enum Control.jpg ‏74 KB
    Async Call.jpg ‏40 KB

    djs_at_eaton wrote:
    Your description:
    The labview code has been evolved for a number of years now, by many different developers, and is in a word AWFUL. It is just about the the most complicated and convoluted code I have ever seen. What makes it even worse, is that there is no documentation whatsoever. Imagine trying to fix the engine of a car, with no instructions as to how any of the parts are supposed to work, and you get the idea.
    sounds frighteningly familiar.
    Unfortunately your situation is quite common.  But I'm wondering if you couldn't simply have used normal LabVIEW techniques to call the code as a sub-VI.
    I understand your misery.  I've got code with a cluster of about 140 variables passed through a queue-driven case statement with over 100 cases.  Each case can add any other cases to the execution queue.  I'm not sure the original programmer understood it.  I'm rewriting it.
    Something like that, I would likely leave alone.  You just don't know that something idepending on something that was coded incorrectly.  You could end up chasing your tail.
    edit
    Unless, of course, that was the scope of the project. 
    /edit
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • How to add button inside move clip and call it from main timeline?

    Hi,
    On the main timeline I  have a movie clip called clock_mc and playBtn
    playBtn is  placed in the center of clock_mc
    When you press playBtn clock_mc starts playing
    playBtn.addEventListener(MouseEvent.CLICK, playClock);
    function playClock(event:MouseEvent):void
        if (event.target == playBtn)
            clock_mc.play();
            playBtn.visible = false;
            trace ("play button was clicked");
    This is working fine for me.
    But I want to add replayBtn to the last frame of clock_mc and set up the function on main Timeline.
    Another words when the clock_mc rich last frame you see replayBtn.
    code example:
    replayBtn.addEventListener(MouseEvent.CLICK, playClock);
        if (event.target == replayBtn)
            clock_mc.play();
            replayBtn.visible = false;
            trace ("replay button was clicked");
    I've tryed to placed the replayBtn on the stage on the main timeline and I've set it up to replayBtn.visible = false;
    And then I add replayBtn.visible = true; to last AS frame of clock_mc but it wont work
    Even when I put the button physically to the last frame of clock_mc it will not work either.
    Please help

    I've solved the problem:-)
    I've set replayBtn.visible = false; on first frame of clock_mc
    and  replayBtn.visible = true; at the last frame
    and than as you sugested I'v add:
    clock_mc.replayBtn.addEventListener(MouseEvent.CLICK, replayClock);
    function replayClock(event:MouseEvent):void
            clock_mc.play();
            trace ("replay button was clicked");
    I couldn't see replayBtn at the firs stage because I have clockTween assosiated with clock:
    clockTween = new Tween(clock_mc, "x", Regular.easeOut, -469,438, .5, true);
    and I had replyBtn in the wrong place so when clock_mc was coming up on the stage replayBtn was on the left side of the stage :/
    Now I have to solve only one thing.
    Maybe you would have any suggestions please.
    I've set up stop(); in a first frame of clock_mc
    that when you see clock_mc sliding in it has to wait for playBtn to be clicked
    because I have two tween:
            clockTween = new Tween(clock_mc, "x", Regular.easeOut, -469,438, .5, true);
            playTween = new Tween(playBtn, "x", Regular.easeOut, -720,514, .5, true);
            playBtn.visible = true;
    so when you click on playBtn:
    function playClock(event:MouseEvent):void
        if (event.target == playBtn)
            clock_mc.play();
            playBtn.visible = false;
            trace ("play button was clicked");
    everythink is working fine except when I clik on replayBtn it play for I sec because there is stop(); on the first frame of clock_mc

Maybe you are looking for

  • Acrobat reader install fails on vista - says close windows explorer

    I'm trying to install the latest reader on a Windows Vista laptop but the installation fails with an error message "you must close windows explorer".  In task manager there are no running applications but I can see explorer.exe in the list of process

  • Adding a dynamic selection to a logical database query

    Hello, I would like to add a dynamic selection to a SQ02 Infoset using logical database SDF. I need the report to show only documents created at certain dates. I've added a selection field "CR_DATE" for BKPF-CPUDT to the Infoset and added the followi

  • External monitor for HP Omni 10

    what can I use as an external monitor for the HP Omni 10? I have an HP W7072a, will it work? This question was solved. View Solution.

  • How to add a tab in Oracle Messenger ?

    Can I add a new tab or change community tab in Oracle Messenger ? Best Regards, Ivan

  • Preloader export to frame scenario

    I decided to move my preloader to the main timeline of my SWF instead of it's own scene in an attempt to simplify things. As before, everything works fine other than the blank white screen for about 15 secs and then the progress bar hitting the scene