FingerSkill
Erfahrenes Mitglied
Hoi,
habe folgendes Problem das ich irgendwie keine Arrays in meine zwei ComboBoxen bekomme :'(
Ich bekomm das irgendwie nicht hin.
Gruss Finga
habe folgendes Problem das ich irgendwie keine Arrays in meine zwei ComboBoxen bekomme :'(
XML:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" currentState="ExecutiveSummary" backgroundGradientAlphas="[1.0, 1.0]" backgroundGradientColors="[#313131, #000000]" themeColor="#E0B122">
// Hier sollte das Array Deklariert werden
<mx:ArrayCollection id="subjects">
<mx:Object label="Please Choose..." data="1" />
<mx:Object label="Option one" data="2" />
<mx:Object label="Option two" data="3" />
</mx:ArrayCollection>
<mx:states>
<mx:State name="ExecutiveSummary">
<mx:AddChild relativeTo="{MailAdressDumper}" position="lastChild">
<mx:Canvas x="10" y="91.85" width="560" height="349.15" horizontalScrollPolicy="off">
<mx:Label x="0" y="0" text="And that’s how it works:" textDecoration="underline"/>
<mx:Text x="10" y="26" text="" width="540" height="254"/>
<mx:Label x="0" y="294" text=":" fontWeight="normal" textDecoration="underline"/>
<mx:Text x="10" y="320" text="" width="540" height="115"/>
<mx:Label x="0" y="449" text="Special features and future sound:" fontWeight="normal" textDecoration="underline"/>
<mx:Text x="10" y="475" text="" width="540" height="115"/>
<mx:Label x="0" y="604" text="Status quo:" fontWeight="normal" textDecoration="underline"/>
<mx:Text x="10" y="630" text="" width="540" height="115"/>
</mx:Canvas>
</mx:AddChild>
<mx:AddChild relativeTo="{MailAdressDumper}" position="lastChild">
<mx:Label x="10" y="10" text="Executive Summary" fontSize="14" fontWeight="bold" color="#000000"/>
</mx:AddChild>
<mx:AddChild relativeTo="{MailAdressDumper}" position="lastChild">
<mx:Text x="10" y="33.95" text="Linoq is an online trading tool using the power of wom (word
of mouth) by letting the marketers (community) participate in marketing expenses." width="428.4" fontSize="12"/>
</mx:AddChild>
<mx:AddChild relativeTo="{MailAdressDumper}" position="lastChild">
<mx:LinkButton y="458" label="Do you want to give feedback?" horizontalCenter="-144" click="currentState='SendMailMSG'"/>
</mx:AddChild>
<mx:AddChild relativeTo="{MailAdressDumper}" position="lastChild">
<mx:LinkButton y="458" label="Do you want to be informed about news?" horizontalCenter="115" click="currentState='SendMailNoMSG'"/>
</mx:AddChild>
<mx:SetProperty target="{MailAdressDumper}" name="title" value="Mail Adress Dumper V 0.1_dev"/>
<mx:SetStyle target="{MailAdressDumper}" name="fontSize" value="10"/>
<mx:SetProperty target="{image1}" name="x" value="437.4"/>
</mx:State>
<mx:State name="SendMailMSG">
<mx:AddChild relativeTo="{MailAdressDumper}" position="lastChild">
<mx:Label x="10" y="118" text="Email-Address:"/>
</mx:AddChild>
<mx:AddChild relativeTo="{MailAdressDumper}" position="lastChild">
<mx:TextInput x="171" y="116" width="399" id="email1"/>
</mx:AddChild>
<mx:AddChild relativeTo="{MailAdressDumper}" position="lastChild">
<mx:ComboBox x="171" y="146" width="399" id="subject1" dataProvider="{subjects}"></mx:ComboBox>// Hier sollte das Array übergeben werden
</mx:AddChild>
<mx:AddChild relativeTo="{MailAdressDumper}" position="lastChild">
<mx:Label x="10" y="148" text="Kind of interest:"/>
</mx:AddChild>
<mx:AddChild relativeTo="{MailAdressDumper}" position="lastChild">
<mx:TextInput x="10" y="174" height="276" width="560" id="msg"/>
</mx:AddChild>
<mx:AddChild relativeTo="{MailAdressDumper}" position="lastChild">
<mx:Button y="458" label="Reset" horizontalCenter="-130" id="reset1"/>
</mx:AddChild>
<mx:AddChild relativeTo="{MailAdressDumper}" position="lastChild">
<mx:Button y="458" label="Submit" horizontalCenter="130" id="submit1"/>
</mx:AddChild>
<mx:SetProperty target="{MailAdressDumper}" name="title" value="Mail Adress Dumper V 0.1_dev"/>
</mx:State>
<mx:State name="SendMailNoMSG">
<mx:SetProperty target="{MailAdressDumper}" name="height" value="240"/>
<mx:AddChild relativeTo="{MailAdressDumper}" position="lastChild">
<mx:Button y="168" label="Reset" horizontalCenter="-133" id="reset2"/>
</mx:AddChild>
<mx:AddChild relativeTo="{MailAdressDumper}" position="lastChild">
<mx:Button y="168" label="Subject" horizontalCenter="127" id="subject2"/>
</mx:AddChild>
<mx:AddChild relativeTo="{MailAdressDumper}" position="lastChild">
<mx:Label x="10" y="110" text="Email-Address:"/>
</mx:AddChild>
<mx:AddChild relativeTo="{MailAdressDumper}" position="lastChild">
<mx:Label x="10" y="140" text="Kind of interest:"/>
</mx:AddChild>
<mx:AddChild relativeTo="{MailAdressDumper}" position="lastChild">
<mx:TextInput x="171" y="108" width="399" id="email2"/>
</mx:AddChild>
<mx:AddChild relativeTo="{MailAdressDumper}" position="lastChild">
<mx:ComboBox x="171" y="138" width="399" id="subject2" dataProvider="{subjects}"></mx:ComboBox> // und hier sollte das Array übergeben werden
</mx:AddChild>
</mx:State>
</mx:states>
<mx:transitions>
<mx:Transition fromState="*" toState="*">
<mx:Parallel>
<mx:Sequence>
<mx:Blur blurXFrom="0" blurXTo="20" duration="100" targets="{[MailAdressDumper]}" />
<mx:Blur blurXFrom="20" blurXTo="0" duration="100" targets="{[MailAdressDumper]}" />
</mx:Sequence>
<mx:Move duration="100" targets="{[MailAdressDumper]}"/>
</mx:Parallel>
</mx:Transition>
</mx:transitions>
<mx:Panel width="600" height="530" layout="absolute" horizontalCenter="0" verticalCenter="0" id="MailAdressDumper" title="Mail Adress Dumper V 0.1_dev" cornerRadius="10" themeColor="#E0B122">
<mx:Image x="437.4" y="10" source="Logo.png" width="123.600006" height="73.89918" id="image1"/>
</mx:Panel>
</mx:Application>
Ich bekomm das irgendwie nicht hin.
Gruss Finga
Zuletzt bearbeitet von einem Moderator: