ERLEDIGT
NEIN
NEIN
ANTWORTEN
1
1
ZUGRIFFE
1447
1447
EMPFEHLEN
-
07.11.08 19:11 #1
Hoi,
hab hier nen kleines Teil welches ich nicht so zu laufen bekomm wie ich will. Problem wird im Code mit Komentaren auf Zeile 19 erläutert:
Code xml:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundGradientAlphas="[1.0, 1.0]" backgroundGradientColors="[#000000, #000000]"> <mx:Script> <![CDATA[ import mx.collections.ArrayCollection; [Bindable] public var subjects:ArrayCollection = new ArrayCollection( [ {label:"Bitte auswählen...", data:0}, {label:"Subject_01", data:1}, {label:"Subject_02", data:2} ]); import flash.events.Event; // Event handler function to Reset the Panel private function resetPanel(event:Event):void { emailAdress.text = ""; Subject.data:0; //Ich weis hier nicht wie ich die ComboBox auf "Bitte auswählen..." also auf data:0 setzen soll Disclaimer.selected = false; } ]]> </mx:Script> <mx:Panel width="600" height="177" layout="absolute" horizontalCenter="0" title="MailAdressDumper V 0.1_predev" color="#E9C638" fontSize="12" cornerRadius="11" alpha="1.0" verticalCenter="0" backgroundColor="#939393"> <mx:TextInput y="8" right="10" width="462" id="emailAdress" color="#000000"/> <mx:ComboBox y="40" right="10" width="462" id="Subject" color="#000000" dataProvider="{subjects}"></mx:ComboBox> <mx:CheckBox x="108" y="72" id="Disclaimer" color="#000000"/> <mx:Label y="10" text="eMail-Adress:" left="10" color="#000000"/> <mx:Label x="10" y="43" text="Subject:" color="#000000"/> <mx:LinkButton x="130" y="70" label="Disclaimer" textAlign="left" color="#000000"/> <mx:Button x="498" y="102" label="Submit" color="#000000"/> <mx:Button x="108" y="102" label="Reset" color="#000000" click="resetPanel(event);"/> </mx:Panel> </mx:Application>
Hoffe ihr könnt mir helfen.
Gruss FingaGeändert von FingerSkill (08.11.08 um 08:19 Uhr)
Each-one-Teach-one******
Beste Freunde kann man nicht kaufen: LINUX******
-
08.11.08 08:22 #2
Hoi,
hab den Fehler gefunden poste nochmal den funktionierenden Code:
Code xml:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundGradientAlphas="[1.0, 1.0]" backgroundGradientColors="[#000000, #000000]"> <mx:Script> <![CDATA[ import mx.collections.ArrayCollection; import flash.events.Event; import mx.controls.Alert; [Bindable] // Array which contains the subjects public var subjects:ArrayCollection = new ArrayCollection( [ {label:"Bitte auswählen...", data:0}, {label:"Subject_01", data:1}, {label:"Subject_02", data:2} ]); // Event handler function to Reset the Panel private function resetPanel(event:Event):void { emailAdress.text = ""; Subject.selectedIndex = 0; Disclaimer.selected = false; } ]]> </mx:Script> <mx:Panel width="600" height="177" layout="absolute" horizontalCenter="0" title="MailAdressDumper V 0.1_predev" color="#E9C638" fontSize="12" cornerRadius="11" alpha="1.0" verticalCenter="0" backgroundColor="#939393"> <mx:TextInput y="8" right="10" width="462" id="emailAdress" color="#000000"/> <mx:ComboBox y="40" right="10" width="462" id="Subject" color="#000000" dataProvider="{subjects}"></mx:ComboBox> <mx:CheckBox x="108" y="72" id="Disclaimer" color="#000000"/> <mx:Label y="10" text="eMail-Adress:" left="10" color="#000000"/> <mx:Label x="10" y="43" text="Subject:" color="#000000"/> <mx:LinkButton x="130" y="70" label="Disclaimer" textAlign="left" color="#000000"/> <mx:Button x="498" y="102" label="Submit" color="#000000" click="Alert.show('Test!');"/> <mx:Button x="108" y="102" label="Reset" color="#000000" click="resetPanel(event);"/> </mx:Panel> </mx:Application>
Each-one-Teach-one******
Beste Freunde kann man nicht kaufen: LINUX******
Ähnliche Themen
-
Submit / Reset Button gestalten
Von Sprint im Forum CSSAntworten: 10Letzter Beitrag: 14.03.10, 16:01 -
Reset Button funktioniert nicht
Von Beginnerin im Forum .NET Web und KommunikationAntworten: 4Letzter Beitrag: 03.12.08, 09:05 -
Bild als reset-Button
Von non4me im Forum HTML & XHTMLAntworten: 3Letzter Beitrag: 11.03.07, 13:40 -
Image-Button als Reset-Button?
Von unrealzero_php im Forum Javascript & AjaxAntworten: 4Letzter Beitrag: 12.01.07, 18:35 -
reset Button Bug
Von LoMo im Forum PHPAntworten: 3Letzter Beitrag: 01.04.05, 11:50





Zitieren
Login





