How to refer to a Label on the Stage from within a Symbol

Hi Edgefriends,
I'm working on a project in Edge Animate, however I have about zero experience with JavaScript and I can't seem to get this working without it so I hope someone can help me to get this done.
Below you see the code I need help with. It's part of a Symbol situated on the Stage. What I need it to do is to play from a Label ('subFontsTitels') situated on the Stage-level. I've tried a lot of posibilities but with no (satisfying) results. Could you please help me?
Part of the code:
Symbol.bindElementAction(compId, symbolName, "${_Button}", "click", function(sym, e) {
// play the timeline from the given position (ms or label)
sym.getComposition().getStage().sym.play('subFontsTitels');
// insert code for mouse click here
//Edge binding end

hmmm it doesn't seem to solve the problem yet. I'll paste the full code attached to the symbol, maybe there's a problem with the whole combination of the code:
Code
Symbol.bindElementAction(compId, symbolName, "${_Button}", "mouseover", function(sym, e) {
sym.stop("over");
//Edge binding end
Symbol.bindElementAction(compId, symbolName, "${_Button}", "mousedown", function(sym, e) {
sym.stop("down");
//Edge binding end
Symbol.bindElementAction(compId, symbolName, "${_Button}", "mouseup", function(sym, e) {
sym.stop("up");
//Edge binding end
Symbol.bindElementAction(compId, symbolName, "${_Button}", "mouseout", function(sym, e) {
sym.stop("normal");
//Edge binding end
Symbol.bindElementAction(compId, symbolName, "${_Button}", "click", function(sym, e) {
// play the timeline from the given position (ms or label)
sym.play("subFontsTitels");
//Edge binding end
The symbol's name is SubTekstTitels and it's located directly on the Stage. The label "subFontsTitels" is located on the Stage aswell. I hope this will help getting this done.

Similar Messages

  • How to target a label on the stage from a loaded composition

    from EdgeCommons I'm using EC.loadComposition to load another website into a container within EA.
    Now, from a button inside this loaded composition I would like to call a stop function to target a label on the main stage of the EA file.
    sym.getComposition().getStage().stop("scene4"); does not work.
    It think it has to go outside of sym because the composition container is actually an iframe.
    Thank you

    Hi,
    I think you may have replied to my post accidentally. I had asked a question regarding javascripts that could target the stage from a symbol, not about coloring book apps.  However I have made one in Flash, here is the page I made (don't laugh, I never finished it).
    http://boogerbunch.com/home.html
    Here is a link to the forum I used to get the Info to build it, I would think the process would be very close in edge.
    http://www.kirupa.com/developer/mx2004/coloringbook.htm
    Good luck!
    >>> scottsalter0 <[email protected]> 3/1/2013 10:29 AM >>>
    Adobe Community ( http://forums.adobe.com/index.jspa )
    Re: How to target a label on the stage from a div embedded in a symbol?
    created by scottsalter0 ( http://forums.adobe.com/people/scottsalter0 ) in Edge Animate - View the full discussion ( http://forums.adobe.com/message/5113759#5113759 ) 
    Hi there,
    I noticed your Edge Colouring Page post on the Adobe Forums.
    For my University work, I need to create a colouring page using Adobe Edge Animate. Is it possible if you could post a tutorial or step-by-step guide on how to do this please?
    Many Thanks
    Reply to this message by replying to this email -or- go to the message on Adobe Community ( http://forums.adobe.com/message/5113759#5113759 )
    Start a new discussion in Edge Animate by email ( mailto:[email protected] ) or at Adobe Community ( http://forums.adobe.com/choose-container!input.jspa?contentType=1&containerType=14&contain er=4823 )

  • What is the proper syntax to hide a div on the stage from within two nested symbols?

    Hi everyone, I have recently started to use Adobe Edge and had some prior experience with Flash.
    I have a button with a click action inside two symbols that should hide a symbol placed on the stage, which in turn its is parent symbol.
    I tried using the following code but it didn't work:
    sym.$("Step1").hide();
    Thank you!
    Nuno

    I've got a similar issue and I thought I'd piggyback on this thread since I can't get your suggestions to work.
    Here's what I've got in my file -
    stage / fullRadial symbol / smRadial symbol / gold_btn element
    When you click gold_btn I want to hide a different symbol inside of fullRadial call measuringContent. This is the latest code I've tried within the gold_btn element -
    On click:
    sym.getComposition().getStage().getSymbol("fullRadial").play("Gold Corner");
    sym.getComposition().getStage().getSymbol("fullRadial").getSymbol("measuringContent").hide ();
    It plays my Gold Corner label just fine, but I've I can't get the hide to work with anything I've tried.
    Thanks for any help you can give.

  • How to remove a loaded image on the stage from a symbol containing a button?

    1st the setup:
    General map is loaded
    2. On a click event, an larger image of the region is loaded with the following code (thanks to Joel's demo). On mouseover the name of the county appears and on click a popup (symbol) shows some info.
    $('<img id="region1" width="310" height="475" src="images/region1.png" usemap="#region1">'+'<map name="region1">'+...
    '<area id="Dallam" shape="rect" title="Dallam" coords="29,17,97,58"/>'+.....
    3. In the popup symbol, I want the large image map to be remove on the click event of the button: "View another region" . I have the following code which does not work (the image is not removed) resulting in what you see below:
    sym.playReverse();
    sym.getComposition().getStage().stop(0);
    sym.getComposition().getStage().getElementById("region1").remove();
    So my question is how do I remove the image (large image of the region in purple here loaded as described on 2.)?

    I got it. It should be:
    $("#region1").remove();  
    // # was missing.
    I actually added that to time 0 on the main timeline so when I got back there it removes the image.
    It's not working from the symbol yet but I guess I should eventually get it working from there instead.
    Thanks for your time.

  • Referring to functions on the stage from a movieclip.

    First of all, I'd like to thank you to anyone who takes their time to read this. I registered to this forum for the sole purpose of getting help to this one issue of mine, as I found most issues were solved in here. By reading my problem (and hopefully responding) you're doing me a huge favour. Thanks in advance.
    I just started "coding" in AS3. By "coding", I actually mean trying around with features and generally trying to grasp the vast amount stuff you can do with this software of. I have some coding experience, however the way   Flash likes to hide code snippets all over my project does tend to confuse me. Not knowing where I tried putting the code and/or rewrote some other stuff keeps me sorta busy.
    I'd also like to apologize for the title, if it in any way confuses you. Shortening down my problem to a single sentence was hard, please keep that in mind.
    Anyway, my issue is this:
    Messing around with movieclips inside movieclips, I've keep encountering the error "1120: Access of undefined property onTimerComplete." I do realize that this error generally is caused by not having defined an instance correctly or not having it defined at all - an error beginners tend to make.
    Nonetheless, I'm not trying to refer to an instance/symbol, I am trying to call a function defined on the stage from within a movieclip that also is placed on the stage.
    I've been reading huge amounts of text/articles and how-to 's, but they all seem to only touch the subject lightly or simply going in head-first - becoming far too complicated for me (a beginner) to grasp.
    So, trying to sum my questions up into something that looks like a tl;dr:
    - What's up with levels, "_root" and referring to functions like in the older versions of flash?
    Flash tells me to use some display-package instead of _root, when I use that... (I do realize the article is from Flash 5.0)
    - How do you refer to a function defined on the stage, from inside a movieclip? (The function is a timer, that is supposed to make the mother-movieclip continue to the next child-movieclip.)
    Please, I really don't know how to define my problem any further than this. Ask as many questions as you would like, I really appreciate any help I can get.
    - Mattimussi

    click file/publish settings/flash and tick "permit debugging".  highlight the line number referenced in the error message.  (and, use:
    Calling:
    stop();
    MovieClip(root).startTimer();
    Defining:
    var myTimer:Timer = new Timer(2000, 1);
    myTimer.addEventListener(TimerEvent.TIMER_COMPLETE,onTimerComplete);
    myTimer.start();
    function onTimerComplete(event:TimerEvent):void{
    play();
    //myTimer.stop();
    function startTimer():void{
    trace("startTimer function was executed");
    myTimer.start();

  • Label Printing Using Address Book - How can I Print multiple labels of the same name?

    Label Printing Using Address Book - How can I Print multiple labels of the same name?

    I used to be able to print multiple copies of the same picture on one page using iphoto. There was a customise button when you went through to print and it was there somewhere. I can't see it anymore - maybe since an upgrade.
    It's gone. But as a work-around, duplicate your photo (⌘D) to create as many versions as you want copies and select all at once. Then use the "Custom" print layout and set the photo size you want.
    After printing, trash the added versions.

  • How to refer a .jar file in the code.

    How to refer a .jar file in the code.
    I want to use a library dnsjava.jar, which I download from the internet. I want to know how to refer it
         If I am compiling the code on Solaris
         If I compiling the code on windows using eclipse.
    I added the following line in my code to refer to this library. But it always complains of not found the class
    import org.xbill.DNS.*;
    I tried the following to add this library but did not work
    On eclipse/windows: Went to window-> preferences -> BuildPath _> class path Variable.
    On Solaris: Could not add this library /opt/java_reference/v1.6.0_04/jre/lib. Although I am logged in as root, but not able to add the library there. Complains of Permission denied.

    Set the classpath option when compiling.
    javac -classpath /path/to/lib/dnsjava.jar YourProgram.java
    I don't use Eclipse, but it probably has a library list on your project preferences. Add it there.
    Regards,
    Henrique Abreu

  • How can I get iTunes to display the tracks from a CD in their original (album) order?

    To be absolutely honest, I don't really understand what this box is for, so I shall just use it to repeat and expand on my question. (I have already sent a "Feedback" comment on the same topic).
    How can I get iTunes to display the tracks from a CD in their original (album) order?
    It seems to me that there is something very basic wrong with the way iTunes handles CD Tracks.
    Professionally produced CD tracks are seldom if ever in a randomised order. Why then does iTunes seem unable to display the tracks in the order they appear on the original CD source - whether from a personally owned CD or from a download from the iTunes Store?
    Some music demands a specific, non-alphabetic sequence in order to make sense. Why does it seem that iTunes only offers Alphabetic, or reverse alphabetic order - both of which make a nonsense of the original, often intended order of tracks?
    Why not replace the so-called "cover-art" in the bottom left hand corner if the iTunes window - which, while it may look attractive to some, gives the barest of information concerning the original disc, with a list of the original CD tracks in their original order, so that the user can easily reestablish the order in which they should be played.
    As I would expect legibility might be a problem with doing this, why could not the original contents, (in their original order), at least, be displayed when the "cover art" is double clicked-on - the result of which at present gives me an enlarged version of the "Cover Art". While on the subject of the contents of the source disc, what about all the album notes which someone takes trouble to write in order to increase the appreciation of the music on the CD and the listener's general background knowledge of the artists involved. Such notes, it seems to me, have considerable intrinsic value in their own account. I would, I think, normally be prepared to buy such "Sleeve notes" - so long as a "taster" was supplied (as it is for the music) - for something like the cost of a single 'Tune" on iTunes.
    These two aspects let Apple iTunes down enormously, in my opinion. I think that by chopping even quite protracted sequences of music up into bits does no one any favours - except perhaps Apple's already quite substantial bank balance. People have to be aware that two and a half, to three and a half minutes is a very short time to develop a piece of worthwhile music, and that there are many, many composers, not all of whom are alive today who have written music that huge masses of mankind value for the enrichment of their lives and the human condition in general.
    Please make the viewing of iTunes tracks in their correct order by default possible. By all means have the alphabetical variations available as offering a different approach to the music, but not the sole approach to it - PLEASE.
    Frustratedly yours
    Alan Whitaker
    PS I work at my old 24" iMac Intel Core 2 machine which runs OS "Tiger" - because it is more beautiful to look at, the screen is more pleasant to work on, and because, in some ways it is more capable (it will run FreeHand MX without needing a "patch"), than my more recent 21.5" which runs "Snow Leopard". (I don't find it that much slower, either).

    Dear Mike
    Thanks for the support. I am utterly amazed that after all the hype about how good iTunes is that it cannot play a downloaded CD in the correct order, and that what that order should be is not available directly from within one's own iTunes installation. (I know that one can go back to the iTunes Store to check what the order should be, but having downloaded the tracks surely iTunes is clever enough to retrieve this important information.
    My iTunes to differ from yours in that I have also noticed that it seems unable to download copies of my "talking books" in the correct order either. But in my case it downloads them - from a CD - in order, but with the first track downloaded first - so that it appears at the bottom of the column of tracks so that it would get played last! (At least this is, while being inexplicable, a relatively "logical" bit of blundering and because of this is relatively easy to put right!).
    I like many genres of music, some of which are not really programmed except perhaps by the artist performing them. I know that Frank Sinatra was very careful to programme his album songs to obtain a particular effect and in relation to the keys of the music. iTunes presumes to know better.
    Film scores may be totally randomly put together, in some cases, but in others the order is vital to one's appreciation of the music as a whole and how it relates to the plot of the film.
    In symphonic music most works are divided into sections and are conceived by the composer that way. Some individual sections may gain a life of their own if played separately, but they are never complete in the sense that the composer envisaged them without being placed in their proper context.
    Opera and probably most choral music too, is similar except that the words may well become meaningless if the order is changed at the whim of a piece of ill-written computer code, while ballet music has to be heard totally within its sequential context or it becomes meaningless.
    Finally, I would venture that iTunes, by jumbling up the order of the tracks as recorded on a CD, does an immense disservice, not only to the music on a particular CD, but to music in general, by expressing everything in terms of "Songs" - which it seems to interpret as stand-alone items of between 2 and 4 minutes whatever the genre. Even the way the iTunes publicity speaks of how many "songs" it can store instead of how many minutes or hours of recorded sound. This has to be another brick in the wall of "dumming-down" of people's expectations, and the shortening of their attention spans.
    I don't know about anyone else, but I feel betrayed by Apple over this. Perhaps the look, feel and general presentation of an item are not the most desirable features of a consumer product. Maybe it should be judged more on it fitness for the purpose for which it was sold. There is one other possibility - that Apple are trying to redefine "Music" - and that everything that lasts longer than about 3.5 minutes or is in the form of what could for want of a better term be called symphonic in the broadest sense is something else - not "Music" within Apple's new definition, at all!
    Well that's off my chest! now I can get down to creating some sort of order in my iTunes Libraries, knowing that I have to reconsult all the sources in order to confirm the source playing order.
    Anyway thanks again. At least I know that it is not just me
    alanfromthatcham

  • How to import a class not in the package from a package

    how to import a class not in the package from a package?

    http://java.sun.com/docs/books/tutorial/java/interpack/usepkgs.html

  • How do I set a variable on the main timeline from within a symbol?

    Just getting started with Animate and coming to it from Flash, as may be apparent from my question. How do you set a variable to the main timeline from within a symbol?
    I have 24 pairs of clickable elements, each in their own symbols, and all 24 of those symbols sit inside another symbol. I want all 24 to be able to set the same global variable when clicked. I can't find that this question is addressed anywhere, which makes me think I may be stuck in a Flash mindset and approaching the task in the wrong way. (There are however MANY discussions of how to address objects at different levels in the hierarchy. That's well covered.)
    Relatedly, how do you access a function on the main timeline from within a symbol?
    Adobe should consider putting together a support page (or pages) just for folks migrating form Flash. In the materials I've encountered so far there seems to be a studied effort to refrain from mentioning Flash in any way. I imagine there are a lot of people out there like me who have a deep background in Flash coding, but are just getting started with Animate. We don't need help with most of the basic concepts, but we may still have some pretty basic questions about how to accomplish some things in Animate because our Flash knowledge is getting in the way.

    Hi Bill,
    There are plenty of threads on here about scope, but here's one way to create a global variable:
    // code on Stage.compositionReady
    sym.myGlobalVar = 1;
    Then, anywhere in your project, you can check/set that var like so:
    sym.getComposition().getStage().myGlobalVar = 2;
    And here's one way to create a global function:
    // code on Stage.compositionReady
    sym.myGlobalFunction = function(){
              console.log('myGlobalFunction');
    Then, anywhere in your project, you can call that function like so:
    sym.getComposition().getStage().myGlobalFunction();

  • If I have an iTunes gift card already redeemed on my account, than how do I buy a song using the money from the gift card instead of charging my credit card?

    If I have an iTunes gift card already redeemed on my account, than how do I buy a song using the money from the gift card instead of charging my credit card?

    Hi, in my case It did not use the balance first.  I had balance but it used my credit card.  Do I have to sign in Itunes first?  Thanks.

  • How do i put a restriction on the imessage from ipod touch?

    How do I put a restriction on the imessage from ipod touch?

    There is no way.  Some users have said that restricting FaceTime also restricts Messages but I just tried that it Messes is still there.

  • Developing a 2 page form, username on the 1st page, password on 2nd how can i force FF to use the username from previous page when it asks to remember acct info?

    I am developing a 2 page signup form, where the person enters their username on the 1st page and password on the 2nd.
    When I test the form, FF asks to remember my password for the site - however it thinks the zipcode (field above the password) is the username on the account.
    I have tried to put their username/email in a hidden field on the 2nd page, just above the password field - and that did not work.
    How can i force FF to use the username from previous page when it asks to remember acct info?

    This website is using autocomplete=off to prevent Firefox from saving and filling the name and password.
    You can remove autocomplete=off with a bookmarklet to make Firefox save names and passwords and other form data.
    *http://kb.mozillazine.org/User_name_and_password_not_remembered

  • How do I locate a clip in the timeline from the browser

    I am using FCE and I know that I can locate a clip from the timeline by using shift F.
    I want to check on a clip in the browser and find where it is in the timeline. How do I do that?

    Open the clip from the browser into the viewer. Press the F key. If the clip is used in the timeline, the playhead will move to the clip.

  • Months ago I opened an account at Argentina store. Recently I moved back to my born country, Brazil. How I need to proceed to change the country from Argentina to Brazil, keeping my ID, password and not lose my purchased content?

    Months ago I opened an account at Argentina store. Recently I moved back to my born country, Brazil. How I need to proceed to change the country from Argentina to Brazil, keeping my ID, password and not lose my purchased content? I share the content with my iPhone4, my iPad2 and all sync with my MacPro

    Also see http://support.apple.com/kb/TS3998

Maybe you are looking for

  • Assigning a numerical value

    I am new to Acrobat and still have not figured out a few things. I am trying to make a very simple form for my boss. Basically an inventory sheet with calculations. He is basically looking for an excel spreadsheet in Acrobat. Is this possible? I need

  • Banner image will not display in Dreamweaver; can you help?

    Banner image will not display in Dreamweaver; can you help?

  • Variable Offset for Customer Exit??

    Hi, is it possible to have a variable offset for customer exit time variables? E.g. I have a variable current month but can I also create a one-year offset of that? In our system that doesn't work (but also the current month variable doesn't work...)

  • Music store error -3221

    Everytime I try to connect to the Music Store I get an error number -3221 and I can no longer check for updates for iTunes, it tells me that I have no active connection. Is there any way for me to fix this problem? A couple of weeks ago I updated my

  • Task Scheduling Script - Need help with passing the scheduled command (variables are not being evaluated)

    Hi Everyone, I'm trying to get a simple task scheduler script to work for me and can't get the command I need passed to the scheduler to evaluate properly. Here's the script: ###Create a new task running $Command and execute it Daily at 6am. $TaskNam