, 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
.
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
.
_
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
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
@yahoogroups.com
Subject: Re: [flexcoders] Moving a
viewStack through actionscript
Hi
Wally, sorry I missed the hierarchy there. You
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
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
/
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
*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
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
;
}
*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
.
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
12 matches
Mail list logo