Zurück   Flashforum > Flex und AIR > Flex allgemein

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 20-04-2010, 08:02   #1 (permalink)
Neuer User
 
Registriert seit: Apr 2003
Beiträge: 12
Fehler "line 99"

Guten Morgen,

als Flex-Builder newbie ich bin kurz vor dem Verzweifeln.

Ich versuche mich an der Erstellung eines Custom Panels in Flex-Builder 3. Das nötige .jar-Plugin aus dem XMP-FileInfo-SDK-4.4.2 ist in Ordner "Plugins" meiner Trial-Version kopiert, die Anlage des neuen XMP-Projektes ist auch möglich. Jedoch erhalte ich bei jedem Projekt im Design-Mode die Meldung:

There is an error at "line 99" of you MXML document:
The "myPanel" tag has invalid syntax

Hier der betreffende Code-Schnipsel
<mx:TabNavigator id="fileInfoTabs" width="100%" height="100%">
<panels:myPanel id="_customPanel"/>
</mx:TabNavigator>

Die Meldung sperrt die Bühne, so dass ich hier nicht einmal die Chance zum "trialen" habe ;-) Habe gedacht, dass es am Namen meines Projektes liegt, jedoch hat auch jeder andere Name zum gleichen Fehler geführt.

Beim Import der Beispiele aus dem XMP-SDK gibt es keine Fehlermeldung.

Hat jemand das selbe Problem und kann mir bei der Lösung helfen?

I-Mac 27"
OSX 10.6.3
Flash Builder 3.0 (Build 3.0.2.214193)
Wild Orange ist offline   Mit Zitat antworten
Alt 20-04-2010, 12:52   #2 (permalink)
agedoubleju
Gast
 
Beiträge: n/a
Zitat:
panels:myPanel
Wie sieht das Script zur Komponente aus? Ich könnte mir bspw. vorstellen, dass eine Flash Builder-Komponente nicht abwärtskompatibel ist...
  Mit Zitat antworten
Alt 20-04-2010, 14:18   #3 (permalink)
Neuer User
 
Registriert seit: Apr 2003
Beiträge: 12
Hallo Holger,

hoffe, dass ich Deine Frage richtig verstehe...

Kann die .jar-Datei aus dem XMP FileInfo SDK 4.4.2 leider nicht anhängen:
com.adobe.xmp.sdk.fileinfo_1.0.1.jar. Ich kann leider nicht nachvollziehen, was hier mein Fehler sein soll. Habe die jar nach Anleitung einkopiert und habe auch keine andere Version gefunden. Es gibt auch bisher noch keine Version für Flash-Builder 4, ansonsten hätte ich mich direkt damit beschäftigt.

Anbei der komplette Code bei Neuanlage eines XMP-Projektes:
PHP-Code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application 
    xmlns:mx="http://www.adobe.com/2006/mxml" 
    xmlns:panels="examples.panels.*"
    layout="absolute"
    initialize="createManifest()">
    
    <mx:Style source="../styles/DefaultModalStyle.css"/>
    
    <mx:Metadata>
        [ResourceBundle("controls")]
        [ResourceBundle("SharedResources")]
        [ResourceBundle("formatters")]
    </mx:Metadata>
    
    <mx:Script>
        <![CDATA[
            import com.adobe.xmp.IXMPPanel;
            import com.adobe.xmp.external.TestFileInfoLibrary;
            import com.adobe.xmp.XMPAccess;
            import com.adobe.xmp.IXMPAccess;
            import com.adobe.xmp.manifest.PanelDescription;
            import com.adobe.xmp.events.XMPEvent;
            
            
            /** The name of the panel, matches the directory name, 
             *  the swf library (without extension) and the loc file prefix. */
            public static const panelName:String = "myPanel";
            /** The FileInfo prefix and namespace */
            public static const xfi:Namespace = new Namespace("http://ns.adobe.com/xmp/fileinfo/");
            /** The relative path to the panel */
            public static const panelPath: String = "../target/" + panelName + "/";
            /** used to fire XMPEvents */
            private var xmpAccess: IXMPAccess;


            /**
             * The panel manifest is mocked in this test application,
             * in the FileInfo dialog the panel is initialized with the "real" manifest.
             */
            private function createManifest(): void
            {
                var manifest: PanelDescription = new PanelDescription();
                manifest.panelPath = panelPath;
                manifest.name = panelName;
                manifest.label = panelName; 
                manifest.description = 
                    "The panel name and this description are finally retrieved " +
                    "from the attributes 'label' and 'description' in the manifest.";
                manifest.type = PanelDescription.PANELTYPE_CUSTOM;
                manifest.version = 1.0;
                manifest.localizationFile = panelName;
                
                // create panel manifest and initialize the panel with it
                _customPanel.panelDescription = manifest;
                _customPanel.toolTip = manifest.description;
            }

            
            /**
             * Fire the XMP_READ event. 
             */
            private function readXMP(event: Event): void
            {
                _customPanel.dispatchEvent(new XMPEvent(XMPEvent.XMP_READ, getXMPAccess()));
            }


            /**
             * Fire the XMP_WRITE event. 
             */
            private function writeXMP(event: Event): void
            {
                _customPanel.dispatchEvent(new XMPEvent(XMPEvent.XMP_WRITE, getXMPAccess()));
            }
            
            
            /**
             * Creates a mocked IXMPAccess instance for test purposes.
             * The TestFileInfoLibrary simulates the access to the XMP packet.
             *  
             * If an XMP property is retrieved, it is initially set to it's xmp path.
             * When an XMP property is set, the value is remembered in memory.
             */
            private function getXMPAccess(): IXMPAccess
            {
                if (xmpAccess == null)
                {
                    xmpAccess = new XMPAccess(
                        new TestFileInfoLibrary(), _customPanel.XMPNamespaces);
                }
                
                return xmpAccess;
            }
        ]]>
    </mx:Script>

    <mx:TabNavigator id="fileInfoTabs" width="100%" height="100%" x="0" y="5">
        <panels:myPanel id="_customPanel"/>
    </mx:TabNavigator>
    
    <mx:HBox width="100%" horizontalAlign="right" paddingRight="10" x="0" y="832">
        <mx:Button label="Read XMP" click="readXMP(event)" toolTip="Simulates the reading of XMP properties."/>
        <mx:Button label="Write XMP" click="writeXMP(event)" toolTip="Simulates the writing of XMP properties."/>
    </mx:HBox>
</mx:Application>
Greets
Markus

Geändert von agedoubleju (20-04-2010 um 14:56 Uhr)
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
mouse draw delete line (maus als "radiergummi") chrissy810 ActionScript 3 5 13-12-2008 15:16
loop oder sowas wie "jump to line" kuhgarten Flash Einsteiger 1 22-01-2008 15:01
Wo ist find ich die Leiste mit "Normal", "Darüber", "Gedrückt" und "Aktiv" maggi198 Flash Einsteiger 2 19-10-2006 21:33
Unerklärlicher Fehler: "Target not found: Target="0" Base="_level0"....." JuL! Flash MX 2004 3 13-10-2004 22:40
wie kann ich "form action="xxx.php" method="post" name="postform" Hobbes ActionScript 1 1 09-09-2001 11:43


Alle Zeitangaben in WEZ +1. Es ist jetzt 00:43 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele