layout="vertical"
horizontalAlign="center" title="Authorisation Required"
creationComplete="getRequestToken()"
- height="250">
+ height="290">
<mx:ViewStack id="contentStack" width="100%" height="100%">
label="http://oauth.dev.openstreetmap.org/oauth/authorize?somekey"
click="openURL(authoriseURL); tryAccessButton.enabled=true;"/>
<mx:Text width="100%">
- <mx:text>Once you've authorised the access click the 'Try Access' button below</mx:text>
+ <mx:text>Once you've authorised the access click the 'Try Access' button below</mx:text> <!-- ' -->
</mx:Text>
<mx:Text styleName="failText" visible="false" id="deniedLabel">
<mx:text><![CDATA[<b>Access was denied, please check, and try again</b>]]></mx:text>
</mx:Text>
+ <mx:HBox width="100%" horizontalAlign="right">
+ <mx:CheckBox id="rememberMe" label="Remember authorisation" selected="true"/>
+ </mx:HBox>
</mx:VBox>
</mx:VBox>
return _accessToken;
}
+ public function get shouldRemember():Boolean {
+ return rememberMe.selected;
+ }
+
private function accessTokenError(event:IOErrorEvent):void {
if ( lastHTTPStatus == 401 ) {
deniedLabel.htmlText = "<b>Access was denied, please check, and try again</b>";