selectedIndex is a property, not a method. Try click="myviewStack.selectedIndex = 0" -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com
-----Original Message----- From: Thiago Rodrigues <thiagotrr...@yahoo.com.br> Reply-to: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] Change viewStack index from different Panels Date: Thu, 2 Apr 2009 12:35:21 -0700 (PDT) Hello guys... After read some tutrorials and a introdutory book, I'm making my first application. I've two distinct panes and I wan't to change the index of a viewStack in "pane 2" from a click action there belongs to a image located in "pane 1". So: click="myviewStack.selectedIndex(0)" .... I got the message: "Attempeted of inaccessible method selectedIndex through a reference with static type in mx.controls:ViewStack ..... May you help me? Tnx. Thiago TRR MSN: thiago...@hotmail.com E-mails: thiagotrr...@yahoo.com.br / thiago.trr....@gmail.com Celular: (32) 8834-2656 ________________________________________________________________________ Veja quais são os assuntos do momento no Yahoo! + Buscados: Top 10 - Celebridades - Música - Esportes