Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 87055

Re: What happened to the getVariable and setVariable snippets in CC 2014?

$
0
0

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

sym.setVariable("myVariableName", "variableValue");

 

 

// 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");

// element.hide();

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

// Get the jQuery handle for the element an Edge Animate Symbol Javascript Object.

var symbolElement = sym.getSymbolElement();

 

 

//CREATE SYMBOL

// 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)

sym.getSymbol("Symbol1").deleteSymbol();

 

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.


Viewing all articles
Browse latest Browse all 87055

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>