-
1. Re: How do I "show" a symbol in the symbols panel, then "hide" it again?
resdesign Oct 6, 2012 5:53 AM (in response to Jay-KeepOnKeepinOn)show()l and hide() should work. I use it all the time. I even create functions to show and hide groups of elements when I need them to show or hide at the same time. You probably are calling the element or the symbol wrongly for it to not work.
-
3. Re: How do I "show" a symbol in the symbols panel, then "hide" it again?
Jay-KeepOnKeepinOn Oct 6, 2012 9:29 AM (in response to joel_pau)Thank you, I appreciate the post and the files to look at.
But am I correct then in saying that there's no way to "call" a symbol from the symbols panel, and instead the symbols need to be on the main timeline to show/hide them?
That's my real issue here as I may not have made that clear above.
I'm attempting to keep the main timeline linear and call/show/hide at any time without having to clutter up the main timeline with 50+ symbols that have many, many levels of interactivity within each one.
Is that possible?
Thanks again
-
4. Re: How do I "show" a symbol in the symbols panel, then "hide" it again?
joel_pau Oct 6, 2012 10:16 AM (in response to Jay-KeepOnKeepinOn)Well,
1) You can drag and drop a symbol from symbols panel to Stage panel.
2) You can use code ( sym.createChildSymbol("symbolName", "Stage"); ) to "insert" your symbol on stage. Your "call", i assume.
Note: You can replace "Stage" by a container: "myContainer". This container can be another symbol.
-
5. Re: How do I "show" a symbol in the symbols panel, then "hide" it again?
Jay-KeepOnKeepinOn Oct 6, 2012 10:39 AM (in response to joel_pau)THANK YOU
Seriously, I can't thank you enough.
So inside of the "called" symbol, the close button's code simply says "sym.getSymbolElement().fadeOut(100);"
Does that mean that "getSymbolElement" simply refers to any symbol (regardless of its name) that the close button is inside of–making it infinitely reusable?
-
6. Re: How do I "show" a symbol in the symbols panel, then "hide" it again?
joel_pau Oct 6, 2012 1:01 PM (in response to Jay-KeepOnKeepinOn)I wanted to write fadeOut(1000). 1000 = one second.
It refers to current symbol.
Current symbol is hidden: opacity is changed.
-
7. Re: How do I "show" a symbol in the symbols panel, then "hide" it again?
Jay-KeepOnKeepinOn Oct 27, 2012 11:51 AM (in response to joel_pau)Hi again,
A follow up question for you, if you have a minute...
Placing the symbol on the stage using (sym.createChildSymbol("symbolName", "Stage"); has worked great but how can I control exactly where ("symbolName") goes using x and y coordinates? It seems to always put it at 0,0 - upper left corner.
Thank you in advance
-
8. Re: How do I "show" a symbol in the symbols panel, then "hide" it again?
joel_pau Oct 27, 2012 12:23 PM (in response to Jay-KeepOnKeepinOn)Hello,
Here is a case:
var mySymbol = sym.createChildSymbol("details", "Stage");
mySymbol.getSymbolElement().css({"left": "20px", "top": "20px"});
x ==> left
y ==> top
-
9. Re: How do I "show" a symbol in the symbols panel, then "hide" it again?
Jay-KeepOnKeepinOn Oct 27, 2012 12:26 PM (in response to joel_pau)Thank you. SO. MUCH.


