Actions on the nested items

I have two symbols on a stage with several items each.  I want to be able to click on symbole1-Element1 and play Symbol2-item2 animation.

I tried to put

sym.getSymbol("Symbol2") .getSymbol ("item2").play("Start");

in the Actions of S1 - E1, but nothing happens, as it does not record it is clicked.

If I pull S1 - E1 off symbole1 and just as a component on the stage, he plays very well.

Is there a way to execute actions of the nested elements?

Access a timeline of symbol of in another symbol

To access another symbol from a symbol, precede using getSymbol with sym.getComposition () .getStage (), as shown in the following example:

// Get the stage from the composition level, get the symbol, and play the timeline
sym.getComposition().getStage().getSymbol("symbolName").play();

To access a timeline of symbol nested in a symbol, nest using getSymbol, as shown in the following example:

// Get the stage from the composition level, get the parent symbol, then get the nested symbol timeline
sym.getComposition().getStage().getSymbol("symbolName1").getSymbol("symbolName2").play(0);

More information:

Adobe Edge animate JavaScript API - Version 1.0.0

Tags: Edge Animate

Similar Questions

  • How we can dynamically add or remove action from the popup menu in qml item

    Hi all

    I want to just dynamically add or remove action from the actionset item in the contextual menu especially in qml.

    Thanks in advance.

    Kind regards

    Ankur

    You can do so by joining the actionitem as attachedObjects. Once the page is complete (signal onCreationCompleted), you can add it to the page using addAction()

    To remove, you simply delete the page using removeAction()

    https://developer.BlackBerry.com/Cascades/reference/bb__cascades__page.html

  • Point for the action Menu spacing: set an action item to appear in the menu of the action at the bottom?

    How do you define an action item to appear in the menu of the action at the bottom? As the point to delete shown here:

    https://developer.BlackBerry.com/Cascades/documentation/Getting_started/porting/mapping.html

    You would most likely want to start with https://developer.blackberry.com/cascades/reference/bb__cascades__deleteactionitem.html and discover the parent class.

    The text suggests that the title and icon appear in the standard only if you do not specify your own when you add the element, so there is hope, you can fake it.

  • How the dynamic Action to update several items based on a JavaScript Expression producing a table?

    Using APEX 4.2.

    I have the list of selection using a LOV which returns a display value and a value separated by a comma e.g. return 'reserved to items' and "66,88" or "Available items" and "90,23".

    I want that return values for example "66,88" to be assigned to two my form fields.

    I have a dynamic action that fires when the field with the changes of the list/select-LOV. I am using an action of 'Set value' and set 'Expression JavaScript' with the expression itself type value ' $v("P1_MY_SELECT_LIST").split(",") and using Type "Article (s)' selection and listing the two points that I want to set as the items in question (from the description of the JavaScript expression field it appears that a table of the results would be assigned to the changed items , in the order.

    However, the original value of the LOV return value is passed to the first of the elements concerned (complete with the comma if the original return value was of the form '10')

    If I add more REAL action of the JavaScript "alert (" HELLO "+ $v ("P1_MY_SELECT_LIST") .split (", ") [0] +" WORLD "+ $v("P1_MY_SELECT_LIST").split (", ") [1]" ") I * see two expected values.»

    Any ideas what I could do wrong?

    The action 'Set value' affects the value specified to all affected elements: a value to one or more items. To set a different value at different points, you need several actions "Set value", or simply use javascript to do it in one.

    Even if you use a javascript expression that corresponds to a table, the table is just being converted to a string again. It creates a mapping of some sort. That is why for example with '10', she also translated as such. Actually you set this value to these two elements: ' 10, ".split(",").toString () (implicit in the chain of course).

    The code makes it very obvious that it doesn't handle values, as described in the help of the element. Aid is not correct or is the implementation simply not here yet?

    Just look at the javascript for dynamic actions, images/libraries/apex/dynamic_actions.js, service da.setValue directory file:

        function _setValue( pValue ) {
            lAffectedElements$.each( function( i ) {
                // Set all affected elements to the value passed
                $s( this, pValue, null, lSuppressChangeEvent );
            });
            /* Resume execution of actions here and pass false to the callback, to indicate no
            error has occurred. */
            da.resume( lResumeCallback, false );
        }
    

    And when you use a javascript expression:

        } else if ( lSetType === "JAVASCRIPT_EXPRESSION" ) {
            _setValue( lJavaScriptExpression.call( this ));
    

    It's pretty simple. (and this is checked on apex 5. It's the same on 4.2)

  • How does the APEX 5 'Refresh' Action? Unable to refresh the page items.

    Hello

    I'm 5 APEX developed a page with both regions. Goal is to show the number of cells on the main area and allow to update the same number of cells from another region on the same page.

    Region 1: Added a view-only point P2_CELL_NUMBER_SHOW seen source of sql return the unique value. Like "Select cell_number of user_cell."

    Region 2 (hide this region during the loading of the page): adding an item of text P2_CELL_NUMBER_UPDATED. This region has added a button "Apply Changes". During the click on added dynamic actions in the following order:

    (a) PLSQL: Null; Submit article: P2_CELL_NUMBER_UPDATED

    (b) PLSQL: the UPDATE call sql statement to update the number of cells in the database table.

    (c) masking region 2 and region 1 via java script list.

    (d) refresh region 1 (here I expect at this point P2_CELL_NUMBER_SHOW should show the new update on the step value b). But get the old value that was earlier on region 1. But when submitting the page then region 1 get the new value.

    So, does send the page or set the session state to get the new value on region 1? Will update no help in this situation?

    Thank you

    Ankit

    Hi Pierre,.

    The dynamic Action of the type "Refresh", does not work on the elements and entry areas with elements of entry. It is intended for regions of report with PPR (partial Page Refresh) allowed namely interactive reports, classic and graphic regions.

    Kind regards

    Kiran

  • Failed to add the menu item «Edit adjustment...» "action

    Hello

    I have an action in which I want to change an existing adjustment layer. I can't save the menu item «Edit adjustment...» "in the drop down palette layers.

    To add the step, I tried the following steps:

    1. Select the adjustment layer thumbnail icon
    2. Select «Insert Menu Item»... "in the menu palette flyout
    3. Choose "Edit settings...". "in the menu of the layers palette (how the window insert a Menu item" Menu item: layers: change the setting ")
    4. Press the OK"" button.

    This adds nothing to the action; usually, hit OK adds the menu item.

    I'm doing this right? Is this a known bug? As a solution, can someone point me to action with the step of "Edit settings...". "already in there? Thank you.

    Photoshop CC 2015.1.2 (20160113.r.355 x 64)

    Mac OS X 10.11.3

    I think that you make it harder than it is.  Just record the action and adjust the adjustment layer, you add during the recording of the action.  When did you record the action you should see that there two steps were recorded for the adjustment layer, you added during the recording of the action. "Do adjustment layer" and "current adjustment layer Set.  Insert a stop message with continue after the "make the adjustment layer ' step and check activate the dialog box in step"Set current adjustment layer".»  Layer when allowed by using the action, you can uncheck the walk of the stop.

  • Create a global variable, get/set of action of the div nested

    I read a lot of posts on this subject that offer slightly different solutions, but I can't seem to get one of these solutions to work in my context.

    Perhaps my difficulty comes from the fact that this div is nested in a symbol and 2 groups of div. I try to access within a click action.

    So it goes: Stadium > Parent symbol > Group div > div group > Group div with the click action.

    I create the variable in a compositionReady on the stage action. I tried the following statements:

    • sym.myVar = 'myVal ';
    • sym.setVariable ('MyVar', 'myVal');
    • setVariable ('MyVar', 'myVal');
    • var myVar = "myVal";

    And the Committee of action of the div group, I tried the following syntaxes:

    • Alert (sym. MyVar);
    • Alert (sym.getVariable ('myVar');
    • Alert (getVariable ('myVar');
    • Alert (sym.$('myVar'));

    And I tried all reasonable combinations of elements on these two lists.

    Anyone know what I'm missing? All documentation to help me get my head around the principles at work here would be appreciated!

    Here are 2 case: nestedSymbols.zip - Box

  • Problem of setting a value for the hidden item click on the button with processes action or pl/sql dynamic

    Apex 4.1

    Oracle 11g

    I have a page which consists of a main and several sub-regions area.  I have a pl/sql process in after the header SET_DISPLAY(:P400_DISPLAY:='MAIN';))

    Three subregions have a contional show where P400_DISPLAY = STORE.  It works in the hiding of the sub regions.

    Now, I want to change the value P400_DISPLAY to the STORE to show the subregions when I hit a button.

    I tried to create a dynamic action for the click on the Add button, but get the following error:

    The selected button uses a model of 'button' that does not contain the #BUTTON_ID substitution string #.

    I went to the models and found:

    Substitution strings

    Top

    Substitution strings are used in sub models to reference the value of the components. This report details use of string substitution for this model.
    Substitution string Referenced De Description
    #LINK #.YesModelTo be used in an attribute "href".
    #JAVASCRIPT #.NO.To be used in an "onclick" attribute
    #LABEL #.YesModelButton label
    #BUTTON_ATTRIBUTES #.NO.The attributes button
    #BUTTON_ID #.NO.ID generated button will be ID either the static button if defined, or if not will be a generated ID internally in the format 'B ' | [Internal ID of the button.

    I then tried to create a page process, pl/sql,: P400_DISPLAY: = 'STORE '; If the button is pressed.  The action of the button is submit page. However, it does not change the value of P400_DISPLAY and the subregions are hidden.

    Suggestions please on how to fix the template or change the value of P400_DISPLAY?

    The question of the root, it's that, even if you change the value of the element of your page, it is not visible to other areas of the page until it is in the session. Thus, any other action based on the value of the element of your page. the visibility of a control, a report based on the value of the item, etc. will be affected by changing the value of the item page until it has been changed in the session. Even after that, items are stored in the session, then you must do something to influence the revalued value. To see the effect of this, observe that your page will load and assesses the value of the element of your page, it sees which is the "MAIN" and mask areas. However, he didn't reassess after that.

    Then; your choices for this value set at the session are send the page, or use JavaScript to set the value in the session. If you use the latter, you will have to do extra work to make visibility tests be re - run, so, let's stick with the submit method.

    What you did above sounds correct to do this but, there are a lot of decisions, that you might have done that may have caused things to do not occur in the correct order.

    First of all, we will confirm that what I describe above is your problem. From the development environment, load the page, click on the button to change the value and submit. Now, click on the link marked the Session. He is always at HAND? If the answer is "Yes"; That's your problem.

    Let's start with your calculation after the header. You set it to * only * run if the current value of the element of your page is null? If this isn't the case, it's your problem.

    Load the Page-> Item set to 'Hand' by calculation-> click on the button--> Item set to STORE-> Submit-> Page Load-> point by calculating the value 'hand '.

    See the problem?

    Assuming that's not the question, you have created a branch to the same page, right? What is your process for the branch point? Is it * after * Validation, computation etc.? Because if not, you are not changing the value before that didn't get to submit.

    I bet that's the first question, but take a look at these.

    See you soon,.

    -Joe

  • Help with dynamic action and the selection list item

    G ' Day Apex gurus.

    I have problems trying to achieve to trigger the Help window from an element automatically select. A Help window is triggered when it is clicked on the label of an item, but my customer wants to be triguered automatically as soon as the user clicks to view the options in the select list.

    I think I should be able to do with dynamic actions but I can't function.

    I know when someone clicks on the label of the item selection list trigger this JavaScript

    JavaScript:popupFieldHelp('277938589795252851','1545903379570909')

    So I want to trigger the javascript also when the user click on the item selection list and pull down the options and for that I think that the dynamic action is the way to go, but I can't do things.

    That's what I have to do:

    I created a dynamic option as follows:

    Name: test
    Sequence: 30
    Even: click
    Selection type: product (s)
    Article (s): P1_RATING <-a selection list item
    Condtion: - no requirement.

    Real Actions
    Sequence: 10
    Action: Run the JavaScript Code
    Fires when the result of the event is: true
    Fire on loading the page: checked
    Code: javascript:popupFieldHelp('277938589795252851','1545903379570909')

    Thank you anyone who can tell me what I'm doing wrong here or bring a solution to my problem to trigger the Help window from an element automatically select.

    Kind regards
    Carlos

    Hi Carlos,

    I've set up a test case of exactly in the same way and it worked fine for me. I've created a page element called P1_DA_DEMO and added some values of the static selection list, then added a help text. I used the settings are lower, I suggest you try again, but also make sure that you have no other Javascript errors on the page. Use a tool like firebug to check.

    Name: Action Dynamics demo
    Sequence: 10
    Even: click
    Selection type: product (s)
    Product (s): P1_DA_DEMO<- a="" selection="" list="">
    Condtion: - no requirement.

    Real Actions
    Sequence: 10
    Action: Run the JavaScript Code
    Fires when the result of the event is: true
    Fire on loading the page: unchecked
    Code: javascript:popupFieldHelp('277938589795252851','1545903379570909')

    Scope of the event set a Bind s.

    Thank you

    Paul

  • Use the new action to click for item on timeline

    Hello

    I created an element on the stage that has a click at the beginning of the timeline. I would like to apply another later click on the timeline action to the same element. However, since I already have a click action applied to this item I am not able to add an extra click action to the same element later in the timeline. Is there a way to get around this, to have multiple actions with even trigger, click in this case, at different points on the timeline for the same element?

    It is an accordion animation. When the accordion is opened along the timeline, I would like to be able to click again on the hotspot it returns to the default position, from, timeline.

    Thank you

    Scott

    Can you post a sample or if you cannot make public, pm me a link. I'll look at it. If you can't I could also try to do a sample that does something like what I understand you want.

    The code above can be put in the composition of the ready scene.

    Let me know.

  • Form original action jump to the third item on the drop-down menus, not the first.

    I completed my form fields, with text and drop-down menus.

    Finally, I added a 'Clear form' button, but on the menu drop-down, it goes on the third item on the menu, not the first, on my case, the first element is called '- select one -'

    On the Options tab of the field for a drop-down list properties dialog box, you can select the default item. Any item is selected when the dialog box is closed, then will be what's on the field when the field is reset.

  • Dynamic action and the sequence for popluating items

    I try to use the sequence to fill an item after the other (on the loading of the Page).

    So basically I'm pushing data using a SQL to item_A then fill item_B based on the result of item_A.

    I thought that if I use the sequence it will work, but I don't get any value for item_B.

    What is the best way to do it?

    See you soon,.

    Mehr

    Mehr wrote:

    With the help of the Source is perfect however although I can easily use it to fill the item_A, but when I write this in the section item_B Source:

    item_A + 10 (example)

    the result is null.

    Can you advise?

    I guess the item_A and B are supposed to be in a sequence type of situation so that one can be done after the other, but I doubt if there is any order for items in a form (page).

    Page elements are displayed in order of sequence / the box item. Their source and default values are also defined in this order. However, the source attributes / by default defines only the values rendered on the page, not in session state (you can see this by using the Session Viewer when the page is rendered in first). This means that you cannot reference the value of an element any defined using attributes source / default to the course to see the page. To set values in the elements of rendering and session state, set the initial values using calculations or process rather than the source attributes / by default.

  • Select the event inside the nested symbol does not

    It's actually based on a previous thread located here: http://forums.Adobe.com/message/5596353#5596353

    I thought about adding to this thread, but in many ways it deserves it's own separate discussion.

    I used the Zaxist examples and AMULI put in place successful. On a navigation bar located directly in the root.

    Now, the question is the same thing with a menu that is nested inside a symbol.

    In my example, I have a button that when you click on anime a symbol of navigation bar down. This works. Also, the LINK button retains its background color set to black until the user clicks another button in the main navigation bar. OK, he has no other button in this example. So just pretend and believe me, it works.

    Now in the nested clip, there is a similar function I Illustrazione in the compositionReady. Then I added my actions to each of the four buttons inside the symbol navlink nested. The rollover/rollover effects work well. But the click event shows an error. It is basically the same click event in the navigation bar on the root, which does not have an error.

    My code inside the compositionReady is;

    Reset the State of each button

    buttons = {}

    Reset: function() {}

    sym.getSymbol("btnLink").$("back").css ({"opacity": "0"})

    }

    }

    which button?  Zero means no!

    We set this variable to get know e what button

    WB = 0;

    Reset each State buttons Sub

    buttonsub = {}

    Reset: function() {}

    sym.getSymbol("btnCommunication").$("back").css ({"opacity": "0"})

    sym.getSymbol("btnIndividuality").$("back").css ({"opacity": "0"})

    sym.getSymbol("btnCreativity").$("back").css ({"opacity": "0"})

    sym.getSymbol("btnInclusivity").$("back").css ({"opacity": "0"})

    }

    }

    which button?  Zero means no!

    We set this variable to get know e what sub button

    SB = 0;


    I would like to only it where there are two functions. One for all main buttons and the other for all the buttons of the child. This way I can have two buttons stuck to the hover effect when you click them in order. If all goes well, that makes some sense.

    Here is my event click in the button "btnIndividuality" inside the symbol navLink nested:

    buttonsub. Reset();

    sym.getSymbol("btnIndividuality").$("back").css ({opacity: 1})

    SB = 1;

    The other three buttons are basically the same.

    So I tried a number of ideas. Especially goes directly from the stage and drilling down into JQuery. Nope.

    So the Firebug error is 'Javascript error in the event handler. Type of event = 162 item line ' we of edge.2.0.0.min.js. It's this line:

    function (a) {if (a) {if(!this.aSymbolInstances) this.aSymbolInstances = []; this.aSymbolInstances.push (a.getSymbolElement ())}}; Y = Function (a, b, c) {function f (c, b) {if (b.length > = 2 & & typeof b [0] = 'object' & & typeof b [1] = 'object' & & b [1] .Guy! == "onError") {var e; e = d.Event ("onError"); if (g) e.compId = g.getComposition () .compId; e.originalEvent = b [1]; d (doc indicator) .triggerHandler (e)} window.console.log ("Javascript error in the event handler.}} Type of event = "(+a)} var e = this [b [0]], g;" = If (typeof e = "function") if (b.slice (1), a = 'element') return function() {var;

    Why would I get this here and not on the root? What is the correct path to make it all work? If close, but not home right now.

    Files are located in:

    https://www.dropbox.com/s/xlgfeeyam9hyuf3/nested.zip

    Oops! Sorry, without my knowledge, that it was published before it is completed

    (3) thus, using Firebug, you get this when you trigger a click event

    In other words, sym.getSymbol ("btnCommunication"), the first statement in your buttonsub.reset function fails.

    In your mind, sym points to the instance of navLink, parent of the instance of btnCommunication.

    But the buttonsub.reset function is defined in the compositionReady event handler, so when it runs sym points until the symbol of the scene, which has no child symbol instance named btnCommunication. Where the bug.

    Therefore, the context of symbol should be past to the function as a parameter. Set it like this:

    buttonsub = {}

    reset function: ( symClick)

    {

    symClick.getSymbol("btnCommunication").$("back").css ({"opacity": "0"})

    And call it like this:

    buttonsub. Reset ( sym);

    In other words, the formal parameter symClick will receive as the effective setting, this actually sym sym pointing to the instance of navLink.

    Gil

    .

  • Elements of action bar + back bar item

    Hello

    is it possible to combine the action bar items (buttons) and use a back button in the toolbar action (BBUI.js and BBUI.css).

    Thank you

    MobilityUser

    Hello
    If you need to add a back bar simply add the data-bb-back-caption in the action bar div as below:

    Then you can simply add the other items in the action within this division bar

    See the examples on https://github.com/blackberry/bbUI.js/wiki/Action-Bar for more information. He wiki is really informative for all queries bbui.

  • How can I trigger an action on the click event of wheel with ApplicationMessages?

    Hello world

    I've recently implemented ApplicationMessage provided for JDE 4.6.0. It allows developer create custom messages in the global Inbox of messages about its application. It works fairly well but I threshold have question though: when I click on my ApplicationMessage in overall Inbox of messages I get this pop-up: 'no messages not configured service. "You will be able to save draft".

    I want to trigger an action (updates my request on the foreground for ie) on this event and prevent this pop-up to appear. I have not found a way to do good.

    Somone have never worked with ApplicationMessage and managed to trigger an action on the click event of wheel?

    Thanks in advance.

    PS: A less important but another question: my ApplicationMessage time in the overall message Inbox is displayed this way: 10:... instead of 10:45 for example. And yet I didn't understand what was the reason of this bad view (it seems that the date is too long or something).

    I thought about it: you must register at least an ApplicationMenuItem for your ApplicationMessage, the action triggered by this menu item will be the same if you click your ApplicationMessage with the wheel.

Maybe you are looking for

  • Satellite A210-16F - BIOS update gone bad

    Yes, the flash upgrade did not go with me as, like many I've seen. Weird that toshiba recommends a bios flash when you get the errors of installation win7 / vista, and have many fail. I tried 3 versions of different bios of the internet, 2 from the s

  • Fan Heatsink of heat/cooling A25-S307 problem

    I have this model A25-S307 for more than 2 years recently I started noticing that my laptop will heat up soon. Although the cooling fan starts, it doesn't do any good. And sometimes even if it's very hot, cooling fan not kick. Any suggestions on how

  • What is a normal temperature of the CPU - Satellite A200-1Yk

    After several accidents, I installed the utility coretemp on A200-1YK my wife.He told me that the CPU runs at about 90 degrees, sometimes up to 95.According to [Intel | http://processorfinder.intel.com/details.aspx?sSpec=SLA4K#] there a maximum of 10

  • I hate Itunes: where is my sidebar... again?

    With each upgrade, his party. Why?  How can I get that back.    S command does nothing.

  • How to create a link to the newly created dashboard?

    Hello I created the new dashboard. Is it possible to provide users with a link that will go directly to a specific dashboard? If yes how can I do this... Thans, Vivek