FlashPlayer Class Reference

(Qtitan::FlashPlayer)

The FlashPlayer widget shows contents in Adode Flash. More...

Inherits NPluginWidget.

Public Types

enum FlashAlign { faNone, faLeft, faTop, faRight, faBottom }
enum FlashQuality { fqNone, fqLow, fqHigh, fqAutolow, ..., fqBest }
enum FlashSAlign { fslNone, fslLelf, fslTop, fslRight, ..., fslBottmRight }
enum FlashScale { fsNone, fsShowAll, fsNoBorder, fsExactfit }
enum FlashScriptAccess { fsaNone, fsaAlways, fsaSameDomain, fsaNever }
typedef FlashVars

Public Functions

FlashPlayer ( QWidget * parent = 0, Qt::WindowFlags f = 0 )
FlashAlign align () const
BoolValue allowFullScreen () const
FlashScriptAccess allowScriptAccess () const
BoolValue autoStart () const
const QString & backgroundColor () const
const QString & baseURL () const
FlashVars & flashVars ()
BoolValue loop () const
bool opaqueMode () const
FlashQuality quality () const
FlashSAlign salign () const
FlashScale scale () const
QString script_GetVariable ( const QString & variable )
void script_GotoFrame ( int frameNumber )
bool script_IsPlaying ()
void script_LoadMovie ( int layerNumber, const QString & url )
void script_Pan ( int x, int y, int mode )
int script_PercentLoaded ()
void script_Play ()
void script_Rewind ()
void script_SetVariable ( const QString & variable, const QString & value )
void script_SetZoomRect ( int left, int top, int right, int bottom )
void script_StopPlay ()
void script_TCallFrame ( const QString & target, int frameNumber )
void script_TCallLabel ( const QString & target, const QString & label )
int script_TCurrentFrame ( const QString & target )
QString script_TCurrentLabel ( const QString & target )
QString script_TGetProperty ( const QString & target, int prop )
int script_TGetPropertyAsNumber ( const QString & target, int prop )
void script_TGotoFrame ( const QString & target, int frameNumber )
void script_TGotoLabel ( const QString & target, const QString & label )
void script_TPlay ( const QString & target )
void script_TSetProperty ( const QString & target, int prop, const QString & value )
void script_TStopPlay ( const QString & target )
int script_TotalFrames ()
void script_Zoom ( int percent )
void setAlign ( FlashAlign align )
void setAllowFullScreen ( BoolValue value )
void setAllowScriptAccess ( FlashScriptAccess scriptAccess )
void setAutoStart ( BoolValue value )
void setBackgroundColor ( const QString & color )
void setBaseURL ( const QString & url )
void setLoop ( BoolValue value )
void setOpaqueMode ( bool value )
void setQuality ( FlashQuality q )
void setSAlign ( FlashSAlign salign )
void setScale ( FlashScale scale )
void setShowMenu ( BoolValue value )
void setTransparentMode ( bool value )
BoolValue showMenu () const
bool transparentMode () const

Reimplemented Public Functions

virtual const QString & getMimeType () const
virtual const QString & getPluginFileName () const
virtual void start ( const QString & file )

Signals

void script_FSCommand ( const QString & command, const QScriptValue & args )
void script_OnProgress ( int percent )
void script_OnReadyStateChange ( int state )

Reimplemented Protected Functions

virtual QString getBannerRes () const
virtual QString getBannerText () const

Additional Inherited Members

  • 58 properties inherited from QWidget
  • 1 property inherited from QObject
  • 19 public slots inherited from QWidget
  • 1 public slot inherited from QObject
  • 1 public variable inherited from QObject
  • 4 static public members inherited from QWidget
  • 4 static public members inherited from QObject
  • 31 protected functions inherited from Qtitan::NPluginWidget
  • 37 protected functions inherited from QWidget
  • 1 protected function inherited from QPaintDevice
  • 7 protected functions inherited from QObject
  • 1 protected slot inherited from QWidget
  • 1 protected type inherited from QPaintDevice
  • 2 protected variables inherited from QObject

Detailed Description

The FlashPlayer widget shows contents in Adode Flash.

See also NPWidget, Silverlight, and AcrobatReader.

Member Type Documentation

enum FlashPlayer::FlashAlign

enum FlashPlayer::FlashQuality

enum FlashPlayer::FlashSAlign

enum FlashPlayer::FlashScale

enum FlashPlayer::FlashScriptAccess

typedef FlashPlayer::FlashVars

Member Function Documentation

FlashPlayer::FlashPlayer ( QWidget * parent = 0, Qt::WindowFlags f = 0 )

FlashAlign FlashPlayer::align () const

See also setAlign().

BoolValue FlashPlayer::allowFullScreen () const

See also setAllowFullScreen().

FlashScriptAccess FlashPlayer::allowScriptAccess () const

See also setAllowScriptAccess().

