Alice Community  

Go Back   Alice Community > Alice 3 > How Do I?

Reply
 
Thread Tools Display Modes
How can I have an object name from an array?
Old
humpbacks1962
Junior Member
 
Status: Offline
Posts: 1
Join Date: Sep 2021
Location: USA
Question How can I have an object name from an array? - 10-05-2021, 02:13 PM

I have an object that needs to call out items disappearing from a list. I am setting their opacity to 0, and I should call out what will disappear in the same order it will disappear.
How can I do this?
   
Reply With Quote
An object name in an array
Old
djslater107
Administrator
 
Status: Offline
Posts: 179
Join Date: Jan 2007
Default An object name in an array - 10-06-2021, 08:42 AM

If I understand your question, ,you know how to set the opacity of the disappearing object to 0, as in

<item>.setOPacity(0)

What happens when you have the naming object say <item>, as in

<namingObject>.say("object: " + <item>);

You probably need to have some sort of String (like "object: " to add the disappearing object name).

Let me know if this is not quite your question, at don@alice.org


Don Slater
Alice Team
Carnegie Mellon University
   
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump



Copyright ©2021, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.