Zurück   Flashforum > Flex und AIR > Flex allgemein

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 28-04-2010, 10:36   #1 (permalink)
Neuer User
 
Registriert seit: Apr 2003
Beiträge: 12
Flex: Custom Panel - Mehrfachauswahl anlegen

Hallo,

Ich benötige "Selections" um in meinem Custom-Panel mehrere Sprachen auswählen zu können (DE, EN, FR…). Hier soll es möglich sein, eine oder mehrere Sprachen anzuklicken und damit an Namespace: "Iptc4xmpCore" "dc:IntellectualGenre" zu übergeben. Bekomme das aber nicht hin. Dazu beiße ich mir die Zähne aus, eine "Select All" Funktion für die Sprachfelder anzulegen.

Kann mir hierbei jemand Hilfestellung geben?

Vielen Dank
Markus
Wild Orange ist offline   Mit Zitat antworten
Alt 28-04-2010, 11:01   #2 (permalink)
Perverted Hermit
 
Benutzerbild von Omega Psi
 
Registriert seit: Mar 2004
Ort: Delmenhorst
Beiträge: 12.146
Was hast du denn schon an Code?
Omega Psi ist offline   Mit Zitat antworten
Alt 28-04-2010, 12:20   #3 (permalink)
Neuer User
 
Registriert seit: Apr 2003
Beiträge: 12
Entweder der klägliche Versuch das über Checkboxen abzubilden:

Code:
<mx:VBox height="102" width="100%" verticalGap="8" id="langBox" visible="true">
			<mx:HBox width="100%" height="26" horizontalGap="15">
				<mx:FormItem horizontalAlign="left" width="0">
				</mx:FormItem>
				<mx:FormItem label="DE" width="6%">
					<mx:CheckBox label="" id="langDE" enabled="true"/>
				</mx:FormItem>
				<mx:FormItem label="EN" width="6%">
					<mx:CheckBox label="" id="langEN"/>
				</mx:FormItem>
				<mx:FormItem label="FR" width="6%">
					<mx:CheckBox label=""/>
				</mx:FormItem>
				<mx:FormItem label="IT" width="6%">
					<mx:CheckBox label=""/>
				</mx:FormItem>
				<mx:FormItem label="ES" width="6%">
					<mx:CheckBox label=""/>
				</mx:FormItem>
				<mx:FormItem label="PT" width="6%">
					<mx:CheckBox label=""/>
				</mx:FormItem>
				<mx:FormItem label="NB" width="6%">
					<mx:CheckBox label=""/>
				</mx:FormItem>
				<mx:FormItem label="FI" width="6%">
					<mx:CheckBox label=""/>
				</mx:FormItem>
				<mx:FormItem label="DA" width="6%">
					<mx:CheckBox label=""/>
				</mx:FormItem>
				<mx:FormItem label="DA" width="6%">
					<mx:CheckBox label=""/>
				</mx:FormItem>
				<mx:FormItem label="DA" width="6%">
					<mx:CheckBox label=""/>
				</mx:FormItem>
				<mx:FormItem label="DA" width="6%">
					<mx:CheckBox label="" />
				</mx:FormItem>
				<mx:FormItem label="DA" width="6%">
					<mx:CheckBox label=""/>
				</mx:FormItem>
				<mx:FormItem label="DA" width="6%">
					<mx:CheckBox label=""/>
				</mx:FormItem>
				<mx:FormItem label="DA" width="6%">
					<mx:CheckBox label=""/>
				</mx:FormItem>
				<mx:FormItem label="DA" width="6%">
					<mx:CheckBox label=""/>
				</mx:FormItem>
				<mx:FormItem label="DA" width="6%">
					<mx:CheckBox label=""/>
				</mx:FormItem>
				<mx:FormItem label="DA" width="6%">
					<mx:CheckBox label=""/>
				</mx:FormItem>
			</mx:HBox>
			<mx:HBox width="100%" height="26" horizontalGap="15">
				<mx:FormItem horizontalAlign="left" width="0">
				</mx:FormItem>
				<mx:FormItem label="DE" width="6%">
					<mx:CheckBox label=""/>
				</mx:FormItem>
				<mx:FormItem label="EN" width="6%">
					<mx:CheckBox label=""/>
				</mx:FormItem>
				<mx:FormItem label="FR" width="6%">
					<mx:CheckBox label=""/>
				</mx:FormItem>
				<mx:FormItem label="IT" width="6%">
					<mx:CheckBox label=""/>
				</mx:FormItem>
				<mx:FormItem label="ES" width="6%">
					<mx:CheckBox label=""/>
				</mx:FormItem>
				<mx:FormItem label="PT" width="6%">
					<mx:CheckBox label=""/>
				</mx:FormItem>
				<mx:FormItem label="NB" width="6%">
					<mx:CheckBox label=""/>
				</mx:FormItem>
				<mx:FormItem label="FI" width="6%">
					<mx:CheckBox label=""/>
				</mx:FormItem>
				<mx:FormItem label="DA" width="6%">
					<mx:CheckBox label=""/>
				</mx:FormItem>
				<mx:FormItem label="DA" width="6%">
					<mx:CheckBox label=""/>
				</mx:FormItem>
				<mx:FormItem label="DA" width="6%">
					<mx:CheckBox label=""/>
				</mx:FormItem>
				<mx:FormItem label="DA" width="6%">
					<mx:CheckBox label="" />
				</mx:FormItem>
				<mx:FormItem label="DA" width="6%">
					<mx:CheckBox label=""/>
				</mx:FormItem>
				<mx:FormItem label="DA" width="6%">
					<mx:CheckBox label=""/>
				</mx:FormItem>
				<mx:FormItem label="DA" width="6%">
					<mx:CheckBox label=""/>
				</mx:FormItem>
				<mx:FormItem label="DA" width="6%">
					<mx:CheckBox label=""/>
				</mx:FormItem>
				<mx:FormItem label="DA" width="6%">
					<mx:CheckBox label=""/>
				</mx:FormItem>
				<mx:FormItem label="DA" width="6%">
					<mx:CheckBox label=""/>
				</mx:FormItem>
			</mx:HBox>
			<mx:Button label="Select All" selectedField="langBox"/>
		</mx:VBox>