BoolValue FlashPlayer::autoStart () const

See also setAutoStart().

const QString & FlashPlayer::backgroundColor () const

See also setBackgroundColor().

const QString & FlashPlayer::baseURL () const

See also setBaseURL().

FlashVars & FlashPlayer::flashVars ()

QString FlashPlayer::getBannerRes () const [virtual protected]

QString FlashPlayer::getBannerText () const [virtual protected]

const QString & FlashPlayer::getMimeType () const [virtual]

const QString & FlashPlayer::getPluginFileName () const [virtual]

BoolValue FlashPlayer::loop () const

See also setLoop().

bool FlashPlayer::opaqueMode () const

See also setOpaqueMode().

FlashQuality FlashPlayer::quality () const

See also setQuality().

FlashSAlign FlashPlayer::salign () const

FlashScale FlashPlayer::scale () const

See also setScale().

void FlashPlayer::script_FSCommand ( const QString & command, const QScriptValue & args ) [signal]

QString FlashPlayer::script_GetVariable ( const QString & variable )

Returns the value of the Flash variable specified by varName. Returns empty string if the variable does not exist. See http://www.adobe.com/support/flash/publishexport/scriptingwithflash/scriptingwithscript_03.html for more details.

void FlashPlayer::script_GotoFrame ( int frameNumber )

Activates the frame number specified by frameNumber in the current movie. If the data for a requested frame is not yet available, the player goes to the last frame available and stops, causing unexpected results during playback. Use the PercentLoaded() method to determine if enough of the movie is available to execute the GotoFrame() method. The argument frameNumber is zero-based; that is, frameNumber is 0 in the first frame of the movie, 1 for the second frame, and so on. This differs from the Goto action within Flash, which begins at 1. See http://www.adobe.com/support/flash/publishexport/scriptingwithflash/scriptingwithscript_03.html for more details.

bool FlashPlayer::script_IsPlaying ()

Returns true if the movie is currently playing. See http://www.adobe.com/support/flash/publishexport/scriptingwithflash/scriptingwithscript_03.html for more details.

void FlashPlayer::script_LoadMovie ( int layerNumber, const QString & url )

Loads the movie identified by url to the layer specified by layerNumber. See http://www.adobe.com/support/flash/publishexport/scriptingwithflash/scriptingwithscript_03.html for more details.

void FlashPlayer::script_OnProgress ( int percent ) [signal]

void FlashPlayer::script_OnReadyStateChange ( int state ) [signal]

void FlashPlayer::script_Pan ( int x, int y, int mode )

Pans a zoomed-in movie to the coordinates specified by x and y. Use mode to specify whether the values for x and y are pixels or a percent of the window. When mode is 0, the coordinates are pixels; when mode is 1, the coordinates are percent of the window. Pan does not pan beyond the boundaries of the zoomed-in movie. The argument type for all arguments is integer. See http://www.adobe.com/support/flash/publishexport/scriptingwithflash/scriptingwithscript_03.html for more details.

int FlashPlayer::script_PercentLoaded ()

Returns the percent of the Flash Player movie that has streamed into the widget so far; possible values are from 0 to 100. If Flash Player widget is not active return value is -1. See http://www.adobe.com/support/flash/publishexport/scriptingwithflash/scriptingwithscript_03.html for more details.

void FlashPlayer::script_Play ()

Starts playing the movie. See http://www.adobe.com/support/flash/publishexport/scriptingwithflash/scriptingwithscript_03.html for more details.

void FlashPlayer::script_Rewind ()

Goes to the first frame. See http://www.adobe.com/support/flash/publishexport/scriptingwithflash/scriptingwithscript_03.html for more details.

void FlashPlayer::script_SetVariable ( const QString & variable, const QString & value )

Sets the value of the Flash variable specified by variableName to the value specified by value. See http://www.adobe.com/support/flash/publishexport/scriptingwithflash/scriptingwithscript_03.html for more details.

void FlashPlayer::script_SetZoomRect ( int left, int top, int right, int bottom )

Zooms in on a rectangular area of the movie. The units of the coordinates are in twips (1440 units per inch). To calculate a rectangle in Flash, set the ruler units to Points and multiply the coordinates by 20 to get twips. (There are 72 points per inch.) See http://www.adobe.com/support/flash/publishexport/scriptingwithflash/scriptingwithscript_03.html for more details.

void FlashPlayer::script_StopPlay ()

Stops playing the movie. See http://www.adobe.com/support/flash/publishexport/scriptingwithflash/scriptingwithscript_03.html for more details.

void FlashPlayer::script_TCallFrame ( const QString & target, int frameNumber )

In the timeline specified by target, executes the action in the frame specified by frameNumber. See http://www.adobe.com/support/flash/publishexport/scriptingwithflash/scriptingwithscript_03.html for more details.

