PDA

View Full Version : Binding AS generated data to a component


Oggie
04-30-2004, 08:39 AM
Hi. I have a movie set up that when it is clicked on it generates data to a dynamic text box. I want to bind this data to text imput componant. From what I can see I would first have to send this data to a DataHolder componant. The bind it to a TextImput Componant. Is this corect? I cant get it to work. Could some one hep me? This is a very simple Idea there has to be an answer to.

Thanks Oggie

annexion
04-30-2004, 10:46 AM
import mx.data.binding.*;
var src = new EndPoint();
src.component = textfield1;
src.property = "text";
src.event = "change";
var dest = new EndPoint();
dest.component = textfield2;
dest.property = "text";
new Binding(src, dest);

Oggie
04-30-2004, 12:28 PM
import mx.data.binding.*;
var src = new EndPoint();
src.component = textfield1;
src.property = "text";
src.event = "change";
var dest = new EndPoint();
dest.component = textfield2;
dest.property = "text";
new Binding(src, dest);


Could I show you an example of what I have so you can better understand where I am trying to go. The script you have above seems to be a way to bind to TextInput components via written script vs. databinding with the component inspector. I am fairly new at this so maybe I am misunderstanding the script.


Oggie

annexion
04-30-2004, 01:03 PM
I don't have an immense amount of time to guide the project for you. However, you could check out the following databinding tutorial over at Ultrashock.com.

http://www.ultrashock.com/tutorials/flashmx2004/databinding.php