[Xerte] Standard Flash Combobox question

Paul Swanson Paul.Swanson at harlandfs.com
Thu Nov 5 23:25:16 GMT 2009


Not getting ... setting. If you select the first item in combo 1, the
options available in combo 2 will be, say X, Y and Z. If you select the
second item in combo 1, the options available in combo 2 will Q, R and
S. So I need to know which item was selected in combo 1, and based on
that value change the options available in combo 2.

 

And you're right. If I put my event code into the combo responses, it
works when the selection is made, just like I want it to. I didn't do
that originally because initially I was just getting the selection and
displaying it in a text icon, just to see if I was doing it right, and
it immediately displayed the initial combo item in the text icon when
the page opened. So I thought I had to set up an event interaction to
listen for a change. So that's sorted. I guess I'm the one who was
missing something.  ;o)

 

The focus thing isn't a big deal. I can set the initial selection index
to show the item I want. It doesn't really need to be in focus.

 

Thanks!

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: Thursday, November 05, 2009 2:55 PM
To: Xerte discussion list
Subject: RE: [Xerte] Standard Flash Combobox question

 

surely any script attached to the combo responses is executed? Thos
responses match when the combo changes. Then you can use rsID.value (is
is value? I'm never sure), but you can grab the selections in script in
the responses for the combos...?

 

Am I missing something? Why do you need to get the selections on a
different interaction?

 

________________________________

From: xerte-bounces at lists.nottingham.ac.uk on behalf of Paul Swanson
Sent: Thu 05/11/2009 22:14
To: Xerte discussion list
Subject: RE: [Xerte] Standard Flash Combobox question

Xerte's native combo. I don't have Flash (maybe a bit of dash, tho).
Using an rs of combo1, I tried Selection.setSelection(combo1); and
Selection.setSelection("combo1");, but neither seem to work. I also
tried using the id of the interaction. 

 

Maybe something further down is stealing focus. I have, at this point, 3
combos; all on separate interactions; all set to be perpetual. This is
followed by script icons to style the combos to match my screen shot (an
almost perfect match!). And that is followed by an interaction with
several event responses that listen for onKillFocus to grab the
selections. Is there an event that fires when a selection is made? I
would rather not have to have the user Tab or click out of the field
before it changes the list items in the next combo. 

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: Thursday, November 05, 2009 1:43 PM
To: Xerte discussion list
Subject: RE: [Xerte] Standard Flash Combobox question

 

I think it is Selection.setSelection(cbo);

 

Xerte's native combo? Or one of your own?

 

________________________________

From: xerte-bounces at lists.nottingham.ac.uk on behalf of Paul Swanson
Sent: Thu 05/11/2009 17:31
To: xerte at lists.nottingham.ac.uk
Subject: [Xerte] Standard Flash Combobox question

I'm working on a software simulation in Xerte using screen shots from
our program, and layering Flash combobox controls on top. I'll be using
checkboxes and other controls as well. It's working fine, but I would
like to be able to set the focus to the first control when the page
opens. I see a setFocus() method for the V2 Components, but that doesn't
work for the regular FComboBox. Is there a method for that? Also, is
there an event I can listen for that fires when a selection is made? I'm
currently using onKillFocus, but I would like to be able to do something
like JavaScript's onChange event. I tried that, but Flash doesn't seem
to support it.

_____________________________ 

 Paul Swanson
 Instructional Designer
 Harland Financial Solutions
 800.274.7280 Ext. 2462
 Paul.Swanson at harlandfs.com
_____________________________ 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20091105/4240cdd5/attachment.html


More information about the Xerte mailing list