void FlashPlayer::script_TCallLabel ( const QString & target, const QString & label )

In the Timeline indicated by target, executes the action in the frame specified by the label frame label. See http://www.adobe.com/support/flash/publishexport/scriptingwithflash/scriptingwithscript_03.html for more details.

int FlashPlayer::script_TCurrentFrame ( const QString & target )

QString FlashPlayer::script_TCurrentLabel ( const QString & target )

Returns the label of the current frame of the timeline specified by target. If there is no current frame label, an empty string is returned. See http://www.adobe.com/support/flash/publishexport/scriptingwithflash/scriptingwithscript_03.html for more details.

QString FlashPlayer::script_TGetProperty ( const QString & target, int prop )

For the timeline indicated by target, returns a string indicating the value of the property specified by property. For property, enter the integer corresponding to the desired property. For a list of all properties and their corresponding integers, see http://www.adobe.com/support/flash/publishexport/scriptingwithflash/scriptingwithscript_04.html#69558 and http://www.adobe.com/support/flash/publishexport/scriptingwithflash/scriptingwithscript_03.html for more details.

int FlashPlayer::script_TGetPropertyAsNumber ( const QString & target, int prop )

For the timeline indicated by target, returns a number indicating the value of the property specified by property. For property, enter the integer corresponding to the desired property. For a list of all properties and their corresponding integers, see http://www.adobe.com/support/flash/publishexport/scriptingwithflash/scriptingwithscript_04.html#69558 and http://www.adobe.com/support/flash/publishexport/scriptingwithflash/scriptingwithscript_03.html for more details.

void FlashPlayer::script_TGotoFrame ( const QString & target, int frameNumber )

For the timeline indicated by target, goes to the frame number specified by frameNumber. See http://www.adobe.com/support/flash/publishexport/scriptingwithflash/scriptingwithscript_03.html for more details.

void FlashPlayer::script_TGotoLabel ( const QString & target, const QString & label )

For the timeline indicated by target, goes to the frame label specified by label. See http://www.adobe.com/support/flash/publishexport/scriptingwithflash/scriptingwithscript_03.html for more details.

void FlashPlayer::script_TPlay ( const QString & target )

Plays the timeline specified by target. See http://www.adobe.com/support/flash/publishexport/scriptingwithflash/scriptingwithscript_03.html for more details.

void FlashPlayer::script_TSetProperty ( const QString & target, int prop, const QString & value )

For the timeline indicated by target, sets the value of the property specified by property to the value specified by value. For property, enter the integer corresponding to the desired property. For a list of all properties and their corresponding integers, see http://www.adobe.com/support/flash/publishexport/scriptingwithflash/scriptingwithscript_04.html#69558 and http://www.adobe.com/support/flash/publishexport/scriptingwithflash/scriptingwithscript_03.html for more details.

void FlashPlayer::script_TStopPlay ( const QString & target )

Stops the timeline specified by target. See http://www.adobe.com/support/flash/publishexport/scriptingwithflash/scriptingwithscript_03.html for more details.

int FlashPlayer::script_TotalFrames ()

Returns the total number of frames in the movie. See http://www.adobe.com/support/flash/publishexport/scriptingwithflash/scriptingwithscript_03.html for more details.

void FlashPlayer::script_Zoom ( int percent )

Zooms the view by a relative scale factor specified by percent. Zoom(50) doubles the size of the objects in the view. Zoom(200) reduces the size of objects in the view by one half. Zoom(0) resets the view to 100%. See http://www.adobe.com/support/flash/publishexport/scriptingwithflash/scriptingwithscript_03.html for more details.

void FlashPlayer::setAlign ( FlashAlign align )

See also align().

void FlashPlayer::setAllowFullScreen ( BoolValue value )

See also allowFullScreen().

void FlashPlayer::setAllowScriptAccess ( FlashScriptAccess scriptAccess )

See also allowScriptAccess().

void FlashPlayer::setAutoStart ( BoolValue value )

See also autoStart().

void FlashPlayer::setBackgroundColor ( const QString & color )

See also backgroundColor().

void FlashPlayer::setBaseURL ( const QString & url )

See also baseURL().

void FlashPlayer::setLoop ( BoolValue value )

See also loop().

void FlashPlayer::setOpaqueMode ( bool value )

See also opaqueMode().

void FlashPlayer::setQuality ( FlashQuality q )

See also quality().

void FlashPlayer::setSAlign ( FlashSAlign salign )

void FlashPlayer::setScale ( FlashScale scale )

See also scale().

void FlashPlayer::setShowMenu ( BoolValue value )

See also showMenu().

void FlashPlayer::setTransparentMode ( bool value )

See also transparentMode().

BoolValue FlashPlayer::showMenu () const

See also setShowMenu().

void FlashPlayer::start ( const QString & file ) [virtual]

bool FlashPlayer::transparentMode () const

See also setTransparentMode().