Dazu habe ich noch einmal im www gesucht und einen Beispiel-Code zu einer Multiselection gefunden, welche ich sehr smart fände:

Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2007/11/21/allowing-multiple-selected-items-in-flex-list-and-datagrid-controls/ -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="horizontal"
        verticalAlign="middle"
        backgroundColor="white">

    <mx:Array id="arr">
        <mx:Object col1="One.1" col2="One.2" col3="One.3" />
        <mx:Object col1="Two.1" col2="Two.2" col3="Two.3" />
        <mx:Object col1="Three.1" col2="Three.2" col3="Three.3" />
        <mx:Object col1="Four.1" col2="Four.2" col3="Four.3" />
        <mx:Object col1="Five.1" col2="Five.2" col3="Five.3" />
        <mx:Object col1="Six.1" col2="Six.2" col3="Six.3" />
        <mx:Object col1="Seven.1" col2="Seven.2" col3="Seven.3" />
        <mx:Object col1="Eight.1" col2="Eight.2" col3="Eight.3" />
    </mx:Array>

    <mx:ApplicationControlBar dock="true">
        <mx:Form styleName="plain">
            <mx:FormItem label="allowMultipleSelection:">
                <mx:CheckBox id="checkBox" selected="true" />
            </mx:FormItem>
        </mx:Form>
    </mx:ApplicationControlBar>

    <mx:List id="list"
            allowMultipleSelection="{checkBox.selected}"
            dataProvider="{arr}"
            labelField="col1"
            verticalScrollPolicy="on" />

    <mx:DataGrid id="dataGrid"
            allowMultipleSelection="{checkBox.selected}"
            dataProvider="{arr}"
            verticalScrollPolicy="on" />

</mx:Application>
Allerdings bekomme ich das einfach nicht für das Custom-Panel abgewandelt, da mir <mx:Array> als nicht gültiges Tag im Custom Panel angezeigt wird. Ich bekomme es nun nicht hin, dass meine Liste im a) im Auswahlkasten angezeigt wird und b) dass es in "IntellectualGenre" ausgelesen wird.

Die Informationen mit Beispielen zu den Custom Panels ist für mich da leider etwas dürftig.

Danke für Tipps.
Gruß
Markus
Wild Orange ist offline   Mit Zitat antworten
Alt 28-04-2010, 13:19   #4 (permalink)
Perverted Hermit
 
Benutzerbild von Omega Psi
 
Registriert seit: Mar 2004
Ort: Delmenhorst
Beiträge: 12.146
Sorry, ich verstehe die Problematik nicht. Du willst aus einer Menge von Elementen eine Untermenge auswählen?
Omega Psi ist offline   Mit Zitat antworten
Alt 28-04-2010, 19:41   #5 (permalink)
Neuer User
 
Registriert seit: Apr 2003
Beiträge: 12
In meinem Custom-Panel sollen Informationen zu Sprachen gepflegt werden. Es gibt insgesamt eine Auswahl von bis zu 27 Sprachen in jeder erdenklichen Kombination (von einer Sprache bis alle Sprachen). Nun würde ich gerne entweder die Sprachauswahl über Checkboxen machen oder mit einer Liste mit der Möglichkeit eine "Mulitiple Selection" anzulegen. Hier finde ich das Beispiel

Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2007/11/21/allowing-multiple-selected-items-in-flex-list-and-datagrid-controls/ -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="horizontal"
        verticalAlign="middle"
        backgroundColor="white">

    <mx:Array id="arr">
        <mx:Object col1="One.1" col2="One.2" col3="One.3" />
        <mx:Object col1="Two.1" col2="Two.2" col3="Two.3" />
        <mx:Object col1="Three.1" col2="Three.2" col3="Three.3" />
        <mx:Object col1="Four.1" col2="Four.2" col3="Four.3" />
        <mx:Object col1="Five.1" col2="Five.2" col3="Five.3" />
        <mx:Object col1="Six.1" col2="Six.2" col3="Six.3" />
        <mx:Object col1="Seven.1" col2="Seven.2" col3="Seven.3" />
        <mx:Object col1="Eight.1" col2="Eight.2" col3="Eight.3" />
    </mx:Array>

    <mx:ApplicationControlBar dock="true">
        <mx:Form styleName="plain">
            <mx:FormItem label="allowMultipleSelection:">
                <mx:CheckBox id="checkBox" selected="true" />
            </mx:FormItem>
        </mx:Form>
    </mx:ApplicationControlBar>

    <mx:List id="list"
            allowMultipleSelection="{checkBox.selected}"
            dataProvider="{arr}"
            labelField="col1"
            verticalScrollPolicy="on" />

    <mx:DataGrid id="dataGrid"
            allowMultipleSelection="{checkBox.selected}"
            dataProvider="{arr}"
            verticalScrollPolicy="on" />

</mx:Application>
sehr clever gelöst, da sehr platzsparend umzusetzen. Leider bekomme ich das Ergebnis nicht auf ein Custompanel angewendet, da mir "mx:Array" einen Fehler generiert und ich keine Ahnung habe, wie ich die Liste ansonsten im Auswahlfeld angezeigt bekomme als über das Array.

Das Ergebnis soll als String (DE, EN, FR, IT, PL, ...) in "IntellectualGenre" geschrieben werden und von hier aus über Cumulus ausgelesen und katalogisiert werden.

Hoffe, so ist es ein wenig verständlicher.

Viele Grüße und einen schönen Abend.
Markus
Wild Orange ist offline   Mit Zitat antworten
Alt 28-04-2010, 20:09   #6 (permalink)
Perverted Hermit
 
Benutzerbild von Omega Psi
 
