Another full day trying to get this to work. I'm trying to figure out 
how to access the value of the form elements.

http://www.geotonics.com/examples/DynamicStates/DynamicStates.html
I got this from Programming Flex 2, page 221, but I had to fix some 
mistakes and I submitted the errata to the authors.
I've added a debug window and view source.
 
The customForm object has functions for accessing the name and values of 
the form elements. When you first start it up, it shows the "name" value 
for  the first items in each of the 4 customForm objects.I can also 
access the values in the same way.

Which means if I can access the CustomForm objects I can access the name 
and values in those forms

When you hit the next button, the getforms() function accesses the 
contents of the present state. Unfortunately, that doesn't seem to 
include any customForm objects, only items in a grid, so I am showing 
the textInput.text, of the first child, which is what I am calling the 
value of the form element. That's fine, but when I try textInput.name, 
it shows "TextInput99" which is worthless to me. I think that name is 
generated automatically. I can't figure out how to create the form 
elements with the proper names, as listed when you first start it up.

Please if anyone knows how to access the proper names in the getforms() 
function, help me out.



[EMAIL PROTECTED] wrote:
>
> I put a break point where the next button is pushed and I went thru the
> list of variable but I could not find anything that is in a form
> variable. It might be in there somewhere but therea re so many its hard
> to fathom.
> Is there any way to pay people to answer my questions ? I've been trying
> to fugure out how to make a simple multiple choice test for 2 months and
> I'm having a nervous breakdown.
>
> [EMAIL PROTECTED] <mailto:info1%40reenie.org> wrote:
> >
> > I seem to remember some way to access all the variables in a debugging
> > environment, but I can't figure out how to do that anymore. How can I
> > see the variables as they are present at runtime ?
> >
> > [EMAIL PROTECTED] <mailto:info1%40reenie.org> 
> <mailto:info1%40reenie.org> wrote:
> > >
> > >
> > > I got this example from "Programming Flex 2"
> > >
> > > http://www.geotonics.com/examples/DynamicStates/DynamicStates.html 
> <http://www.geotonics.com/examples/DynamicStates/DynamicStates.html>
> > <http://www.geotonics.com/examples/DynamicStates/DynamicStates.html 
> <http://www.geotonics.com/examples/DynamicStates/DynamicStates.html>>
> > > 
> <http://www.geotonics.com/examples/DynamicStates/DynamicStates.html 
> <http://www.geotonics.com/examples/DynamicStates/DynamicStates.html>
> > <http://www.geotonics.com/examples/DynamicStates/DynamicStates.html 
> <http://www.geotonics.com/examples/DynamicStates/DynamicStates.html>>>
> > >
> > > There is a "view source"
> > > It has dynamic states, each with its own form, but as far as I can 
> tell,
> > > it does not deal with the data in the form at all. When you hit 
> the next
> > > just sends you to the next form.
> > >
> > > How do I figure out what has been input in the form ?
> > >
> > >
> >
> >
>
>  

Reply via email to