CFlexWidget
CFlexWidget embeds a Flex 3.x application into a page.
To use CFlexWidget, set
name to be the Flex application name
(without the .swf suffix), and set
baseUrl to be URL (without the ending slash)
of the directory containing the SWF file of the Flex application.
Public Properties
Hide inherited properties
| Property | Type | Description | Defined By |
| actionPrefix |
string |
the prefix to the IDs of the actions. |
CWidget |
| align |
string |
align of the application region. |
CFlexWidget |
| allowFullScreen |
boolean |
whether to allow running the Flash in full screen mode. |
CFlexWidget |
| allowScriptAccess |
string |
the access method of the script. |
CFlexWidget |
| altHtmlContent |
string |
the HTML content to be displayed if Flash player is not installed. |
CFlexWidget |
| baseUrl |
string |
the base URL of the Flex application. |
CFlexWidget |
| bgColor |
string |
background color of the application region. |
CFlexWidget |
| controller |
CController |
the controller that this widget belongs to. |
CWidget |
| enableHistory |
boolean |
whether history should be enabled. |
CFlexWidget |
| flashVars |
array |
parameters to be passed to the Flex application. |
CFlexWidget |
| flashVarsAsString |
string |
Generates the properly quoted flash parameter string. |
CFlexWidget |
| height |
string |
height of the application region. |
CFlexWidget |
| id |
string |
id of the widget. |
CWidget |
| name |
string |
name of the Flex application. |
CFlexWidget |
| owner |
CBaseController |
owner/creator of this widget. |
CWidget |
| quality |
string |
quality of the animation. |
CFlexWidget |
| skin |
mixed |
the name of the skin to be used by this widget. |
CWidget |
| viewPath |
string |
Returns the directory containing the view files for this widget. |
CWidget |
| width |
string |
width of the application region. |
CFlexWidget |
Property Details
public string $align;
align of the application region. Defaults to 'middle'.
public boolean $allowFullScreen;
whether to allow running the Flash in full screen mode. Defaults to false.
public string $allowScriptAccess;
the access method of the script. Defaults to 'sameDomain'.
public string $altHtmlContent;
the HTML content to be displayed if Flash player is not installed.
public string $baseUrl;
the base URL of the Flex application.
This refers to the URL of the directory containing the SWF file.
public string $bgColor;
background color of the application region. Defaults to '#FFFFFF', meaning white.
public boolean $enableHistory;
whether history should be enabled. Defaults to true.
public array $flashVars;
parameters to be passed to the Flex application.
Generates the properly quoted flash parameter string.
public string $height;
height of the application region. Defaults to 300.
public string $name;
name of the Flex application.
This should be the SWF file name without the ".swf" suffix.
public string $quality;
quality of the animation. Defaults to 'high'.
public string $width;
width of the application region. Defaults to 450.
Method Details
|
public string getFlashVarsAsString()
|
| {return} |
string |
the flash parameter string. |
Generates the properly quoted flash parameter string.
|
public void registerClientScript()
|
Registers the needed CSS and JavaScript.
Renders the widget.