Registriert seit: Mar 2004
Ort: Delmenhorst
Beiträge: 12.146
Sorry ich verstehe tatsächlich nur Bahnhof. Ist Cumulus eine ArrayCollection? Was für ein Fehler wird produziert? Und ich sehe kein Panel, ganz zu schweigen eine Komponente, die von Panel erbt. Ich habe mal eben ein Beispiel geschrieben, das dir vielleicht etwas helfen kann:
Code:
<?xml version="1.0"?>
<mx:Panel xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx"
          initialize="initializeHandler(event)">
  <fx:Script>
    <![CDATA[
    import mx.collections.IList;
    import mx.events.FlexEvent;
    import mx.events.ListEvent;

    private var _dataProvider:IList;

    private var _dataProviderChanged:Boolean;

    [Bindable("dataProviderChanged")]
    public function get dataProvider():IList
    {
      return _dataProvider;
    }

    public function set dataProvider(value:IList):void
    {
      if (_dataProvider == value)
      {
        return;
      }
      _dataProvider = value;
      _dataProviderChanged = true;
      invalidateProperties();
      dispatchEvent(new Event("dataProviderChanged"));
    }

    private var _selectedItems:Array;

    private var _selectedItemsChanged:Boolean;

    [Bindable("selectedItemsChanged")]
    public function get selectedItems():Array
    {
      return _selectedItems;
    }

    public function set selectedItems(value:Array):void
    {
      if (_selectedItems == value)
      {
        return;
      }
      _selectedItems = value;
      _selectedItemsChanged = true;
      invalidateProperties();
      dispatchEvent(new Event("selectedItemsChanged"));
    }

    private var _selection:String = "";

    [Bindable("selectionChanged")]
    public function get selection():String
    {
      return _selection;
    }

    protected override function commitProperties():void
    {
      super.commitProperties();

      if (_dataProviderChanged)
      {
        _dataProviderChanged = false;
        list.dataProvider = _dataProvider;
      }

      if (_selectedItemsChanged)
      {
        _selectedItemsChanged = false;
        list.selectedItems = _selectedItems;
      }
    }

    private function initializeHandler(event:FlexEvent):void
    {
      IEventDispatcher(event.target).removeEventListener(event.type, arguments.callee);

      list.addEventListener(ListEvent.CHANGE, list_changeHandler);
    }

    private function list_changeHandler(event:ListEvent):void
    {
      _selection = "";

      for each (var string:String in list.selectedItems)
      {
        _selection += string;
      }

      dispatchEvent(new Event("selectionChanged"));
    }

    ]]>
  </fx:Script>

  <mx:List id="list" />

</mx:Panel>
Omega Psi ist offline   Mit Zitat antworten
Alt 28-04-2010, 20:35   #7 (permalink)
Neuer User
 
Registriert seit: Apr 2003
Beiträge: 12
Dankeschön, ich werde es gleich ausprobieren.

War selbst auch nicht untätig. Somit habe ich zumindestens ohne Fehlermeldung meine erwartete Mehrfachauswahl hinbekommen:

Code:
<?xml version="1.0" encoding="utf-8"?>
<fi:XMPForm
		xmlns:mx="http://www.adobe.com/2006/mxml"
		xmlns:fi="com.adobe.xmp.components.*" width="100%" height="100%"
		label="LetzerVersuch" >
	<!-- Each namespace prefix that is used within an xmpPath-attribute, 
		 MUST BE registered at the top of EACH panel where it is referenced -->
	<fi:XMPNamespaces>
		<fi:XMPNamespace prefix="dc" value="http://purl.org/dc/elements/1.1/"/>
	</fi:XMPNamespaces>
	
    <mx:Script>
        <![CDATA[
            import flash.events.MouseEvent;
            import mx.controls.Alert;
            import mx.collections.ArrayCollection;
            
            private const NL:String = "\r";

            // A data provider created by using ActionScript
            [Bindable]
            private var subscriptions:ArrayCollection = 
                new ArrayCollection 
                (
                    [
                        {data:0, label:"Deutsch"},
                        {data:1, label:"Englisch"},
                        {data:2, label:"Französisch"},
                        {data:3, label:"Italienisch"} 
                    ]
                ); 

            private function submitButtonClickHandler(event:MouseEvent):void
            {
                var userDetails:String = "You submitted the following details:" + NL + NL;
                userDetails += "Subscriptions:";
                
                var selectedSubscriptionItems:Array = userSubscriptions.selectedItems;
                for ( var i:String in selectedSubscriptionItems)
                {
                    // Display the selected subscriptions, separated by commas
                    userDetails += selectedSubscriptionItems[i].label + ", ";
                }
                // Remove the last comma and space from the string we're displaying
                userDetails = userDetails.substring(0, userDetails.length-2);                 
                
                Alert.show ( userDetails );    
            }
            
        ]]>
    </mx:Script>
    
                <fi:XMPFormItem label="Subscriptions:" width="100%">
                <mx:List 
                    id="userSubscriptions" rowCount="5"
                    allowMultipleSelection="true" width="100%"
                    dataProvider="{subscriptions}"
                />
            </fi:XMPFormItem>
