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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

text field sprites and Lingo

Status
Not open for further replies.

twistedlogic

Technical User
Jan 10, 2002
35
AU
Hi all,
I know how to make a text field MEMBER change its content using lingo. I'm wondering if there is a way to use a single text field member, and have each sprite/instance of that member display different text. ie I would like to have a "caption" text field under photos, and I would like it to display the name of the photo above it. Is there a way to use a single textfield member to do this, or do I have to create an individual member for each caption.

thanks in advance
 
It seems you are producing a gallery-like navigation director. And every frame has a different photo. So simplified on your score you have you button sprites, your photo and one text field member called "x". Probably the easiest way to do this is to write a custom frame script for every frame where you have a photo.
So write this code in a frame script

on prepareFrame
put "c" into field member "x"
end

on exitFrame
play the frame
end

c is the description/name of your photo.

Then copy the frame script cast member and put each additional one in the subsequent frames while changing c to match the photo on each frame.
 
actually, I have about 30 thumbnails per page, and I would like to use instances of a single field cast member under all of the sprites, and have each one displaying a different name. The above method would be fine if it was only one per page. Any other suggestions?

thanks in advance

 
No suggestions for that. I believe you will have to go with
separate field text members for each one.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top