PDA

View Full Version : Controlling items in Panel A from Panel B [Flex3/AS3]


sprinklez
09-25-2008, 07:06 PM
Hi all,

Currently I am working on a project that seems a bit daunting to someone that's quite new to Flex 3 and the Flex Builder 3. I'm trying to create a Build Your Jacket app that will allow the user to create a "Letterman Jacket" with logos and text of their choice ( something a bit similar to Spreadshirt.com ).

At the moment I'm trying to work out how to have 2 Panels communicate with each other.

So say for example:
In Panel B I have a Text field where someone can type one line of text. When they type into the field, I'd like it to appear in Panel A and allow the user to manipulate that in Panel A.

If someone has an example of this in Flex 3 or AS3 form, then that would be great! But if not, then I'm really looking for some direction on things I can look up and focus on in order to accomplish this.


Thanks guys.

Peter Cowling
09-25-2008, 08:33 PM
Hello,

<mx:TextInput id="a" editable="true" text="insert text here" width="200" x="0" />

<mx:TextArea id="b" editable="true" text="{a.text}" width="200" x="200" />

Exemplars Gallery (http://www.exemplars-gallery.com)