</fi:XMPForm>
Noch einmal ein bisschen Erklärung drumherum. Cumulus ist ein Media-Asset-Managementsystem. Dieses wird genutzt um PDF-Dateien zu katalogisieren. Leider ist die aktuelle Cumulus-Version nicht so gnädig und akzeptiert jegliche art von custom namespaces, so dass die Metadaten in bestimmte Standardfelder zum Beispiel aus dem Dublin Core namespace gefüllt werden müssen. Da das aber für den jenigen, der die Metadaten einpflegen soll, ziemlich umständlich ist, versuche ich mich an einem Custom Panel, wo die Felder mit unserer "Namenssyntax" bezeichnet sind und von Cumulus aus den Standard-Namespaces gefüllt werden kann. So wäre beispielsweise die Sprachinfo in "Intelectual Genre" zu füllen.

Was mit dem oben stehenden Code leider nicht gelöst ist, ist wie bekomme ich die angewählten Informationen nun in das "iptc4xmp:IntelectualGenre" als String (also alle ausgewählten Werte hintereinanderweg durch Leerschritt getrennt) geschrieben.
Wild Orange ist offline   Mit Zitat antworten
Alt 29-04-2010, 06:11   #8 (permalink)
Perverted Hermit
 
Benutzerbild von Omega Psi
 
Registriert seit: Mar 2004
Ort: Delmenhorst
Beiträge: 12.146
Wenn das CMS schon mit RDF arbeitet, kannst du kein XML bauen?
Omega Psi ist offline   Mit Zitat antworten
Alt 29-04-2010, 06:44   #9 (permalink)
Neuer User
 
Registriert seit: Apr 2003
Beiträge: 12
Guten Morgen,

ganz ehrlich stütze ich mich bisher auf die Adobe-Aussage, dass es mit Flex möglich ist, ohne tiefe Programmierkenntnisse ein Custom-Panel zu bauen. Meine XML-Kenntnisse sind bisher auch ziemlich rudimentär und ganz ehrlich gesagt, wüßte ich nicht, wo ich anfangen soll. Das ist bei Flex auch so ein wenig mein Problem, denn es gibt so viel Informationen, die ich aber als Anfänger nicht auf das XMP-Panel übertragen bekomme. Ich glaube es ist auch ziemlich "suboptimal" mit einem Sonderprojekt zu beginnen ;-) Aber ich denke, man wächst mit seinen Aufgaben…

Bei RDF habe ich bisher nur verstanden, dass es optimiert wurde, um von Computer-Systemen gelesen werden zu können. Das ist natürlich das Endziel. Die Daten sollen jedoch "First-Source" in InDesign erfasst werden (möglichst alle relevanten Daten auf einer Seite zusammen), in der Original-Datei für spätere Bearbeitungen nachgehalten werden können.

Angehängt mal das komplette Panel im aktuellen Stand. Die ganzen Auswahlen sind noch nicht mit den xmpPath verknüpft.

Wie bringe ich denn das Panel dazu, die Auswahl des Users zu sammeln und als String an ein bestimmtes XMP-Feld zu übergeben und die Auswahl (also die angeklickten Listenpunkte) beim nächsten Aufruf des Panels wieder anzuzeigen?

