-
1. Re: can anyone help me simplify this into a var or class? I'm quite new to this!
resdesign May 14, 2014 1:48 PM (in response to jamesfootight)try this:
// insert code to be run when the composition is fully loaded here
var countries =
for (i=0;i<countries.length;i++){
sym.$(countries[i]).addClass('fade');
sym.$('.fade').fadeOut();
}
sym.$("UKstandardbuttons").fadeToggle();
sample
-
2. Re: can anyone help me simplify this into a var or class? I'm quite new to this!
jamesfootight May 17, 2014 1:49 AM (in response to resdesign)Hi,
Thanks for all your help, I don;t think Class would work as i would need different combinations of the buttons within a symbol.
I think I have worked it out, but if you see attached, for some reason my fadeOut command for the rest of the countries when each button is clicked fails to fadesOut the rest of the countries and only USA and UK seem to work? See attached:
any ideas, it's driving me mad!
-
3. Re: can anyone help me simplify this into a var or class? I'm quite new to this!
jamesfootight May 18, 2014 5:48 AM (in response to jamesfootight)Thanks, can you help me understand how to make an array work?
I need to fade toggle a different country png for each country button and fade out the rest of the country images i.e.: when i click the UK button i need to fade toggle the UK png and fade out the other countries
when i click the USA button i need to fade toggle the USA ing and fade out the other countries and so on
sym.getSymbol("Countries").$("UK").fadeToggle();sym.getSymbol("Countries").$("USA","AUS","Hongkong","Switzerland","Ireland","Indias","Japa n","Netherlands","Spain").fadeOut();
sym.getSymbol("Countries").$("USA").fadeToggle();sym.getSymbol("Countries").$("UK","AUS","Hongkong","Switzerland","Ireland","Indias","Japan ","Netherlands","Spain").fadeOut();
but it doesn't seem to work how i have it and i have been told to do an array but I'm not sure how?
etc
can you help?
-
4. Re: can anyone help me simplify this into a var or class? I'm quite new to this!
hemanth kumar r Jun 4, 2014 10:40 PM (in response to jamesfootight)This seems to have been answered here
https://forums.adobe.com/thread/1476945?sr=stream&ru=2098418



