FlashDisplay

Kind of class: public class
Package:
Inherits from:
Version: 12 Mar 2010 Added backgroundAlpha property
7 Mar 2010
Author: John Polacek, john@johnpolacek.com
Classpath: com.johnpolacek.display.FlashDisplay
File last modified: Friday, 18 February 2011, 00:30:48
Loads and displays swf files.

Summary

Constructor
  • FlashDisplay (filepath:String, w:Number, h:Number, ba:Number, bc:uint = 0xFFFFFF)
Instance properties
  • flashWidth : Number
    • Sets width of the swf (can set to smaller size to crop)
  • flashHeight : Number
    • Sets height of the swf (can set to smaller size to crop)
  • backgroundAlpha : Number
    • Sets transparency of background shape behind loaded swf
  • backgroundColor : uint
    • Sets color of background shape behind loaded swf
Instance methods
  • onLoadComplete (event:Event) : void
    • Crops loaded swf to flashWidth/flashHeight, adds background and dispatches Event.COMPLETE
  • destroy () : void
Instance methods inherited from ContentDisplay

Constructor

FlashDisplay

function FlashDisplay(filepath:String, w:Number, h:Number, ba:Number, bc:uint = 0xFFFFFF)
Parameters
 

Instance properties

backgroundAlpha

backgroundAlpha:Number(read,write)

Sets transparency of background shape behind loaded swf

backgroundColor

backgroundColor:uint(read,write)

Sets color of background shape behind loaded swf

flashHeight

flashHeight:Number(read,write)

Sets height of the swf (can set to smaller size to crop)

flashWidth

flashWidth:Number(read,write)

Sets width of the swf (can set to smaller size to crop)

Instance methods

destroy

override function destroy() : void

Remove event listeners and clear children

onLoadComplete

override function onLoadComplete(event:Event) : void

Crops loaded swf to flashWidth/flashHeight, adds background and dispatches Event.COMPLETE