View Single Post
  #4  
Old 11-29-2009, 04:31 PM
Codein Codein is offline
jwd
Codein's Avatar
Join Date: Oct 2005
Location: Greater Manchester
Posts: 2,423
Codein has a spectacular aura aboutCodein has a spectacular aura about
Send a message via AIM to Codein Send a message via MSN to Codein
Quote:
Originally Posted by OiRodgar View Post
Okay, thanks. But when I click on "Bombe", I want that in the descriptionfield the description for the bomb appears. How can I do that?
PHP Code:
function Shop_TextList1.onSelectentryidentrytextentryindex ) {
  switch ( 
entrytext ) {
    case 
"Bombe":
       
temp.description "put descriptions here";
       break;
    
    case 
"Whatever":
      
temp.description "whatever";
      break;
  }

  
Shop_MultiLine1.setTexttemp.description );      

Try something like that but I'd really put all descriptions in a database or something and call that to get the information, if you want it to be used countless times throughout your project.
Reply With Quote