Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Components linkage

Status
Not open for further replies.

chieftan

MIS
Dec 18, 2002
292
GB
This may have been answered before but I have a problem with TextInput.

I am creating a Username and Password entry and both are set as TextInput boxes but I do not appear to be able to change the linkage.

How do you use more than 1 instance of a textInput box?

I can program this in PHP but am unsure how to put this into Flash?

Thanks
 
not sure i understand the question but different input boxes must have different instance names
 
Apologies, best to rephrase the question....

I have 2 input boxes -

1 = Username
2 = Password

The instance name is different for each one as shown below:-

1 = username - instance = username_input
2 = password - instance = password_input

When I compile this to view I receive an error that states the component linkage must be different.
When viewing in the library, I can right click the instance and then click on linkages. The problem here is that although I can see what the linkage is called I cannot change it as it is greyed out, and it does not matter what I click on the page it still remains greyed out, so I end up with 2 textinput linkage names and it wont work.

Have I missed something to cause this to be greyed out and unchageable?

Thanks
 
Components' linkage names are not to be altered, therefore they are greyed out - they are actually class identifiers, not simple linkage names as in MovieClips.

I have this feeling you have two TextInput components (renamed to two different names) in the Library. That's not the way to do it. No matter how many TextInput component instances on Stage, you only need (and allowed) to have one in the Library - TextInput components on Stage are all "instances" of one component.

Kenneth Kawamoto
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top