>, I'd learn about dispatching custom events. It's not that complicated but it takes some time to understand. Raising some events from the question components strikes me as being a whole lot easier than dealing with addressing all the different objects through the heirarchy! But then when I first started out with flex I didn't know that and tried to do pretty well the same sort of thing. You could probably google and read enough on custom events to do what you need in an hour or two, you'd more than likely spend much more time trying to work out your current problems than that, I'd guess. 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 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 out the cast as test1. So
public var testMod:Object = parent.parent; The last one failed because it was trying to convert a viewstack into a test1 which of course isn't a viewstack. But I'm not sure about this one because the parent.parent is a module. You could also forgo using the testMod variable and in your click declaration instead of click="testMod.checkSingle(group1.selectedValue)" use click="parent.parent.checkSingle(group1.selectedValue)" /> Hopefully that'll work for you. If you have a little time to invest, and if you may be doing more Flex apps in the future, even though this one is not going to be a full-on huge app, I'd learn about dispatching custom events. It's not that complicated but it takes some time to understand. It would save some of the hassle you're trying to do of course at the expense of a new and different kind of hassle. :-) Michael Wally Kolcz wrote: Wow...its a 'simple' one time create app. All I want to do is when the user selects an answer on the question1.mxml component, they can click a button, pass the value of the radio button to the test1 module's checkSingle() method and then move to the next question in the test1 module's stack. ______________________________________________________________________ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. ______________________________________________________________________