-
1. Re: Two symbol-instances with different data?
resdesign Aug 8, 2013 12:30 PM (in response to Martino77)Since you are having symbols with a different name, then you can target their instances elements separately. Use html('your new text here') to change the text.
symbol instance 1-text1-text2
symbol instance 2-text1-text2
try this:
// insert code to be run when the composition is fully loaded here
var data = ['text one in sym 1','text 2 in sym 1','text 1 in sym 2','text 2 in sym 2'];
sym.getSymbol('symbol1').$('Text1').html(data[0]);
sym.getSymbol('symbol1').$('Text2').html(data[1]);
sym.getSymbol('symbol2').$('Text1').html(data[2]);
sym.getSymbol('symbol2').$('Text2').html(data[3]);
This is just an example of what could be done.
-
2. Re: Two symbol-instances with different data?
Martino77 Aug 8, 2013 12:34 PM (in response to resdesign)Thanks for your quick response, but I wonder: is there a way of changing texts without using code? (I am a developer, so that's no problem, but I would rather do this inside the editor, 'cause its easier and quicker in the workflow).
Thanks
-
3. Re: Two symbol-instances with different data?
resdesign Aug 8, 2013 12:36 PM (in response to Martino77)Here is the sample file.
https://app.box.com/s/sjib8yqwqy7qtiv5yejr
No you cannot do it without code. It is like Flash. If you change the stuff in the original symbol, all symbols are changed.
-
4. Re: Two symbol-instances with different data?
Martino77 Aug 8, 2013 12:37 PM (in response to resdesign)alright thanks
-
5. Re: Two symbol-instances with different data?
heathrowe Aug 8, 2013 4:24 PM (in response to Martino77)You should be able to Duplicate the Symbol from the Symbols library.
Dragging a Symbol onto the Stage will create an instance. Repeat the drag (the same Symbol) onto the stage will create multple instances of that same Symbol. So if you were to change the text in any one of these instances, it is reflected in all of them.
However, to 'break' free from that. simply right-click on the Symbol in the Symbols Panel and choose Duplicate. Then drag an instance of this duplicate onto the stage, change its text. It will not be mirrored in the above originals.
hth
Darrell
-
6. Re: Two symbol-instances with different data?
resdesign Aug 8, 2013 4:44 PM (in response to heathrowe)We you sure about that Darrell?
Oops!'
Of course from the LIBRARY and not the element panel, it is possible to duplicate the symbol and then change its internal elements!
But if you duplicate in the Elements panel, then it is the same symbol and what is changed in one will be reflected in the other one.
Thanks Darrell!
-
7. Re: Two symbol-instances with different data?
heathrowe Aug 8, 2013 6:37 PM (in response to resdesign)Darrell



