Contao flash content extension
PHP
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
system/modules/flash_content Reordered the file structure Apr 14, 2012
README.md Adjusted the README text accordingly Apr 14, 2012
flash.php Version 1.2.0 Aug 11, 2011

README.md

Contao Flash Content Extension

This is the "Flash Content" extension for Contao Open Source CMS, which allows you to manage the contents of your Flash movie in Contao and to dynamically load them into the Flash movie.

Installation

The extension can be installed using the Contao extension manager in the Contao back end. If you prefer to install it manually, download the files here:

http://www.contao.org/en/extension-list/view/flash_content.10020009.en.html

Usage

Here is the code you have to add to your Flash movie to load the contents:

TextField.prototype._loadArticle = function(flashID) {
    tf = this;
 
    // Enable HTML mode and remove content
    tf.html = true;
    tf.htmlText = "";
 
    // Instantiate a new LoadVars object
    lv = new LoadVars();
    lv["flashID"] = flashID;
    lv.sendAndLoad(URL + "flash.php", lv, "POST");
 
    lv.onLoad = function(success) {
        if (success) {
            tf.htmlText = lv["content"];
        }
    }
}
 
// Load the Flash content "myArticle" into the text field "myTextBox"
myTextBox._loadArticle("myArticle");

Support

https://github.com/contao/flash_content/issues