| Getting your Customized Link
The number of people who sign the Social Security petition after viewing your Flash will be part of your total score. While the voting interface will automatically include a customized URL for viewers to sign the petition, you can improve your score by including the customized URL right in your Flash application!
The URL will be provided via the query string. To get the link, you can use Flash's getURL() function.
For example, to create a button that links to the petition, using your customized URL, simply
attach the following code to the button:
on (release){
getURL (_root.moveonlink, "_blank");
}
The variable "moveonlink" will be set at the root level of your .swf
file by the html that we use to display your movie.
For more information on how html can be used to pass variables to flash
files, see Macromedia's documentation at:
http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_14253#querystring
© 2005 MoveOn.org Political Action. All Rights Reserved.
MoveOn.org Political Action and BUSH IN 30 YEARS are trademarks of MoveOn.org Political Action.
|