| |||||||
Du magst keine Werbung? Wir auch nicht!
Einfach registrieren und die Werbung ist weg. Diese Nachricht sehen nur nicht registrierte Nutzer.
![]() |
| | LinkBack | Themen-Optionen | Ansicht |
| | #1 (permalink) |
| GoToPlay Registriert seit: Apr 2002 Ort: 31...
Beiträge: 106
|
Abend! hab eine kleine Frage: kann man einem leeren Array gleich x Elemente zufügen oder ist es nur Schritt für Schritt mit Array.push möglich? Danke
__________________ Krieg ist Mist! Krieg dem Krieg! |
| | |
| | #4 (permalink) |
| nerdig working Registriert seit: Jul 2001 Ort: Hamburg
Beiträge: 5.832
|
öhhhm. wie wärs mal mit F1? Availability Flash Player 5. Usage myArray.push(value,...) Parameters value One or more values to append to the array. Returns The length of the new array. Description Method; adds one or more elements to the end of an array and returns the array's?new length. Example The following example creates the array myPets with two elements, cat and dog. The second line adds two elements to the array. After the push method is called, the variable pushed contains four elements. Because the push method returns the new length of the array, the trace action in the last line sends the new length of myPets (4) to the Output window: myPets = ["cat", "dog"]; pushed = myPets.push("bird", "fish"); trace(pushed); ActionScript:
__________________ beat it | shake it | fish it | just pudding | love-o-meter flashforum sidebar installieren Geändert von michael (06-08-2003 um 22:07 Uhr) |
| | |
![]() |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | |
| |