Class CFlexWidget
CFlexWidget embeds a Flex 3.x application into a page.
To use CFlexWidget, set CFlexWidget::$name
to be the Flex application name (without
the .swf suffix), and set CFlexWidget::$baseUrl
to be URL (without the ending slash)
of the directory containing the SWF file of the Flex application.
- CComponent
- CBaseController
- CWidget
- CFlexWidget
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.0
Located at x2engine/framework/web/widgets/CFlexWidget.php
public
|
|
public
|
|
public
string
|
__construct(),
actions(),
getController(),
getId(),
getOwner(),
getViewFile(),
getViewPath(),
init(),
render(),
setId()
|
beginCache(),
beginClip(),
beginContent(),
beginWidget(),
createWidget(),
endCache(),
endClip(),
endContent(),
endWidget(),
renderFile(),
renderInternal(),
widget()
|
public
string
|
$name |
|
#
name of the Flex application. This should be the SWF file name without the ".swf" suffix. |
public
string
|
$baseUrl |
|
#
the base URL of the Flex application. This refers to the URL of the directory containing the SWF file. |
public
string
|
$width | '100%' |
#
width of the application region. Defaults to 450. |
public
string
|
$height | '100%' |
#
height of the application region. Defaults to 300. |
public
string
|
$quality | 'high' |
#
quality of the animation. Defaults to 'high'. |
public
string
|
$bgColor | '#FFFFFF' |
#
background color of the application region. Defaults to '#FFFFFF', meaning white. |
public
string
|
$align | 'middle' |
#
align of the application region. Defaults to 'middle'. |
public
string
|
$allowScriptAccess | 'sameDomain' |
#
the access method of the script. Defaults to 'sameDomain'. |
public
boolean
|
$allowFullScreen | false |
#
whether to allow running the Flash in full screen mode. Defaults to false. |
public
string
|
$altHtmlContent |
|
#
the HTML content to be displayed if Flash player is not installed. |
public
boolean
|
$enableHistory | true |
#
whether history should be enabled. Defaults to true. |
public
array
|
$flashVars | array() |
#
parameters to be passed to the Flex application. |
$actionPrefix,
$skin
|
public
string
|
$flashVarsAsString |
#
The flash parameter string. |
$controller,
$id,
$owner,
$viewPath
|