Skip navigation
Currently Being Moderated

XMP metadata from Flashbuilder why not visible in Adobe Bridge?

Jan 22, 2011 12:52 AM

Hi there,

 

I'm currently wondering around XMP metadata and swf files.

 

A: Flash CS5: works

When I use the XMP panel in Flash CS5 and export a swf, open Adobe Bridge CS5 and select the file, the XMP data are correctly displayed.

 

B: Flash Builder(Flex 4.1): don't work

When I use Flashbuilder and add my metadata to the compilation, then compile, open Adobe Bridge CS5 and select the file, nothing is included in metadata.

 

Procedure based on the following (same problem if metadata are directly set through compiler arguments):

http://livedocs.adobe.com/flex/3/html/help.html?content=compilers_14.h tml

 

../src/config/ProductMetaData.xml

 

<flex-config>
<metadata>
    <title>My title</title>
    <description>My description</description>
    <publisher>The publisher</publisher>
    <creator>The creator</creator>
    <language>EN</language>
</metadata>
</flex-config>

 

compiler argument

-load-config+=config/ProductMetaData.xml

 

As far as understood, on the background the following is added to the swf at compile time:

 

<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
    <rdf:Description rdf:about='' xmlns:dc='http://purl.org/dc/elements/1.1'>
        <dc:format>application/x-shockwave-flash</dc:format>
        <dc:title>My title</dc:title>
        <dc:description>
            <rdf:Alt>
                <rdf:li xml:lang='x-default'>My description</rdf:li>
            </rdf:Alt>
        </dc:description>
        <dc:publisher>The publisher</dc:publisher>
        <dc:creator>The creator</dc:creator>
        <dc:language>EN</dc:language>
    </rdf:Description>
</rdf:RDF>

 

I've checked that the medata is correctly added to the swf file using this small software polarswf:
http://download.cnet.com/Polar-SWF-MetaData/3000-6676_4-10738623.html

 

I do not know if it is safe to use it in a produciton context at least in trial mode it allows to check the metadata included in your swf.

 

I wonder if this metadata coonot be read by Adobe Bridge because they are at a "lower level" than those put by flash CS5 XMP panel?

 

Thank you in advance for your help.

 

This is not a blocking situation, but I'm curious to understand what happend.

 

 

Cedric Madelaine (aka maddec)

 
Replies
  • Currently Being Moderated
    Oct 18, 2011 6:07 AM   in reply to maddec

    I was following this post for a LONG time, since I noticed the same problem.

    This week I was getting in it into myself again and I noticed you use load-config. I used these compiler options :

    contributor name

    Sets metadata in the resulting SWF file. For more information, see Adding metadata to SWF files.

    creator name

    Sets metadata in the resulting SWF file. For more information, see Adding metadata to SWF files.

    date text

    Sets metadata in the resulting SWF file. For more information, see Adding metadata to SWF files.

    But that resulted in this XML string where the dc namespace was missing a / on the end of the URI

    That caused the metadata which was added in flashbuilder was only visible in bridge in the rawXML panel, and not the specific fields

    changing the URI in http://purl.org/dc/elements/1.1/ did the trick ( did this in bridge by exporting the rawXML, changed the / , and imported it )

     

    <rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>

        <rdf:Description rdf:about='' xmlns:dc='http://purl.org/dc/elements/1.1'>

            <dc:format>application/x-shockwave-flash</dc:format>

           .............................

        </rdf:Description>

    </rdf:RDF>

     

    Sadly there was no way I could add this / myself everytime.

    BUT then I discoverd this option :

    raw-metadata XML_string

    Defines the metadata for the resulting SWF file. The value of this option overrides any metadata.* compiler options (such as contributor,creator, date, and description).

    This is an advanced option.

    And you could give the exact RAW XML as you  described

     

    <rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>

        <rdf:Description rdf:about='' xmlns:dc='http://purl.org/dc/elements/1.1/'>

            <dc:format>application/x-shockwave-flash</dc:format>

            <dc:title>My title</dc:title>

            <dc:description>

                <rdf:Alt>

                    <rdf:li xml:lang='x-default'>My description</rdf:li>

                </rdf:Alt>

            </dc:description>

            <dc:publisher>The publisher</dc:publisher>

            <dc:creator>The creator</dc:creator>

            <dc:language>EN</dc:language>

        </rdf:Description>

    </rdf:RDF>

     

    to the compiler. This could also be done in Flash with JSFL.

    In the end I wrote an ANT script which injects the exact XMLstring of metadata to Flash and Flex projects by using the raw-metadata parameter in FLEX and JSFL for flash.

     

    Hope this helps

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points