Code:
<?xml version="1.0" encoding="utf-8"?>
<fi:XMPForm
		xmlns:mx="http://www.adobe.com/2006/mxml"
		xmlns:fi="com.adobe.xmp.components.*" width="100%" height="100%"
		xmlns:Iptc4xmpCore ="http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/"
		label="XMP-Custom Panel" 
		initialize="ds.send()"
		>
	<!-- Each namespace prefix that is used within an xmpPath-attribute, 
		 MUST BE registered at the top of EACH panel where it is referenced -->
	<fi:XMPNamespaces>
		<fi:XMPNamespace prefix="dc" value="http://purl.org/dc/elements/1.1/"/>
	</fi:XMPNamespaces>
	
		<mx:HTTPService id="ds" url="./Data/market.xml" />
		
	<fi:XMPForm>
		<mx:HBox width="100%" height="26" verticalAlign="middle">
			<mx:HRule width="50%"/>
			<mx:Label text="Allgemeine Metadaten" fontSize="12" fontWeight="bold"/>
			<fi:XMPSeparator width="50%"/>
		</mx:HBox>
		<fi:XMPFormItem 
				label="Titel" 
				labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Dateiname" fontSize="11" width="100%">
			<fi:XMPTextInput xmpPath="dc:title" xmpType="Localized" width="100%"/>
		</fi:XMPFormItem>
		<fi:XMPFormItem 
				label="Titel" 
				labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Dateiname" fontSize="11" width="100%">
			<fi:XMPTextInput xmpPath="dc:title" xmpType="Localized" width="100%"/>
		</fi:XMPFormItem>
		<fi:XMPFormItem 
				label="Druckkennzeichen" 
				labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Dateiname" fontSize="11" width="100%">
			<fi:XMPTextInput xmpPath="dc:title" xmpType="Localized" width="100%"/>
		</fi:XMPFormItem>
		<fi:XMPFormItem 
				label="Verfasser" 
				labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Erzeuger des Dokumentes" fontSize="11" width="100%">
			<fi:XMPComboBox xmpPath="dc:creator" width="100%"/>
		</fi:XMPFormItem>
		<fi:XMPFormItem 
				label="Versionsnummer" 
				labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Dateiname" fontSize="11" width="100%">
			<fi:XMPComboBox xmpPath="dc:creator" width="100%"/>
		</fi:XMPFormItem>
		<mx:HBox width="100%" height="26" verticalAlign="middle">
			<mx:HRule width="50%"/>
			<mx:Label text="Enthaltene Sprachen" fontSize="12" fontWeight="bold"/>
			<fi:XMPSeparator width="50%"/>
		</mx:HBox>
		
		<!-- Beginn der Auswahl-Liste für die Sprachen -->
		   <mx:Script>
        <![CDATA[
            import flash.events.MouseEvent;
            import mx.controls.Alert;
            import mx.collections.ArrayCollection;
            
            private const NL:String = "\r";

            // A data provider created by using ActionScript
            [Bindable]
            private var subscriptions:ArrayCollection = 
                new ArrayCollection 
                (
                    [
                        {data:0, label:"Deutsch"},
                        {data:1, label:"Englisch"},
                        {data:2, label:"Französisch"},
                        {data:3, label:"Italienisch"} 
                    ]
                ); 
                
            [Bindable]
            private var market:ArrayCollection = 
                new ArrayCollection 
                (
                    [
                        {data:0, label:"(Bitte Marktversion auswählen)"},
                        {data:1, label:"Marktversion Deutsch (M_DE)"},
                        {data:2, label:"Marktversion Englisch (M_EN)"},
                        {data:3, label:"Marktversion Frankreich (M_FR)"},
                        {data:4, label:"Marktversion Italien (M_IT)"} 
                    ]
                );
                
            [Bindable]
            private var documenttyp:ArrayCollection = 
                new ArrayCollection 
                (
                    [
                        {data:0, label:"(Bitte Dokumenttyp auswählen)"},
						{data:1, label:"Gebrauchsanweisung"},
                        {data:2, label:"Ersatzteilkatalog"},
                        {data:3, label:"Service-Anleitung"},
                        {data:4, label:"Etikett"} 
                    ]
                ); 
            
        ]]>
    </mx:Script>
    
                <fi:XMPFormItem label="Sprachauswahl" width="100%">
                <mx:List 
                    id="userSubscriptions" rowCount="4"
                    allowMultipleSelection="true" width="100%"
                    dataProvider="{subscriptions}"
                />
            </fi:XMPFormItem>
                <mx:Text text="* Mehrfachauswahl möglich." fontWeight="normal" fontSize="10"/>
            
            <!-- Ende der Liste für die Auswahl von Sprachen -->
		
		<fi:XMPFormItem 
				label="Marktvariante" 
				labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Dateiname" fontSize="11" width="100%">
			<fi:XMPComboBox xmpPath="dc:creator" width="100%" dataProvider="{market}"/>
		</fi:XMPFormItem>
		<fi:XMPFormItem 
				label="Dokumenttyp" 
				labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Dateiname" fontSize="11" width="100%">
			<fi:XMPComboBox xmpPath="dc:creator" width="100%" dataProvider="{documenttyp}"/>
		</fi:XMPFormItem>
		<fi:XMPFormItem 
				label="Stichworte" 
				labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Erzeuger des Dokumentes" fontSize="11" width="100%">
			<fi:XMPTextArea/>
		</fi:XMPFormItem>
		<mx:HBox width="100%" height="26" verticalAlign="middle">
			<mx:HRule width="50%"/>
			<mx:Label text="Metadaten Photoshop" fontSize="12" fontWeight="bold"/>
			<fi:XMPSeparator width="50%"/>
		</mx:HBox>
		<fi:XMPFormItem 
				label="Originalname FA" 
				labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Dateiname" fontSize="11" width="100%" id="PS1">
			<fi:XMPTextInput xmpPath="dc:title" xmpType="Localized" width="100%"/>
		</fi:XMPFormItem>
		<fi:XMPFormItem 
				label="Fotoauftragsnummer" 
				labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Dateiname" fontSize="11" width="100%" id="PS2">
			<fi:XMPTextInput xmpPath="dc:title" xmpType="Localized" width="100%"/>
		</fi:XMPFormItem>
		<fi:XMPFormItem 
				label="Interne Anmerkungen" 
				labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Erzeuger des Dokumentes" fontSize="11" width="100%" id="PS3">
			<fi:XMPTextArea/>
		</fi:XMPFormItem>
		<mx:Text text="* hier steht eine kleine Erläuterung" fontWeight="normal" fontSize="10"/>
		
	</fi:XMPForm>
