Application and answer of SwF metadate in Flash 8

Source: Internet
Author: User
Tags xmlns domain name metadate

  What is SwF meadata?

We just need to make the SWF metadata than do with HTML META tags tags. SWF Metadata is a new feature in FLASH8, used to help search engines such as Google, Baidu, etc. to build a Flash content index, in the previous Flash version of the use of search is almost impossible. SWF metadata is described in RDF and is stored in SWF so that search engines can hit the corresponding content by keyword.

  How do I use SWF metadata?

When used in Flash, Metadata can be specified in the document properties, such as Edit > document

Add the content you want to write in the title and description.
When you finish specifying these two values, compile your movie, the metadata value is added to the SWF header, and the search engine will index your content.

  Other ways to use SWF metadata

If you are a webmaster and want to package your Flash content into a standard set of keywords, headings and descriptions. The method provided by using the JSAPI DOM can help you insert headings and descriptions into your document, You can use the JSAPI function Document.setmetadata () to set up your metadata. The Setmetadata function takes an XML file as a parameter and sets the metadata.xml of the document to be passed to the Setmetadata function in three different formats, which may refer to the use of livedoc here

The simple form is as follows

----------Code starts----------





----------Code End----------

Using JSAPI to embed the SWF metadata automatically, the code is as follows:

----------Code starts----------

Create a new JSFL file in Flash

Fl.createdocument ();

Gets the Document object DOM for the currently active FLA

doc = Fl.getdocumentdom ();

Initializing the current data variable
var today = new Date ();

Initial document title variable
var doctitle = "webstudio.com.cn";
Initializing Document Description variables
var docdesc = "A new Flash Media team | Flash design and development ";

Create an RDF XML using the current title and description
var rdfxml = ' ';

Add the RDF XML to the current document (Sets the meta data)
Adding RDF XML to the current document
Doc.setmetadata (Rdfxml);

----------Code End----------

Glue the code above to a new JSFL document, Save as CREATEDOC.JSFL, and move it to the
C:\Documents and Settings\ \local Settings\Application Data\Macromedia\Flash 8\ \configuration\ The Commands\ directory.

Restart Flash and run Createdoc on your life line.

Download source files:createdoc.rar

  is it possible for SWF metadata to be indexed by all popular search engines ?

The answer here is no, and not all popular searches can be indexed to SWF metadata, and Google can now make sure it's done.

  How do I make sure that the metadata we specified is already embedded in the SWF ?

Quite simply, if you watch the size report generated when you compile the Flash movie, you will see a column titled "Metadata" as follows:

meta.swf Movie
----------------------
Metadata
--------
Bytes Value
----- -----
227
Webstudio
A New Flash Media team | Flash design and Development

The size reporting method for generating flash is that when you publish a movie, the check generates the size report.

  How do I use Google to search SWF movies embedded in SWF metadata ?

You can use the filetype keyword in google search, for example, search tutorial swf, to write: If you want to find a specific site in the SWF file, you need to use filetype add site: The designated domain name, such as: Filetype:swf site:bbs.webjx.com.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.