At 18.46 +1000 03-01-22, universal2001 wrote:
Thank you very much for the reply (Brad)

yes, it helps.
Actually I'm trying to make like a language learning presentation where
students can hear the pronunciation of words listed.

Now I just have to familiarize myself with this OOP - new(type,castLib)
because I'm relatively new to this area.
So..., I can create a text member and I only need to create it once
(although I will use it again and again - am I correct?)

Then I can put the content of the text member by retriving info from the
PropertyList,
now...I'm not quite sure with the explaination below:
 Assign to a sprite location via puppetsprite(channel,true/false)
 eg.myPuppet=puppetsprite 100, 1
 myPuppet.member=myText
 If you have a lot of words that yiou want to put on screen then use a
repeat
 loop and set the loc of the puppet sprite
 You can reuse the same member though by simply referencing the
 member("myText").text=some value
would you mind explaining alittle bit more, please?

Hi Uni, Andreas intercepting here.

Members are resources that you can use on the stage if you put them in sprites. What he means is: Once you have put the text in a new member, you probably want to put the member on stage. To do this you need to

-- Create a member
tmpMem = new(#text)

-- create a sprite
puppetSprite(1, 1)

-- give the sprite a location
sprite(1).loc = point(200, 200)

-- and give it a member
sprite(1).member = tmpMem

Brad's last paragraph is dealing with the question: Do you want a) several text members on stage at the same time? If so, you need to create one text member for each text in the prop list and assign them to individual sprites ...or b) just one text on stage at a time. In that case you would only use one member and change the text that's inside.

Now, what Brad (and I) assume is that you're going to create the mems & sprites on-the-fly each time you run the app. Maybe you only intend to create the members once? If so, you won't have to create the sprites on the fly. Just create the mems, put them on stage (they become sprites) and save.


HTH
-A.


[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]

Reply via email to