Accessing swf metadata rdf:Description etc
Hi Guys, anyone found a way for a swf to access it's own xmp and rdf metadata.
Essentially what i'm after is a way to embed a variable in a swf without having to decompile and recompile it, setting one of the preused metadata tags to that and then reading it would solve that problem.
Any help is much appreciated
Unfortunatley not, i'm trying to automate a dynamic content system, much like the old macromedia generator, where we have one swf file with one internal variable changed.
Similar Messages
-
Compilation flags allow the embedding of metadata into the
swf file. metadata.descritpion and metadata.date are examples. How
can the swf programatically extract and examine this data?As I was hitting enter to log my question I realized I should
have specified what I was trying to do. There may be a much better
way.
I would like to get to the date of the swf compilation or
other command line args to provide a visual indication of the
version of that swf when it is run, and programmatic indication of
version so that support decisions may be made at runtime. I do not
want to have to change static text every time I compile, but would
rather generate a version based on compilation time.
That said, how may this be accomplished? -
Accessing rdf:description with the SDK
Hi,
In the Adobe Audition schema, markers are stored in a schema that has three properties embedded in the rdf:description field, but it's not clear in the SDK documentation how to read this information or write to it. Most importantly, I need to be able to create a property that is able to write those attributes to the description. Adding the individual markers in the sequence I believe will be easy.
Any information is most appreciated.
-BrentFor anyone in the future who's interested in the answer to this...its actual implementation as I noted isn't clear
in the documentation so here's a bried summary of it. This is what I was trying to emulate:
<xmpDM:Tracks>
<rdf:Bag>
<rdf:li>
<rdf:Description xmpDM:trackName="CuePoint Markers" xmpDM:trackType="Cue" xmpDM:frameRate="f254016000000">
<xmpDM:markers>
<rdf:Seq>
<rdf:li xmpDM:startTime="43973f44100" xmpDM:name="Marker 01"/>
</rdf:Seq>
</xmpDM:markers>
</rdf:Description>
</rdf:li>
</rdf:Bag>
</xmpDM:Tracks>
The first item is easily added with meta.SetProperty(kXMP_NS_DM, "Tracks", NULL, kXMP_PropValueIsArray);
But the real catch for me was the items in the bag, which had the rdf:description field I didn't know how to create or access. The short answer is that the XMP code will add it on its own, but only under specific conditions. But to start, the items in the bag need to be added as structures:
meta.AppendArrayItem(kXMP_NS_DM, "Tracks", kXMP_PropArrayIsOrdered, 0, kXMP_PropValueIsStruct);
Then, we need a path to the structure we just added to the bag:
SXMPUtils::ComposeArrayItemPath(kXMP_NS_DM, "Tracks", kXMP_ArrayLastItem, &path);
Now that we have that path, we add the three fields that appear in the rdf:description part:
meta.SetStructField(kXMP_NS_DM, path.c_str(), kXMP_NS_DM, "trackName", "CuePoint Markers", NULL);
meta.SetStructField(kXMP_NS_DM, path.c_str(), kXMP_NS_DM, "trackType", "Cue", NULL);
meta.SetStructField(kXMP_NS_DM, path.c_str(), kXMP_NS_DM, "frameRate", "f254016000000", NULL);
But this as of yet won't add an rdf:description field to our structure. Rather, it just puts the properties in the <rdf:li> tag directly. However, once we add the ordered array to the structure with the following statement, the rdf:description field gets added and the three simple properties become part of it:
meta.SetStructField(kXMP_NS_DM, path.c_str(), kXMP_NS_DM, "markers", 0, kXMP_PropArrayIsOrdered);
Now the marker entries are structures themselves, so we need a path to the "markers" array:
SXMPUtils::ComposeStructFieldPath(kXMP_NS_DM, path.c_str(), kXMP_NS_DM, "markers", &markerPath);
Then we add a structure to the "markers" array:
meta.AppendArrayItem(kXMP_NS_DM, markerPath.c_str(), kXMP_PropArrayIsOrdered, 0, kXMP_PropValueIsStruct);
Then we need a path to the newly created structure in the "markers" array:SXMPUtils::ComposeArrayItemPath(kXMP_NS_DM, markerPath.c_str(), kXMP_ArrayLastItem, &path);
And finally we add the two marker fields:
meta.SetStructField(kXMP_NS_DM, path.c_str(), kXMP_NS_DM, "startTime", "43973f44100", NULL);
meta.SetStructField(kXMP_NS_DM, path.c_str(), kXMP_NS_DM, "name", "Marker 1", NULL);
Hope this helps someone out.
-Brent -
[CS3 JS] How To Access Custom Metadata?
I have InCopy documents that contain custom XMP metadata in two namespaces, Dublin Core and PRISM, e.g.:<br /><br /> ...<br /> <rdf:Description<br /> rdf:about=""><br /> <dc:format<br /> xmlns:dc="http://purl.org/dc/elements/1.1/">application/x-incopy</dc:format><br /> <dc:title>Chickens and You</dc:title><br /> </rdf:Description><br /> <rdf:Description<br /> rdf:about=""><br /> <prism:publicationName<br /> xmlns:prism="http://prismstandard.org/namespaces/basic/1.2/"<br /> >Poultry Daily</prism:publicationName><br /> </rdf:Description><br /> ...<br /><br />In my JavaScript, I can access the Dublin core values but cannot access the PRISM values and I'm not sure why not.<br /><br />For example, I have this:<br /><br />doc = app.activeDocument;<br />metadata = doc.metadataPreferences;<br /><br />namespaces["dc"] = "http://purl.org/dc/elements/1.1/";<br />namespaces["prism"] = "http://prismstandard.org/namespaces/basic/1.2/";<br /><br />$.writeln("dc:title=" + <br /> metadata.getProperty(namespaces["dc"], <br /> "title/*[1]"))<br />// Returns expected result "Chickens and You"<br /><br />$.writeln("prism:publicationName=" + <br /> metadata.getProperty(namespaces["prism"], <br /> "publicationName/*[1]"))<br />// Returns unexpected empty result, should be "Poultry Daily".<br /><br />If I do metadata.save() I see the PRISM metadata in the saved result:<br /><br /> <rdf:Description rdf:about=""<br /> xmlns:prism="http://prismstandard.org/namespaces/basic/1.2/"><br /> <prism:publicationName>Poultry Daily</prism:publicationName><br /> </rdf:Description><br /><br />So I'm sort of at a loss but I suspect that I don't really understand what the path value should be--I haven't been able to find any clear documentation on what the path is addressing or how its actually interpreted.<br /><br />What am I missing or doing wrong?<br /><br />Thanks,<br /><br />Eliot
[email protected] wrote:
> Dude, I started that thread :-)
Missed that. It's been a long week.
The problem is this line (probably).
metadata.getProperty(namespaces["prism"], "publicationName/*[1]")
You apparently copied the syntax from dc:title in the previous line. dc:title is
an 'Lang Alt' kind of property which is, effectively, an array. Your
prism:publicationName is a simple value property. I suspect that the "[1]"
syntax (and possible the "/*" before it) are what's causing problems.
I don't recall seeing docs for this either.
-X -
Hi!
I'm attempting to create a photo uploader as part of a school project, and I was wondering how I can access, and edit, the metadata for the images I'm uploading. I want to change the tags, description, etc. I tried Googling, but it didn't return anything I can use.
I also suspect it might not be possible to edit metadata in Flex. If so, is there another way I can do this?
By the way, I'm using Flash Builder 4.5 Premium, with Flex 4.5.1 SDK.
Cheers
MarkI've not tried this but it looks promising
http://code.google.com/p/exif-as3/ -
How to access Image Metadata with AS3?
An image, like a jpeg, has a bunch of metadata stored in it.
The "IPTC Core" metadata usually includes the photographers name,
address, title, description, etc.
Is there any way to access this information using AS3 so
that, say, captions for images in a flash gallery could be
generated automatically?As far as I know this is not possible with AS3 directly, but
if you are interested you could check out the as3corelib at
http://code.google.com/p/as3corelib/
They have some pretty nifty JPEG things going on there
(although I do not know if this includes metadata - but I hope
so). -
Access Image Metadata in a jpeg?
An image, like a jpeg, has a bunch of metadata stored in it.
The "IPTC Core" metadata usually includes the photographers name,
address, title, description, etc.
Is there any way to access this information using Flash so
that, say, captions for images in a flash gallery could be
generated automatically?Look at the documentation for the BitmapData class. I think
this provides you with access to the raw image data.
Look at the documentation of the jpeg i.e. the JPEG header
format. I think you might be able to parse out some image label
data from raw JPEG header. This would be one way. The second way is
to pass the name/caption of the image in the HTTP server response
and parse it using the URLLoader object. Read documentation of
URLLoader. -
PPCS4 Clip "Description" etc. won't save after capture process
During the logging/capturing process I have been entering information into the various Clip Data fields, such as Description, Scene, and Log Note. Once the clips have been logged...and the project closed...when I start a new PProCS4 session, and retrieve those same clips...the Clip Data that I had entered does not appear next to the clips in the Project Panel?!? Does this have to do with a Metadata issue? Anyhelp ASAP would be greatly appreciated. Thanks.
They are blank...nothing in the under the field heading
Complete workflow/actions are as follows - may be helpful here...
1. capture/log clips with added descriptions etc.
2. Batch capture above - creating .avi files
3. Close out of PPro CS4
4. Re-open PPro - and import the above .avi files
5. The .avi files now do not have the descriptions that were input during the capture/log process -
Any suggestions on how you can transfer photos (including location description etc) from iphoto's on a Mac air book to a Mac? Whenever I export the pictures the additional information is lost
Two ways:
1. File -> Export. Set the Kind to Jpeg or Tiff
Check the boxes at 'Location Information' and 'Titles and Keyword'
The information is written to the iptc and Exif metadata on the file.
2. Use iPhoto Library Manager This will get all of the information plus faces and edit history
Regards
TD -
When I turn on my computer, an error message says "AppleSyncNotifier.exe-entry point not found. The procedure entry point xmlTextReaderConstName could not be located in the dynamic link library libxml2.dll" Cannot access itunes store, sync phone, etc. Two weeks ago did this and Apple support had me remove and reinstall iTunes. Doing it again. Help....
With Windows Explorer, navigate to your C:\Program Files\Common Files\Apple\Apple Application Support folder.
Copy the libmxl2.dll that you should find there, navigate to the nearby Mobile Device Support folder, and Paste it in there also.
Reboot and see if all is well
In case that your OS is Windows 7 (64 bit)
1. Open windows explorer, go to location C:\Program Files (x86)\Common Files\Apple\Apple Application Support
2. Copy file "libxml2.dll"
3. Open new windows explorer, to to location C:\Program Files (x86)\Common Files\Apple\Mobile Device Support
4. Paste file "libxml2.dll" to the location.
5. Reboot your computer, it should not display that message, it should be clear.
Good Luck -
Access CDF MetaData from Region Template
How can I access the MetaData of a CDF from the Region Template?
I have read that I can use DOC_INFO, but this does not seem to work. I tried:
DOC_INFO.dDocAccount and got nothing.
I tried:
executeService("DOC_INFO")
DOC_INFO.dDocAccount
Thank you in advance for any help.
_tIf you're looking for the CDF that's assigned to the region template, use:
<!--$#active.[metadata field name]-->
For example, <!--$#active.xDescription-->
If you're trying to get from a different CDF, use:
<!--$dDocName="[Content ID]"-->
<!--$executeService("DOC_INFO_BY_NAME")-->
<!--$#active.[metadata field name]-->
For example,
<!--$dDocName="CONTENT123456"-->
<!--$executeService("DOC_INFO_BY_NAME")-->
<!--$#active.xDescription--> -
How can we access Page metadata in DataView Webpart in SharePoint Designer 2013?
Hi,
I need to access Page metadata in my Data view web part and I am having a feeling, that the "Form" option can help me getting Page metadata, but I am not able to get much information about using this field as a parameter source on net? Can
anybody advise, how to use "Form" option in "Parameter Source" in SharePoint Designer 2013
OR Suggest me any other way to get Page metadata in Data View Webpart?
Thanks in advance,
Regards,
Deepali
DeepaliHi Deepali,
All the parameter source are ASP Request Object collections which is used to get information from a visitor.
For accessing page metadata, you can select Server Variable.
For more information ,you can refer to the following article:
http://www.w3schools.com/asp/asp_ref_request.asp
http://blogs.msdn.com/b/spdsupport/archive/2008/07/25/data-view-data-form-parameters-you-don-t-know-about.aspx
Best Regards,
Eric
Eric Tao
TechNet Community Support -
Revision: 7671
Author: [email protected]
Date: 2009-06-09 07:31:19 -0700 (Tue, 09 Jun 2009)
Log Message:
The SWF metadata tag has optional attributes widthPercent and heightPercent. The expected format is "[ws]double%[ws]". For example, [SWF (backgroundColor="#FFFFFF", widthPercent="92%", heightPercent="81%", frameRate="60" )]. Don't blindly strip off the last non-whitespace char and allow the % to be optional.
QA Notes:
Doc Notes:
Bugs: SDK-21436
Reviewers: Pete
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-21436
Modified Paths:
flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/internal/OEMReport.java -
Can i access swf files with your product?
can i access swf files with dreamweaver?
You will need Flash as well as Dreamweaver.
Follow these instructions http://help.adobe.com/en_US/dreamweaver/cs/using/WSc78c5058ca073340dcda9110b1f693f21-7ad0a .html -
How access SWF Library items?
Is it possible to access SWF Library items from main FLA?
Ex:
I am loading swf on level1, i want to access level1 library
items from level0 fileYou'll need to get the FLA for the file to see how the
linkage is set up. Other option, though not ideal, is to get ahold
of a SWF decompiler, and create a new FLA where you know the
linkage id's.
Maybe you are looking for
-
Need to send mail from new infotype
Hi, i must send email notification when i new PA specific infotype is created/changed. Finally, i don't think worflow is the best way... but i don't know where i must implemented my code, i've tested this idea by modifying the PAI but it don't work,
-
Ask about the Service Pooling in OSB
Hi all, I read the Service Pooling feature in OSB. It said that: "OSB support load balancing of service endpoints through service pooling technique." --> It's mean I can create multi instances of a service that a provider exposed, and when busine
-
Firefox 15 acts as if a scroll lock is on. I just upgraded from 14 to 15.
I just upgraded from 14 to 15. Using a EVO View tablet, the OS is current. The secured part of ETADirect.com Firefox 15 acts as if a scroll lock is on. When I zoom in, I am unable to move the page.The scroll bars both move,as if the page is moving.
-
Hi, I've installed BIEE on a windows machine and everything worked fine until a reboot of the server. When I try starting BIEE, I get the following errors in a DOS window: C:\Oracle\OraHomeBI\oc4j_bi\bin>oc4j.cmd -start Starting OC4J from C:\Oracle\O
-
Change rolling time in DailyRollingFileAppernder (log4j 1.3)
Hi all, We are using log4j 1.3alpha8 and have a RollingFileApppender configured with the following rolling policy: <rollingPolicy class="org.apache.log4j.rolling.TimeBasedRollingPolicy"> <param name="FileNamePattern" value="../../../log/logfile.