-
1. Re: Can anybody help me set this code into an array?
hemanth kumar r May 18, 2014 11:16 AM (in response to jamesfootight)Her is the modified file Countries_modified.zip - Google Drive
Changes
1)Give unique user class names to maps('AUS'),text fields('AUS_text')and pie charts ('AUS_Chart').
2)Moved the fading logic to composition ready
-
2. Re: Can anybody help me set this code into an array?
jamesfootight May 19, 2014 1:56 PM (in response to hemanth kumar r)Hi that is such a great help thank you so much! I have one more question, I tried to set up another symbol with elements inside to fade out and fade toggle like you had done, but am having trouble - you mentioned creating classes, where did you do this as the class button has not been selected on any of the modifications you did for me.
thanks you so much for your help
James
-
3. Re: Can anybody help me set this code into an array?
hemanth kumar r May 19, 2014 9:36 PM (in response to jamesfootight)For the class button to become active you need to set the display property of the element to 'visible'.
-
4. Re: Can anybody help me set this code into an array?
jamesfootight May 20, 2014 6:25 AM (in response to hemanth kumar r)HI, am so close now! Thanks for class visible tip, however I have creates a new symbol called Stanbuttons, and within this symbols there are 9 elements called UK1,UK2 etc and 9 more called USA1,USA2 etc I have grouped these into two seperate groups, one called UK and one called USA. I have given these groups a class of UK_stan and USA_stan and turned them to visible OFF. In stage comp ready I have var = sym.getSymbol (Stanbuttons).$(".UK_stan, .USA_stan");
then i I have added the Stanbuttons.each(function(){
$(this).fadeOut();
});
then in the action list for ukcountrybuttom I bave
sym.getSymbol("Stanbuttons").$("UK").slideToggle();
just as you had for the pie hart and textwindows but nothing the standard buttons are not appearing! Any ideas?
-
5. Re: Can anybody help me set this code into an array?
hemanth kumar r May 20, 2014 12:57 PM (in response to jamesfootight)I think this[var = sym.getSymbol (Stanbuttons).$(".UK_stan, .USA_stan"); ] should be
var myvar = sym.getSymbol (Stanbuttons).$(".UK_stan, .USA_stan");
And than
myvar.each(function(){
$(this).fadeOut();
});
-
6. Re: Can anybody help me set this code into an array?
jamesfootight May 21, 2014 1:55 AM (in response to hemanth kumar r)Hi I'm afraid that didn't work, I have followed your examples from the modified code your provided an they all work so it is driving me a bit mad! Could u take a look a the attached zip to see what I mean please? I just need the Stanbuttons to toggle as the Piecharts, Textwindows and Countires do! thanks so much in almost there!
-
7. Re: Can anybody help me set this code into an array?
hemanth kumar r May 23, 2014 6:13 AM (in response to jamesfootight)Looked through the file,your code is right but a few corrections
1)Set only the group parent i.e your UK symbol to display off as your are toggling display of only this element
2)First element in stan button is placed outside the stage,so event setting display to visible might not make it visible
3)Remaining 8 buttons are placed one o top of another at x-0 y-0 place it at different positions to display them
I have done the corrections for UK button in these files


