You can add your own snippet and the ones you used to have in version 3.0.
True enough, but just beginning to learn jquery this will make my work flow have to jump back and forth between the two programs for help with the code writing. I appreciate that part of Edge Animate's mission is to provide designers like myself a 'code free' entry into doing animation, but in the projects I've worked so far, not only have I been creating actions and triggers that allow interactivity with the animations, but I've also found the need to create variables for making counters or scoreboards that need to get- and setVariable options.
So please Adobe, even if it's somehow hidden so as not to 'confuse' designers, please replace these more advance snippet options (and hopefully more while you're at it).
Like I said, you have mysnippet in which you could add these. Then you will have them the same way as before with just a click.—
Sent from Mailbox
On Sat, Jul 5, 2014 at 6:09 PM, SquareMoon <firstname.lastname@example.org>
I've now re-downloaded EACC ver 3 and copied and pasted the missing snippets into the my snippets area of EACC 2014.
Here they are if anyone is following this string...
// SET SYMBOL VARIABLE
// Set the value of a Symbol variable
// GET SYMBOL VARIABLE
// Get the value of a Symbol variable
var myVariable = sym.getVariable("myVariableName");
// GET ELEMENT
// Gets an element. For example,
// var element = sym.$("Text2");
var element = sym.$("Text1");
// GET SYMBOL
// Use this to target events and elements inside a symbol.
// For example:
// var mySymbolObject = sym.getSymbol("Symbol2");
// mySymbolObject.play(); will play the timeline of Symbol2. Another example:
// mySymbolObject.$("myElement").hide(); will hide "myElement" inside of Symbol2.
var mySymbolObject = sym.getSymbol("Symbol1");
// GET SYMBOL ELEMENT
var symbolElement = sym.getSymbolElement();
// Create an instance element of a symbol as a child of the
// given parent element
var mySymbolObject = sym.createChildSymbol("Symbol_1", "ParentElement1");
// DELETE SYMBOL
// Delete an element that is an instance of a symbol
// (getSymbol looks up the symbol object for a symbol instance element)
Just copy and paste them one at a time and use the top line for the snippet name.
Also if you misname a snippet button, holding ctrl+option and clicking the button allows you to Edit Code, Rename or Delete the button.
OK...first of all thank you so much for posting these. I have already done a mess of "MySnippeting" to get them in place.
I am also just learning jQuery and was amazed when I saw how ADOBE made ANIMATE more "Designer Friendly" by taking away features.
...I think I am a little insulted.
Thanks again for posting this!
well, I felt the same...
anyway amazing job ! Thank you Square Moon.
Now I have all my snippets back.
I think Adobe should pay attention on its way of going "designer friendly". I am a designer but I know that we need code in Edge if we want to go further with it just like Flash needs AS3.
Have a nice day.
I know this is an old post but still thank you so much for the snippets!
Can I get a variable from compositionReady which is set in a symbol?
So for example symbolA contains image1 and on clik I write: sym.setVariable("img1", "1");
From compositionReady I want do this: var myVariable = sym.getVariable("img1");
But it seems like it's not working. Anybody have an idea how to do this?
If you set your variable and write your click event in compositionReady
then you do not have to worry. Should work.
I do not use get and set variable, just
var x = 0;
And then click event