Changeset 235
- Timestamp:
- 07/10/09 00:15:44 (4 months ago)
- Location:
- plugins/sharing
- Files:
-
- 3 modified
-
com/jeroenwijering/plugins/Sharing.as (modified) (3 diffs)
-
sharing.swf (modified) (previous)
-
sharing.xml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
plugins/sharing/com/jeroenwijering/plugins/Sharing.as
r229 r235 36 36 /** List with configuration settings. **/ 37 37 public var config:Object = { 38 botr:undefined,39 38 code:undefined, 40 link:undefined 39 link:undefined, 40 title:'Great%20video' 41 41 }; 42 42 /** Reference to the View of the player. **/ … … 104 104 config['link'] = view.config['sharing.link']; 105 105 setShare(); 106 } 107 if(config['botr']) { 108 var key:String = view.config['file'].substr(view.config['file'].lastIndexOf('/')+1,8); 109 config['code'] = '<embed src=http://content.bitsontherun.com/players/'+key+'-'+config['botr']+'.swf" '; 110 config['code'] += 'width="400" height="300" allowfullscreen="true" allowscriptaccess="always" />'; 111 setEmbed(); 112 if(view.config['link']) { 113 config['link'] = view.config['link']; 114 setShare(); 115 } 106 } else if (view.config['link']) { 107 config['link'] = view.config['link']; 108 setShare(); 109 } 110 if(view.config['title']) { 111 config['title'] = encodeURI(view.config['title']); 116 112 } 117 113 showHide('none'); … … 131 127 navigateToURL(new URLRequest(url)); 132 128 } else if (shareScreen.mouseX < 150) { 133 url = 'http://twitter.com/home?status= Great video: '+encodeURI(config['link']);129 url = 'http://twitter.com/home?status='+config['title']+': '+encodeURI(config['link']); 134 130 navigateToURL(new URLRequest(url)); 135 131 } else if (shareScreen.mouseX < 225) { 136 132 if(config['code']) { 137 url = 'http://www.myspace.com/Modules/PostTo/Pages/?t= Great%20video&c='+encodeURI(config['code']);133 url = 'http://www.myspace.com/Modules/PostTo/Pages/?t='+config['title']+'&c='+encodeURI(config['code']); 138 134 } else { 139 url = 'http://www.myspace.com/Modules/PostTo/Pages/?t= Great%20video&c='+encodeURI(config['link']);135 url = 'http://www.myspace.com/Modules/PostTo/Pages/?t='+config['title']+'&c='+encodeURI(config['link']); 140 136 } 141 137 navigateToURL(new URLRequest(url)); 142 138 } else { 143 url = 'mailto:?subject= Great%20video&body='+encodeURI(config['link']);139 url = 'mailto:?subject='+config['title']+'&body='+encodeURI(config['link']); 144 140 navigateToURL(new URLRequest(url),'_self'); 145 141 } -
plugins/sharing/sharing.xml
r226 r235 18 18 <flashvars> 19 19 <flashvar> 20 <name>botr</name>21 <default />22 <description>23 Only for Bits on the Run users. Set here the ID the player you want to use for embedding.24 BOTR will then automatically figure out the embed code and share link.25 </description>26 </flashvar>27 <flashvar>28 20 <name>code</name> 29 21 <default />
