Class: UWA.Controls.Flash

UWA/Controls/Flash. UWA.Controls.Flash

new UWA.Controls.Flash(options)

Display a SWF Adobe Flash file.

Example
var myFlash = new UWA.Controls.Flash({
    url: 'http://example.com/animation.swf',
    flashVars: {
        test: 'hello'
    }
});

myFlash.inject(widget.body);
Parameters
Name Type Description
options Object

Options hash or a option/value pair.

Properties
Name Type Argument Default Description
url String <optional>
null

Flash content url

width String <optional>
'100%'

Flash width

height String <optional>
'100%'

Flash height

className String <optional>
'uwa-swf'

Customized container classname

flashVars String <optional>
''

Custom flashVars

pluginspage String <optional>

Flash plugin url ('http://www.macromedia.com/go/getflashplayer')

bgcolor String <optional>
false

Flash background color

wmode String <optional>
'opaque'

Flash transparent state

scale String <optional>
'exactfit'

Flash scale state

quality String <optional>
'high'

Flash quality

allowScriptAccess String <optional>
'sameDomain'

Allow Flash script access

allowfullscreen String <optional>
true

Allow Flash Flash fullscreenAllow

Extends

  • UWA.Controls.Abstract

Index

Members

<protected> flashVersion

Properties:
Name Type Description
flashVersion String

The current detected flash Version.

Methods

<protected> buildSkeleton()

Build main dom elements.

detectFlashVersion() → {Object}

Flash detection function from swfObject.

Returns

Object with major, minor and rev properties.

Type
Object