Visualizzazione dei risultati da 1 a 6 su 6
  1. #1

    cambiamento valori all'interno dei componenti

    problema con cambiamento valori all'interno dei componenti, nel mio caso una flist.
    1 -come posso far cambiare le voci dall'elenco in modo dinamico?
    2 -si può fare?

    io ho provato cosi:
    "elenco" è il nome dato alla flist

    onClipEvent (enterFrame) {
    _root.elenco.getItemAt(1) = _root.variabile;
    }
    non funziona perchèèèèèèè

  2. #2
    1. il metodo per cambiare il valore è casomai replaceItemAt
    2. invece di un enterFrame inutile, usa l'evento watch

  3. #3
    non ho mai usato questo comando (watch)
    a che serve?

  4. #4
    ho digitato

    _root.elenco.replaceItemAt(1) = _root.variabile1;

    ma mi dice che alla sinistra dell'operatore deve esserci una variabile o una proprietà

    che significa?

  5. #5
    la guida non la leggi mai?


    Usage

    myListBox.replaceItemAt(index, label [,data])

    Parameters

    index An integer specifying the position of a list item.

    label A string specifying a new label for the list item.

    data The new value to associate with the list item. This parameter is optional; if you don't specify it, any data currently associated with the item remains in place.

    Returns

    Nothing.

    Description

    Method; updates the item at the specified index with the specified label and data. If the item at the specified index has an associated data value and you do not specify a value for the Data parameter, the data value of the list item is not changed.

    The List Box component uses a zero-based index, where the item at index 0 is displayed at the top of the list.

    Example

    The following code updates the fifth item in the list box Favorites with the new label Lucky and?new value Cat. If the data value Cat were not specified, and the data associated with the fifth list item were Dog, then the data value for Lucky would be Dog (which would be wrong because she is a cat).

    Favorites.replaceItemAt(4, "Lucky", "Cat");

  6. #6
    grazie dell'aiuto
    sei stato illuminante!!!

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.