Creating A Flash Widget

From WidgetAvenue Wiki

Jump to: navigation, search

Creating a widget with WidgetAvenue is as easy as creating a web page. Here is simple example, using the Flash source format.

Getting the required parameters

In order to build the widget, we need at least the following parameters:

It is usually better to use the ratio parameter, if the widget is resizable, as the widget will then have a variable size, depending on space available on the host platform.

Building the URL to display the standalone version of the widget

To start with, the most simple option is to display the standalone version of your widget. The URL is built as follows if you have defined the ratio parameter:

http://www.widgetavenue.com/wdg/loaders/stn.php?root=flash&url=[Encoded URL of your source file]&ratio=[your ratio]

Otherwise, you should use the following URL

http://www.widgetavenue.com/wdg/loaders/stn.php?root=flash&url=[URL of source file]&width=[your width]&height=[your height]

For example, if your source Flash file is located at http://myserver.com/MyFlash.swf, and if your ratio equals 0.75, you will be able to display your widget at

http://www.widgetavenue.com/wdg/loaders/stn.php?root=flash&url=http%3A%2F%2Fmyserver.com%2FMyFlash.swf&ratio=0.75

If your URL is correct, you should get something similar to this, with your flash file instead of the one shown here. Then, clicking on install at the bottom of the widget allows you to install it on various host platforms.

Personal tools