我尝试将我从AmazonS3Exception: The AWS Access Key Id you provided does not exist in our records.]
Amazon.Runtime.Internal.HttpErrorResponseExceptionHandler.HandleException(IExecutionContext executionContext, HttpErrorResponseException exception) +580
Amazon.Runtime.Internal.ExceptionHandler1.Handle(IExecutionContext executionContext, Exception exception) +76
Amazon.Runtime.Internal.ErrorHandler.ProcessException(IExecutionContext executionContext, Exception exception) +197
Amazon.Runtime.Internal.ErrorHandler.InvokeSync(IExecutionContext executionContext) +73
Amazon.Runtime.Internal.PipelineHandler.InvokeSync(IExecutionContext executionContext) +16
Amazon.Runtime.Internal.CallbackHandler.InvokeSync(IExecutionContext executionContext) +27
Amazon.Runtime.Internal.PipelineHandler.InvokeSync(IExecutionContext executionContext) +16
Amazon.Runtime.Internal.Signer.InvokeSync(IExecutionContext executionContext) +25
Amazon.Runtime.Internal.PipelineHandler.InvokeSync(IExecutionContext executionContext) +16
Amazon.Runtime.Internal.CredentialsRetriever.InvokeSync(IExecutionContext executionContext) +29
Amazon.Runtime.Internal.PipelineHandler.InvokeSync(IExecutionContext executionContext) +16
Amazon.Runtime.Internal.RetryHandler.InvokeSync(IExecutionContext executionContext) +132
Amazon.Runtime.Internal.PipelineHandler.InvokeSync(IExecutionContext executionContext) +16
Amazon.Runtime.Internal.CallbackHandler.InvokeSync(IExecutionContext executionContext) +27
Amazon.Runtime.Internal.PipelineHandler.InvokeSync(IExecutionContext executionContext) +16
Amazon.S3.Internal.AmazonS3KmsHandler.InvokeSync(IExecutionContext executionContext) +29
Amazon.Runtime.Internal.PipelineHandler.InvokeSync(IExecutionContext executionContext) +16
Amazon.Runtime.Internal.EndpointResolver.InvokeSync(IExecutionContext executionContext) +27
Amazon.Runtime.Internal.PipelineHandler.InvokeSync(IExecutionContext executionContext) +16
Amazon.S3.Internal.AmazonS3PostMarshallHandler.InvokeSync(IExecutionContext executionContext) +29
Amazon.Runtime.Internal.PipelineHandler.InvokeSync(IExecutionContext executionContext) +16
Amazon.Runtime.Internal.Marshaller.InvokeSync(IExecutionContext executionContext) +25
Amazon.Runtime.Internal.PipelineHandler.InvokeSync(IExecutionContext executionContext) +16
Amazon.S3.Internal.AmazonS3PreMarshallHandler.InvokeSync(IExecutionContext executionContext) +29
Amazon.Runtime.Internal.PipelineHandler.InvokeSync(IExecutionContext executionContext) +16
Amazon.Runtime.Internal.CallbackHandler.InvokeSync(IExecutionContext executionContext) +27
Amazon.Runtime.Internal.PipelineHandler.InvokeSync(IExecutionContext executionContext) +16
Amazon.S3.Internal.AmazonS3ExceptionHandler.InvokeSync(IExecutionContext executionContext) +58
Amazon.Runtime.Internal.PipelineHandler.InvokeSync(IExecutionContext executionContext) +16
Amazon.Runtime.Internal.ErrorCallbackHandler.InvokeSync(IExecutionContext executionContext) +56
Amazon.Runtime.Internal.PipelineHandler.InvokeSync(IExecutionContext executionContext) +16
Amazon.Runtime.Internal.MetricsHandler.InvokeSync(IExecutionContext executionContext) +119
Amazon.Runtime.Internal.RuntimePipeline.InvokeSync(IExecutionContext executionContext) +26
Amazon.Runtime.AmazonServiceClient.Invoke(TRequest request, IMarshaller`2 marshaller, ResponseUnmarshaller unmarshaller) +190
Amazon.S3.AmazonS3Client.ListObjects(ListObjectsRequest request) +44
DownloadFile.GetFoldersOnly(String folder) in c:\Users\Hamzastein\Documents\Visual Studio 2013\WebSites\PhotoGallery\DownloadFile.aspx.cs:110
DownloadFile.Page_Load(Object sender, EventArgs e) in c:\Users\Hamzastein\Documents\Visual Studio 2013\WebSites\PhotoGallery\DownloadFile.aspx.cs:17
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
System.Web.UI.Control.OnLoad(EventArgs e) +95
System.Web.UI.Control.LoadRecursive() +59
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678
更改为actionscript 3
的代码。我对调用我创建的函数有疑问,例如:
html5 canvas
我想让以下功能调用function cleanSelection(){
this.a1.visible = true;
this.sa1.visible = false;
this.a2.visible = true;
this.sa2.visible = false;
}
function maxSelection(count){
cleanSelection();
count = 0;
return count;
}
来调用maxSelection()
cleanSelection()
如何调用这些功能?
答案 0 :(得分:0)
你应该把"绑定(这个)"在所有方法中:
function cleanSelection(){
this.a1.visible = true;
this.sa1.visible = false;
this.a2.visible = true;
this.sa2.visible = false;
}
function maxSelection(c){
cleanSelection.bind(this)();
c= 0;
return c;
}
var count = 0;
this.a1.addEventListener("click", fl_Click.bind(this));
function fl_Click() {
this.sa1.visible = true;
this.a1.visible = false;
count++;
if(count >= 2){
count = maxSelection.bind(this)(count);
}
}