Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 04-30-2004, 08:39 AM   #1
Oggie
Registered User
 
Join Date: Mar 2004
Posts: 31
Send a message via AIM to Oggie
Default Binding AS generated data to a component

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

Last edited by Oggie; 04-30-2004 at 08:39 AM. Reason: Mispelling
Oggie is offline   Reply With Quote
Old 04-30-2004, 10:46 AM   #2
annexion
I make out with chicks
 
Join Date: Oct 2002
Location: NYC
Posts: 1,586
Default

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);
__________________
www.perpetuated.com
annexion is offline   Reply With Quote
Old 04-30-2004, 12:28 PM   #3
Oggie
Registered User
 
Join Date: Mar 2004
Posts: 31
Send a message via AIM to Oggie
Default Could I show you an example of what I have

Quote:
Originally Posted by annexion
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
Oggie is offline   Reply With Quote
Old 04-30-2004, 01:03 PM   #4
annexion
I make out with chicks
 
Join Date: Oct 2002
Location: NYC
Posts: 1,586
Default

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/...atabinding.php
__________________
www.perpetuated.com
annexion is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:16 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.