ticker.swf
FPP hotspot plugin for showing a ticker tape with text and images. Texts and images can be
linked to execute FPP commands, open web pages or send emails.
The following hotspot parameters are supported in FPP xml file:
In plugin external xml file, the following tags and attributes are supported:
Example plugin external xml file:
Furthermore the following format attributes are supported in all tags:
NOTES: All tag names must be written in lower case, but attribute names are case independent (bgColor is equal to bgcolor).
When setting ticker speed with the action="..." attribute, you can either give an absolute value in the range from -10 to +10, or use the "+" or "-" signs to increase or decrease the speed. When the speed value is positive, the ticker will move from right to left, and when it has a negative value, the ticker will move from left to right.
Examples:
If the command attribute contains an FPP command, it must have the prefix "event:", otherwise it will be interpreted as an url (that is the way this Flash component works).
| xmlfile | xmlFile=ticker.xml | plugin control XML file |
| action | action="speed=-6" | set or change ticker speed, |
| supported values: -10 - 10, + and - | ||
| or | ||
| action="stop=1" | will immediately stop the ticker | |
| or | ||
| action="restart=1" | restarts the ticker (from zero repetitions) |
In plugin external xml file, the following tags and attributes are supported:
| In <ticker> tag: | ||
| size | size="400:30" | absolute size of ticker window |
| or | ||
| size="100%:35" | relative size of ticker window | |
| bordercolor | bordercolor="#000000" | color of ticker window border |
| borderwidth | borderwidth="3" | width of ticker window border |
| bgcolor | bgcolor="#FFFFF0" | ticker window background color |
| speed | speed="6" | ticker speed: 1 - 10 (default 5) |
| repeat | repeat="0" | number of ticker passes (0 = unlimited) |
| tooltip | tooltip="1" | activate link tooltips, 0 or 1 |
| In <text> tag: | ||
| command | command="event:global.gotower()" | command executed when text is clicked (see below) |
| target | target="_blank" | used when opening a new web page |
| Ticker text is specified inside the <text> tag: | <text>This is a ticker text</text> | |
| In <image> tag: | ||
| url | url="img/thumb12.png" | image file url |
| command | command="http://mysite.com/panos" | command executed when image is clicked (see below) |
| target | target="_blank" | used when opening a new web page |
Example plugin external xml file:
<?xml version = '1.0'?> <ticker size="360:30" bgColor="#000000" borderColor="#FFFFFF" borderWidth="1" repeat="0" speed="5" font="Times New Roman" textColor="#5050FF" textSize="16" bold="0" italic="0" underline="0" > <image url="images/smiley1.png" command="event:pano.pan=100,3000;pano.tilt=-10,3000" /> <text font="Verdana" textColor="#00FF00">Donec venenatis commodo leo </text> <image url="images/pano1.jpg" command="event:global.goMariaHill()" /> <text textSize="24">Lorem ipsum</text> <text textSize="24" textColor="#FFFF00" command="mailto:tommy@wirestam.com"> dolor</text> <text textSize="24" textColor="#FF80FF">sit amet</text> <image url="images/smiley1.png" command="event:pano.pan=-100,3000;pano.tilt=10,3000" /> <text font="Comic Sans MS" textSize="16" bold="0" textColor="#FFFFFF" bgColor="#000080">consectetur adipiscing elit</text> <text textColor="#FF0000" bold="1" leftMargin="10">Morbi eget mattis sapien</text> </ticker>
font="Verdana"
textColor="#00FF00"
textSize="24"
bold="0"
italic="1"
underline="1"
bgColor="#000080"
leftMargin="10"
rightMargin="15"
Format attributes written in the <ticker> tag are used as default.
textColor="#00FF00"
textSize="24"
bold="0"
italic="1"
underline="1"
bgColor="#000080"
leftMargin="10"
rightMargin="15"
NOTES: All tag names must be written in lower case, but attribute names are case independent (bgColor is equal to bgcolor).
When setting ticker speed with the action="..." attribute, you can either give an absolute value in the range from -10 to +10, or use the "+" or "-" signs to increase or decrease the speed. When the speed value is positive, the ticker will move from right to left, and when it has a negative value, the ticker will move from left to right.
Examples:
| action="speed=4" | slow ticker speed - moving from right to left |
| action="speed=-8" | fast ticker speed - moving from left to right |
| action="speed=+" | adds 1 to ticker speed (may change ticker direction) |
| action="speed=-" | subtract 1 from ticker speed (may change ticker direction) |
If the command attribute contains an FPP command, it must have the prefix "event:", otherwise it will be interpreted as an url (that is the way this Flash component works).
| To execute an FPP command: | command="event:pano.pan=120,3000" |
| To open a web page in a new window: | command="http:mysite.com/panos" target="_blank" |
| And to open the email client: | command="mailto:myname@mysite.com" |
If tooltips are activated and a text or an image is lacking the "tooltip" attribute, up to 20 characters of the "command" will be shown instead.
The plugin is monitoring the xmlFile parameter. Setting it to a new value will make the plugin load and parse the new xml file and build a new ticker.
