tutorials.de Buch-Aktion 02/2012
ERLEDIGT
NEIN
ANTWORTEN
1
ZUGRIFFE
3202
EMPFEHLEN
  • An Twitter übertragen
  • An Facebook übertragen
AUF DIESES THEMA
ANTWORTEN
  1. #1
    Avatar von FingerSkill
    FingerSkill FingerSkill ist offline Mitglied Brokat
    Registriert seit
    May 2004
    Ort
    Salzburg
    Beiträge
    311
    Hoi,

    habe folgendes Problem das ich irgendwie keine Arrays in meine zwei ComboBoxen bekomme :'(

    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
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    
    <?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&#xa;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
     
    Each-one-Teach-one******

    Beste Freunde kann man nicht kaufen: LINUX******

  2. #2
    X9kl3m2 X9kl3m2 ist offline Mitglied
    Registriert seit
    Oct 2002
    Beiträge
    19
    Hallo,

    setzt mal die Eigenschaft LabelField(s)


    (hab gerade kein Flex Umgebung hier)
     

Ähnliche Themen

  1. Flex3 AS3 Problem - DataGrid mit XML als DataProvider
    Von redneb im Forum Adobe Flex & AIR
    Antworten: 1
    Letzter Beitrag: 21.02.08, 15:43
  2. GoogleMaps mit Variablen füttern
    Von BIAsTeR im Forum Javascript & Ajax
    Antworten: 0
    Letzter Beitrag: 22.03.07, 15:09
  3. Shell mit Textbox füttern
    Von solae im Forum Visual Basic 6.0
    Antworten: 7
    Letzter Beitrag: 14.03.07, 17:37
  4. Suchmaschienen füttern mir unsichtbarem Div?
    Von Layna im Forum HTML & XHTML
    Antworten: 3
    Letzter Beitrag: 12.10.04, 11:58
  5. Smarty mit Variablen füttern
    Von NomadSoul im Forum PHP
    Antworten: 4
    Letzter Beitrag: 08.09.03, 19:09