Re: [flexcoders] Moving a viewStack through actionscript

2009-03-10 Thread Wally Kolcz
, March 09, 2009 3:21 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Moving a viewStack through actionscript Hi Wally, sorry I missed the hierarchy there. You have checkSingle on the module and not the Viewstack. In that case, you should be able to do parent.parent.checkSingle and leave

Re: [flexcoders] Moving a viewStack through actionscript

2009-03-10 Thread Wally Kolcz
. From: Michael Wills mich...@mawills.com Sent: Monday, March 09, 2009 3:21 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Moving a viewStack through actionscript

RE: [flexcoders] Moving a viewStack through actionscript

2009-03-10 Thread Tracy Spratt
. _ From: Michael Wills mich...@mawills.com Sent: Monday, March 09, 2009 3:21 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Moving a viewStack through actionscript Hi Wally, sorry I missed the hierarchy there. You have checkSingle on the module and not the Viewstack. In that case, you

RE: [flexcoders] Moving a viewStack through actionscript

2009-03-10 Thread Wally Kolcz
Would I put the dispatch on the radio button group of the 'Next' button? From: Tracy Spratt tspr...@lariatinc.com Sent: Tuesday, March 10, 2009 6:42 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Moving a viewStack through actionscript Put

RE: [flexcoders] Moving a viewStack through actionscript

2009-03-10 Thread Wally Kolcz
@yahoogroups.com Subject: Re: [flexcoders] Moving a viewStack through actionscript Hi Wally, sorry I missed the hierarchy there. You

[flexcoders] Moving a viewStack through actionscript

2009-03-09 Thread Wally Kolcz
I have a test that I want to walk through the questions using a function. How can I set the inital value of the ViewStack (questionsVS) to 0 and then increment it by one each time someone clicks a button? mx:ViewStack id=questionsVS width=98% height=100% paddingLeft=10

Re: [flexcoders] Moving a viewStack through actionscript

2009-03-09 Thread Michael Wills
Hey there Wally, You can get access to the currently selected viewstack, and also set it, through selectedIndex. So your initial declaration would be like mx:ViewStack id=questionVS etc... selectedIndex=0 click=nextQuestion() and in your function nextQuestion you can increment the

Re: [flexcoders] Moving a viewStack through actionscript

2009-03-09 Thread Wally Kolcz
/ mx:Button label=Next click=testMod.checkSingle(group1.selectedValue) / /mx:VBox From: Michael Wills mich...@mawills.com Sent: Monday, March 09, 2009 10:55 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Moving a viewStack through actionscript Hey

Re: [flexcoders] Moving a viewStack through actionscript

2009-03-09 Thread Michael Wills
*From*: Michael Wills mich...@mawills.com *Sent*: Monday, March 09, 2009 10:55 AM *To*: flexcoders@yahoogroups.com *Subject*: Re: [flexcoders] Moving a viewStack through actionscript Hey there Wally, You can get access to the currently selected viewstack

Re: [flexcoders] Moving a viewStack through actionscript

2009-03-09 Thread Wally Kolcz
a viewStack through actionscript If I am understanding your code correctly, you actually want to call test1(parent).checkSingle instead of testMod. The reason is because you are instantiating a brand new, and unrelated, test1 component with public var testMod:test1 = new test1(); You might be able

Re: [flexcoders] Moving a viewStack through actionscript

2009-03-09 Thread Michael Wills
; } *From*: Michael Wills mich...@mawills.com *Sent*: Monday, March 09, 2009 11:44 AM *To*: flexcoders@yahoogroups.com *Subject*: Re: [flexcoders] Moving a viewStack through actionscript If I am understanding your code correctly, you actually want to call test1(parent

RE: [flexcoders] Moving a viewStack through actionscript

2009-03-09 Thread Jim Hayes
. Hth -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Michael Wills Sent: 09 March 2009 22:20 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Moving a viewStack through actionscript Hi Wally, sorry I missed the hierarchy