PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Graphisme & Infographie > macromedia.flash > How can I select an item from a list component with aseperate button
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
How can I select an item from a list component with aseperate button

Réponse
 
LinkBack Outils de la discussion
Vieux 26/06/2008, 20h25   #1
rxbanditboy1
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut How can I select an item from a list component with aseperate button

Hello Everyone,
This is my first post here. I am trying to figure out how to select an item
within a list component with a button. This button is calling a function. I
have searched for the past 3 hours online and I can't find anything about it. I
thought perhaps I could set the selectedItem parameter, but that is read only,
and I believe it returns an object reference rather than something like a
number so even if i could set it, it would be pointless. I also found a get
focus button, thought that may lead me somewhere, but I think that is for
setting which component has focus currently as far as typing in and things like
that. I am lost.

Basically I am looking for a way to type this myList.setSelected(5); where 5
is the 5th item in the list.

Any would be much appreciated.

  Réponse avec citation
Vieux 26/06/2008, 20h32   #2
rxbanditboy1
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How can I select an item from a list component witha seperate button

:embarrassment;

Never mind found it. It is the property called selectedIndex and it is writable
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 02h34.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09445 seconds with 10 queries