I suspect you have a z-index situation. Test it by adding the hand for mouseover or click and see if it changed to it. If not, something is covering your item. Then you will have to change the z-index of the element that cover in the click or mousover or mouseenter event.
Added a hand, and it shows up without issue.
Anything else to test? Different code maybe?
did you use the code panel? It should give you the right scope. I would go into the symbol subMenu and get the action from there.
Also are you sure the name (upper case, lower case) are identical?
Oh yea, that is one thing that I made certain of prior to posting, was rather everything was properly spelled out correctly.
And using the Code Panel (Of which I am not a huge fan of the new design)
I get this code: sym.getSymbol("SubMenu1").play('ShowSub1');
However, it does not work.
This is accessing the MainMenu MenuItem1
Creating the action from it, to the SubMenu1 to show it.
And still not working.
I will make up a demo to demonstrate what is going on. That will make this a lot easier, than throwing around suggestions that may and may not work.
Give me a few minutes.
I am still not totally sure what you want but it seems to me that you should have the following on the MainMenu click event:
because the label is in MainMenu not the other symbol.
1 person found this helpful
Also, it is not necessary to add stop() at the beginning of a timeline when only labels without transitions are used. All you need to do is to turn autoplay off. Then you can code stops where you need them. Stop at the beginning is useful if you have several areas of a timeline with transitions you need to play.Use sym.getSymbol('name').stop('labelName"); to stop at labels (different label names each time.)
If you have areas with transitions, then you need stop() at the end of each transition. Then you can play those transitions with sym.getSymbol('name').play('labelName"); which will run until it encounters a stop().
Hope this make sense.
Same for the main timeline. Use autoplay off and control each other stop() or play() in CompositionReady or events.
Why would it need to be in the MainMenu click event?
It is the MenuItem1 that is being clicked on, not the MainMenu Symbol.
I got it to work in the demo, however, it is not working in the actual project.
Using the simple code of:
Without all the other stuff, since it is on the same timeline.
However, it is not that easy in the actual project.
Then you need to give us the exact structure of your project.