Show
Ignore:
Timestamp:
11/07/08 12:11:46 (16 months ago)
Author:
pablo
Message:

Fixed issue where plugins don't layout around the player if resizing=false.

Also added getPluginName and getPluginConfig to the View, which allows plugins to get their own configuration without knowing what flashvar was used to load them. This feature is not available for plugins which are built into the player, such as controlbar and playlist.

Finally, added a RandomColor plugin to demonstrate the plugin resizing and getPluginConfig features.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/as3/com/jeroenwijering/events/AbstractView.as

    r88 r108  
    77 
    88 
     9import flash.display.MovieClip; 
    910import flash.events.EventDispatcher; 
    10 import flash.display.MovieClip; 
    1111 
    1212 
     
    6666        public function sendEvent(typ:String,prm:Object=undefined):void { }; 
    6767 
     68        /** 
     69        * Find a plugin name among the player's loaded plugins. 
     70        * 
     71        * @param plg    The plugin to find. 
     72        **/ 
     73        public function getPluginName(plg:Object):String { return ""; }; 
     74 
     75        /** 
     76        * Get configuration variables specific to a plugin. 
     77        * 
     78        * @param plg    The plugin whose configuration to return. 
     79        **/ 
     80        public function getPluginConfig(plgname:Object):Object { return {}; }; 
     81 
     82         
    6883 
    6984}