SWF-PHP Examples
The following examples cover most of what you can do with SWF-PHP.
The SWF example.swf has the following behavior:
- The dimensions of the resulting SWF object are always displayed (they are the stage.stageWidth and stage.stageHeight properties in AS3)
- It looks for 3 FlashVars:
- message - if set, the SWF will display the message text
- backgroundColor - controls the background color of the SWF
- color - controls the font color of the SWF
- The stage.scaleMode is set to StageScaleMode.NO_SCALE and the stage is aligned StageAlign.TOP_LEFT
- If fscommand is on, the SWF will display a button that triggers the fscommand functions