</fi:XMPForm>
Greets
Markus

Geändert von Wild Orange (29-04-2010 um 09:18 Uhr)
Wild Orange ist offline   Mit Zitat antworten
Alt 29-04-2010, 12:59   #10 (permalink)
Perverted Hermit
 
Benutzerbild von Omega Psi
 
Registriert seit: Mar 2004
Ort: Delmenhorst
Beiträge: 12.146
Sorry, ich habe das Gefühl, wir verwenden nicht unbedingt das gleiche Vokabular. Ein Panel ist eine Flex Komponente und jede Komponente, die Panel als Basisklasse hat. RDF ist das Resource Description Framework und Teil des Semantic Webs. Die RDF XML Spezifikation des W3Cs ist denke ich eine der Hauptanwendungen von RDF.

Da ich nicht weiss, woher du die XMP Komponenten hast, hast du einen Link?
Omega Psi ist offline   Mit Zitat antworten
Alt 29-04-2010, 14:33   #11 (permalink)
Neuer User
 
Registriert seit: Apr 2003
Beiträge: 12
Aber klar doch: Adobe - XMP Developer Center

Hier ist das SDK herunterzuladen. Hier sind auch entsprechende Beispielpanels enthalten.

Greets
Markus

Geändert von Wild Orange (29-04-2010 um 14:35 Uhr)
Wild Orange ist offline   Mit Zitat antworten
Alt 04-05-2010, 11:13   #12 (permalink)
Neuer User
 
Registriert seit: Apr 2003
Beiträge: 12
Es ist zum verrückt werden. Ich bekomme einfach nicht heraus, wie ich meiner mx:List beibringen kann, den ausgewählten Wert in ein bestimmtes Feld zu schreiben. Jedes Mal erhalte ich folgende Meldung:
Code:
Cannot resolve attribute 'xmpPath' for component type mx.controls.List.
Wie kann ich denn erreichen, dass mx.controls.List mit einem xmpPath umgehen kann? Ich möchte erreichen, dass das Ergebnis (MultiSelection) in "xmpPath="Iptc4xmpCore:IntellectualGenre"" ausgelesen wird.

Kann hier jemand helfen?

Vielen Dank!
Markus
Wild Orange ist offline   Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks sind an
Pingbacks sind an
Refbacks sind an


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
XMP Custom Panel in Flash Builder 4 Wild Orange Flex allgemein 2 19-04-2010 13:29
[PV3D] Custom Plane anlegen? mukraker ActionScript 3 0 30-08-2008 17:24
custom menu mit Flex bruce_wayne Flex allgemein 1 22-08-2008 14:39
Flex Panel oder Navigationsbar vince1969 Flex programmieren 1 22-05-2008 19:17
Klassen in Flex & Custom looped Elements page6 Flex allgemein 2 17-10-2007 11:16


Alle Zeitangaben in WEZ +1. Es ist jetzt 09:47 Uhr.

Domains, Webhosting & Vserver von Host Europe
Unterstützt das Flashforum!
Adobe User Group


Copyright ©1999 – 2012 Marc Thiele