前言介紹
- 這款 WordPress 外掛「Kimili Flash Embed」是 2008-04-03 上架。 目前已經下架不再更新,不建議安裝使用。
- 目前有 3000 個安裝啟用數。
- 上一次更新是 2015-08-31,距離現在已有 3534 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 2.8 以上版本才可以安裝。
- 有 16 人給過評分。
- 論壇上目前有 1 個提問,問題解答率 0%
外掛協作開發者
外掛標籤
swf | flex | flash | swfobject | javascript |
內容簡介
Kimili Flash Embed 是 WordPress 的外掛,它可以讓您在網站上輕鬆放置 Flash 影片。它建立在 SWFObject JavaScript 代碼之上,符合標準、友善於搜尋引擎、高度靈活、功能完整且易於使用。
Kimili Flash Embed 使用 SWFObject 2.2,完全兼容 WordPress 2.6 及更高版本,且與大多數其他外掛相容。
對於非英語使用者,Kimili Flash Embed 已翻譯成以下語言:
Belorussian、Bulgarian、Dutch、German、Hindi、Irish Gaelic、Latvian、Romanian、Russian、Serbo-Croatian、Spanish 和 Ukranian。
基本使用方法:
一旦安裝並啟用外掛,您可以在文章中使用像這樣的標籤來添加 Flash 內容:
[kml_flashembed movie="filename.swf" height="150" width="300" /]
當您在視覺或 HTML 模式下使用豐富文本編輯器時,您應該會在工具列的右端看到一個帶有 Flash 播放器標誌的按鈕,或在 HTML 模式下顯示為一個名為「Kimili Flash Embed」的按鈕。單擊它,您將進入 Kimili Flash Embed 標籤產生器,該產生器將顯示所有可能的嵌入選項。根據需要設置選項,然後單擊「生成」按鈕,以在編輯器中插入 KFE 標籤。
KFE 標籤中唯一必需的屬性是movie、height 和 width。下面是所有可用屬性和進階使用方法:
所有 KFE 標籤可用的屬性都應該是小寫字母和雙引號括起來的。它們包括:
1. MOVIE(必需):顯示的 Flash 影片的路徑和文件名。
2. ALLOWFULLSCREEN(true|false):啟用全屏模式。如果省略此屬性,默認值為 false。您必須安裝 Flash Player 9,0,28,0 或更高版本才能使用全屏模式。
3. ALLOWFULLSCREENINTERACTIVE(true|false):啟用全屏交互模式,在此模式下,運行於 Flash Player 中的內容可以佔據整個屏幕並接受文本輸入。如果省略此屬性,默認值為 false。您必須安裝 Flash Player 11,3,0 或更高版本才能使用全屏交互模式。有關詳細信息,請參閱 Adobe 的開發人員指南。
4. ALLOWNETWORKING(all|internal|none):控制 SWF 文件對網絡功能的訪問權限。如果省略此屬性,默認值為 all。
5. ALLOWSCRIPTACCESS(always|never|sameDomain):控制從 Flash SWF 中執行出站腳本的能力。如果省略此屬性,默認值為 always。
6. ALTTEXT(非常過時):如果未找到所需的 Flash 播放器,您要顯示的文本。我強烈建議您嵌套替代內容於 KFE 標籤中,而不是使用此屬性。
7. BASE(. 或基本目錄或網址):指定用於解析 Flash Player 影片中所有相對路徑語句的基本目錄或 URL。當 Flash Player 無法解析 IP 地址或相對路徑時,此屬性非常有用。
原文外掛簡介
Kimili Flash Embed is a plugin for WordPress that allows you to easily place Flash movies on your site. Built upon SWFObject javascript code, it is standards compliant, search engine friendly, highly flexible and full featured, as well as easy to use.
Kimili Flash Embed utilizes SWFObject 2.2, is fully compatible with WordPress 2.6 and later and plays well with most other plugins.
For non-english users, Kimili Flash Embed has been localized to the following languages:
Belorussian
Bulgarian
Dutch
German
Hindi
Irish Gaelic
Latvian
Romanian
Russian
Serbo-Croatian
Spanish
Ukranian
Basic Usage
Once the plugin is installed and activated, you can add Flash content to your pages using a tag like this in your articles:
[kml_flashembed movie="filename.swf" height="150" width="300" /]
When you use the Rich Text Editor in either Visual or HTML modes, you should see a button on the right end of the toolbar with a Flash player logo in the visual mode or a button that reads “Kimili Flash Embed” in HTML mode. Click it, and you will be presented with the Kimili Flash Embed Tag Generator which presents you with all possible embedding options. Set the options according to your needs and click the “Generate” button to drop a KFE tag in your editor.
The only required attributes in a KFE tag are movie, height, and width. See the the following sections all available attributes and advanced usage.
Available Attributes
All of the available attributes for the KFE tag should be lowercase and double quoted. They are:
There only one attribute required in a KFE tag: movie. All of the available attributes for the KFE tag should be lowercase and double quoted. They are:
MOVIE (required)
The path and file name of the Flash movie you want to display.
ALLOWFULLSCREEN
(true|false) Enables full-screen mode. The default value is false if this attribute is omitted. You must have version 9,0,28,0 or greater of Flash Player installed to use full-screen mode.
ALLOWFULLSCREENINTERACTIVE
(true|false) Enables full-screen interactive mode, in which content running in Flash Player can fill the entire screen and accept text input. The default value is false if this attribute is omitted. You must have version 11,3,0 or greater of Flash Player installed to use full-screen interactive mode. See Adobe’s developer guide for more info.
ALLOWNETWORKING
(all|internal|none) Controls a SWF file’s access to network functionality. The default value is ‘all’ if this attribute is omitted.
ALLOWSCRIPTACCESS
(always|never|sameDomain) Controls the ability to perform outbound scripting from within a Flash SWF. The default value is ‘always’ if this attribute is omitted.
ALTTEXT (very deprecated)
The text you want to display if the required Flash player is not found. I strongly recommend that you “nest alternative content in your KFE tags”:#altContent in favor of using this attribute.
BASE
( . or base directory or URL) – Specifies the base directory or URL used to resolve all relative path statements in the Flash Player movie. This attribute is helpful when your Flash Player movies are kept in a different directory from your other files.
BGCOLOR
(#RRGGBB, hexadecimal RGB value) – Specifies the background color of the Flash movie.
DEVICEFONT
Specifies whether static text objects that the Device Font option has not been selected for will be drawn using device fonts anyway, if the necessary fonts are available from the operating system.
FID
Use this attribute to give your movie a unique id on the page for scripting purposes. If omitted, a random ID is assigned to your movie.
FVARS
Pass variables (name/value pairs) into your movie with this attribute. You can pass in as few or as many variables as you want, separating name/value pairs with a semicolon. Syntax is as follows:
fvars=" name = value ; name = value "
In addition to hard coded values, you can also pass in arbitrary Javascript or PHP code, like such:
Javascript – href = ${document.location.href;}
PHP – date = ?{date('F j, Y');}
These can be strung together in any order inside the fvars attribute:
fvars=" href = ${document.location.href;} ; date = ?{date('F j, Y');} ; name = Johnny Bravo "
FVERSION
You can specify what version of the Flash player is required to play your movie. If you omit this attribute, the value set in the plugin options will be used.
HEIGHT
The height of the Flash movie. You can specify in pixels using just a number or percentage. If you omit this attribute, the value set in the plugin options will be used.
LOOP
(true|false) – Specifies whether the movie repeats indefinitely or stops when it reaches the last frame. The default value is true if this attribute is omitted.
MENU
(true) displays the full menu, allowing the user a variety of options to enhance or control playback.
(false) displays a menu that contains only the Settings option and the About Flash option.
PLAY
(true|false) – Specifies whether the movie begins playing immediately on loading in the browser. The default is true.
PUBLISHMETHOD
(static) – Embed Flash content and alternative content using standards compliant markup and use unobtrusive JavaScript to resolve the issues that markup alone cannot solve.
(dynamic) – Create alternative content using standards compliant markup and embed Flash content with unobtrusive JavaScript.
If you omit this attribute, the value set in the plugin options will be used.
QUALITY
(low|high|autolow|autohigh|best) – Specifies the playback quality of the Flash movie.
SCALE
(showall|noborder|exactfit) – Dictates how the movie fills in the specified target area.
SEAMLESSTABBING
(true|false) Specifies whether users are allowed to use the Tab key to move keyboard focus out of a Flash movie and into the surrounding HTML (or the browser, if there is nothing focusable in the HTML following the Flash movie). The default value is true if this attribute is omitted.
SWLIVECONNECT
(true|false) Specifies whether the browser should start Java when loading the Flash Player for the first time. The default value is false if this attribute is omitted. If you use JavaScript and Flash on the same page, Java must be running for the FSCommand to work.
TARGET
When setting publishmethod to dynamic, this is the ID of an element on your page that you want your Flash movie to display within. If you don’t set this attribute, a random target ID will be generated. Will be ignored if publishmethod is static.
TARGETCLASS
This is the class name of the element on your page that you want your Flash movie to display within – helpful for CSS Styling. If you omit this attribute, the value set in the plugin options will be used.
USEEXPRESSINSTALL
(true|false) Use this if you want to invoke the Flash Player “Express Install”:#expressinstall functionality. This gives users the option to easily update their Flash Player if it doesn’t meet the required version without leaving your site.
WIDTH
The width of the Flash movie. You can specify in pixels using just a number or percentage. If you omit this attribute, the value set in the plugin options will be used.
WMODE
(window, opaque, transparent) – Sets the Window Mode property of the Flash movie for transparency, layering, and positioning in the browser.
You can find out more about Flash player attributes at Adobe’s Knowledge Base
Using Flash Player Express Install
If you want to give visitors to your site the option to upgrade their Flash Player to the latest version as quickly and seamlessly as possible, you can use the Flash Player’s Express Install functionality.
General Notes
Your SWF files need to be a minimum of 214px wide by 137px high so the entire upgrade dialog can be seen by the user if the Express Install is triggered. Furthermore, if your Express-Install-enabled SWF is not at least that size, the Express Install function will automatically fail.
It may also be a good idea to only place one SWF with Express Install functionality on each page. This way users won’t be greeted with multiple upgrade dialog boxes and be forced to choose one. Onto the specifics:
Specifics
Define the minimum flash player version required by your .SWF using the fversion attribute:
fversion="9.0.115"
Add the useexpressinstall attribute to your [kml_flashembed /] tag, like this:
useexpressinstall="true"
In the end, your KFE tag should look something like this:
[kml_flashembed movie="filename.swf" height="300" width="300" fversion="9" useexpressinstall="true" /]
That is all you need in order to invoke the Express Install functionality. In the case of the above KFE tag, if a user arrives at your site with either a Flash Player 6, 7, or 8 installed, they will be alerted that they need a more recent version of the Flash Player and be given the option to upgrade it without leaving your site.
Defining Alternate Content for a Flash Movie
As of KFE 2.0, it is now much easier to specify alternative content which gets displayed when your Flash doesn’t get rendered. This could happen if a user doesn’t have a recent enough Flash player installed or lacks the Flash player altogether, such as on an iPhone. Another reason to specify alternative content is for search engine optimization, or SEO. Most search engines aren’t very good at indexing content in Flash movies, if they can do it at all (Google can, but only with content that has been hard coded into a SWF–dynamic content in a SWF doesn’t get indexed). In these cases it’s best to specify some alternative content for your SWF.
To define alternative content for a SWF, you can now nest arbitrary HTML inside a KFE tag and it will be treated as alternate content for that SWF. The Tag Generator does this for you automatically. Properly nested alternative content looks like this:
[kml_flashembed movie="/my/great/movie.swf" width="400" height="300"]
[/kml_flashembed]
Configuration Options
KFE 2.1 features configuration options which allow you to customize how the plugin behaves as well as set all defaults for the Tag Generator and KFE tags that omit some parameters. In WordPress, you can find the options by navigating to Settings → Kimili Flash Embed. Unless otherwise noted, the default tag generator values will be blank or unselected. You’ll find the following options available to you:
SWFObject Configuration Defaults
Publish Method
Specifies the default publishing method for your SWF. If you omit this attribute from a KFE tag, whatever value you have set here will be applied to the tag. Default is static
Flash Version
Specifies the default Flash player version (Major.Minor.Release format) required to display your SWFs. If you omit this attribute from a KFE tag, whatever value you have set here will be applied to the tag. Default is 8.0.0
Adobe Express Install
Specifies whether or not you want to use Express Install functionality in your SWFs for users who don’t have the minimum version of the Flash Player you’ve defined installed. Default is yes.
SWF Definition Defaults
SWF Filename
This is the default SWF filename which is populated in the Flash (.swf) field in the Tag Generator. This is especially useful if you use a common player to play FLVs, for instance. You can specify a URL with an absolute file path (i.e. @/flies/flash/player.swf@). Default is untitled.swf.
Dimensions (width×height)
Specifies the default width and height for your SWFs. If you omit either of these attributes from a KFE tag, whatever value you have set here will be applied to the tag. Default is 400×300
Attributes
Flash Content ID
This is the CSS class name applied to your rendered Flash movies. This uniquely identifies the Flash movie so that it can be referenced using a scripting language or by CSS.
class
This is the CSS class name applied to your rendered Flash movies. If you omit this attribute from a KFE tag, whatever value you have set here will be applied to the tag. Default is flashmovie.
align
HTML alignment of the object element. If this attribute is omitted, it by default centers the movie and crops edges if the browser window is smaller than the movie. NOTE: Using this attribute is not valid in XHTML 1.0 Strict.
Parameters
play
Specifies whether the movie begins playing immediately on loading in the browser. The default value is true if this attribute is omitted.
loop
Specifies whether the movie repeats indefinitely or stops when it reaches the last frame. The default value is true if this attribute is omitted.
menu
Shows a shortcut menu when users right-click (Windows) or control-click (Macintosh) the SWF file. To show only About Flash in the shortcut menu, deselect this option. By default, this option is set to true.
quality
Specifies the trade-off between processing time and appearance. The default value is ‘high’ if this attribute is omitted.
scale
Specifies scaling, aspect ratio, borders, distortion and cropping for if you have changed the document’s original width and height.
salign
Specifies where the content is placed within the application window and how it is cropped.
wmode
Sets the Window Mode property of the Flash movie for transparency, layering, and positioning in the browser. The default value is ‘window’ if this attribute is omitted.
bgcolor
Hexadecimal RGB value in the format #RRGGBB, which specifies the background color of the movie, which will override the background color setting specified in the Flash file.
devicefont
Specifies whether static text objects that the Device Font option has not been selected for will be drawn using device fonts anyway, if the necessary fonts are available from the operating system.
seamlesstabbing
Specifies whether users are allowed to use the Tab key to move keyboard focus out of a Flash movie and into the surrounding HTML (or the browser, if there is nothing focusable in the HTML following the Flash movie). The default value is true if this attribute is omitted.
allowfullscreen
Enables full-screen mode. The default value is false if this attribute is omitted. You must have version 9.0.28.0 or greater of Flash Player installed to use full-screen mode.
allowfullscreeninteractive
Enables full-screen interactive mode, in which content running in Flash Player can fill the entire screen and accept text input. The default value is false if this attribute is omitted. You must have version 11.3.0 or greater of Flash Player installed to use full-screen interactive mode. See Adobe’s developer guide for more info.
allowscriptaccess
Controls the ability to perform outbound scripting from within a Flash SWF. If omitted, the default value is “sameDomain” in most situations, except if the user’s Flash Player version is lower than 9.0.115.0 and the Flash movie is published for FP7 or earlier. In that case, the default will be “always”.
allownetworking
Controls a SWF file’s access to network functionality. The default value is ‘all’ if this attribute is omitted.
base
Specifies the base directory or URL used to resolve all relative path statements in the Flash Player movie. This attribute is helpful when your Flash Player movies are kept in a different directory from your other files.
fvars
Allows you to pass variables to a Flash movie. You need to separate individual name/variable pairs with a semicolon (i.e. name=John Doe ; count=3).
Alternative Content Default
Alternate Content
Specifies the default “alternative content”:#altContent to display when your SWF isn’t rendered. Default is a “Get Flash Player” badge linked to Adobe’s Flash Player download page, rendered as follows:
Javascript Options
Create a reference to SWFObject.js?
Decide whether or not you want to create a reference to SWFObject 2.1 in the HTML of your page templates. It is useful to turn this off if you already have SWFObject being referenced elsewhere in your code. Note that SWFObject 2.x is NOT compatible with SWFObject 1.x! KFE 2 requires SWFObject 2.x. Default is true
Where do you want to reference SWFObject.js from?
If you choose to create a reference to SWFObject 2.1, you have 2 options in terms of where you reference it from. Internal creates a link to the copy of SWFObject bundled with the plugin. Google Ajax Library creates a link to the copy of SWFObject hosted in the Google’s Hosted Ajax Library. The advantage of this is that the Javascript gets served with correct cache headers and it saves you a bit of bandwidth on your server. Default is Google Ajax Library
Do you want to use SWFObject’s autohide functionality?
By default, SWFObject temporarily hides your SWF or alternative content until the library has decided which content to display. This option allows you to disable that behavior.
Backwards Compatibility Gotchas
KFE 2.0 is mostly backwards compatible with KFE 1.x, so if you’ve been using the 1.x version and just creating basic KFE tags, you should be able to upgrade with no issues whatsoever. There are, however, some attributes which were available in 1.x which are no longer available in 2.0. This is due primarily to changes in SWFObject itself when it went to 2.0, unless otherwise noted. The 1.x attributes which are no longer supported are:
detectkey
noscript – This is now handled by defining alternate content properly.
redirecturl
xiredirecturl
One other minor backwards compatibility issue for you has to do with the format of KFE tags. In very early versions of this plugin, you defined KFE tags using angle brackets –
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Kimili Flash Embed」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.4 | 2.1 | 2.2 | 2.3 | 2.4 | 2.5 | 1.4.1 | 1.4.2 | 1.4.3 | 2.0.1 | 2.0.2 | 2.0.3 | 2.1.1 | 2.1.2 | 2.1.3 | 2.1.4 | 2.1.5 | 2.2.1 | 2.3.1 | 2.3.2 | 2.4.1 | 2.5.1 | 2.5.2 | 2.5.3 | trunk |
延伸相關外掛(你可能也想知道)
WP-SWFObject 》這個外掛可以使用簡單的快捷標籤[swf]將 Flash 影片插入到 WordPress 中,並使用 SWFObject。, 功能:, , 簡單安裝和使用, 使用簡單的短碼插入 Flash 拍攝, 設...。
Easy Flash Embed 》使用 [swf] 短碼輕鬆鑲嵌 Flash,符合標準,並使用 SWFObject!, 在文本編輯器中,只需輸入類似以下內容:, [swf src=”http://www.example.com/my-flas...。
Allow Swf Upload 》允許使用者在上傳面板中上傳 SWF 檔案,因為所有使用者都需要此權限。。
Top Flash Embed 》!!!這個外掛的進一步開發已經停止!!!, 這個外掛讓您可以透過使用簡碼在文章或頁面中,從媒體庫或外部 SWF 檔案輕鬆嵌入 SWF 影片。, 功能, , 自動檢測 SWF 影...。
swfObject Reloaded 》這個外掛允許簡單地嵌入 swf 檔案並提供更好的 swf 媒體管理,允許設置 swf 檔案的高度、寬度和它們自己的最低 Flash 版本。, 此外,此外掛添加了一個 swfObj...。
Swf Upload Enabler 》這個簡單的外掛可以啟用「媒體上傳」區域的 SWF 上傳功能。。
JJ SwfObject 》允許您使用 Widget 或 shortcode 插入 SWF 檔案。, 您可以指定下列參數:, 注意:sc 代表 shortcode:, , Title:標題。不填寫則不會顯示標題。 (sc: title=...。
Flash Show And Hide Box 》Flash Show And Hide Box 允許我們方便地嵌入 Flash,並控制它的顯示和隱藏。, 有時我們需要在頁面上嵌入 Flash,但加載 Flash 會使頁面顯示緩慢並增加流量。...。
BillyBenSWF 》這是一個簡單的短碼,可在文章中包含 SWF。您只需提供圖片的地址(絕對或相對),並將 SWF 插入文章的大小中。當然,您可以通過短碼更改這些尺寸。您還可以提...。
Tierra's Billboard Manager 》Tierra Billboard Manager 外掛提供一個可客製化的「廣告看板面板」,讓發布者能夠透過該面板展示影像、動畫、音訊和影片檔案,藉此向訪客推廣他們想讓訪客注...。
Gr80 JWPlayer Plugin Helper Panel 》JWPlayer Panel 在您的文章撰寫面板中註冊了一個元數據框,您可以在其中輸入影片標題/網址/縮圖,並使用官方的 JWPlayer 在文章內容之前自動顯示它們(必須先...。
Flash Video Resizer 》這個外掛能夠使用 WordPress 管理面板中指定的寬度調整 Flash 和 HTML5 影片的大小。有一個不同的配置適用於移動設備的網站,但需要 [WordPress Mobile Pack]...。