Thanks for responding Hasan! ;) I have been through a lot of those VERY helpful tutorials but for some reason can't find the answer to my very (seemingly) basic problem. I'll bet it is right under my nose, but I would very much appreciate a little direction from any Flex Gurus out there. :)
Is there a quick example anyone can provide on how I can access a textinput component value (or any other one for that matter) from within an external class? Perhaps even a specific tutorial somewhere that deals with just this sort of issue? Thanks, John --- In [email protected], Hasan Otuome <[EMAIL PROTECTED]> wrote: > > Hey John, > > Aral Balkan has some examples that might prove helpful in your > quest...=) > > http://www.adobe.com/devnet/flex/?tab:quickstart=1 > > P E A C E > > Hasan > > > On Nov 6, 2006, at 6:18 AM, mts_link wrote: > > > Ok, I'm making the move from Flash/PHP to Flex 2, but have run into > > a "n00b" question and I have been unable to find an answer. > > > > When I use actionscript via the mx:Script tag IN the mxml file, I can > > access the components without much problem. > > > > Example: > > public function getTestInput() > > { > > trace("Value of Text Input: " + testInput.text); > > } > > > > In the MXML page I have a text input with an id of testInput. The > > moment I move this same code into an external actionscript class, I > > can no longer access this variable. > > > > I know, it certainly has to do with scope, but how do I directly > > access the mxml components from within my external actionscript > > class? I have seen mention of parentDocument and parentApplication, > > but I cannot seem to get this to work for me. > > > > Can anyone shed some light on this and perhaps provide an example, or > > a link to an example? > > > > Thanks! > > > > John Cornett > > > > > > > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

