SWF DEBUG: Exception: Error: Error #2176

Why am I getting the error :
SWF DEBUG: Exception: Error: Error #2176

My Flash Version is 10,0,12,36

Please help... thanks

The complete output in the SWFupload debug window :
---SWFUpload Instance Info---
Version: 2.2.0 Beta 3
Movie Name: SWFUpload_0
Settings:
upload_url: ../uploader.aspx
flash_url: swfupload/swfupload.swf
use_query_string: false
requeue_on_error: false
http_success:
file_post_name: Filedata
post_params: [object Object]
file_types: *.XML
file_types_description: XML Files
file_size_limit: 102400
file_upload_limit: 0
file_queue_limit: 0
debug: true
prevent_swf_caching: true
button_placeholder_id:
button_image_url:
button_width: 1
button_height: 1
button_text:
button_text_style: color: #000000; font-size: 16pt;
button_text_top_padding: 0
button_text_left_padding: 0
button_action: -110
button_disabled: false
custom_settings: [object Object]
Event Handlers:
swfupload_loaded_handler assigned: true
file_dialog_start_handler assigned: false
file_queued_handler assigned: false
file_queue_error_handler assigned: true
upload_start_handler assigned: true
upload_progress_handler assigned: true
upload_error_handler assigned: true
upload_success_handler assigned: true
upload_complete_handler assigned: true
debug_handler assigned: true

SWF DEBUG: SWFUpload Init Complete
SWF DEBUG:
SWF DEBUG: ----- SWF DEBUG OUTPUT ----
SWF DEBUG: Build Number: SWFUPLOAD 2.2.0 Beta 3 2008-12-05
SWF DEBUG: movieName: SWFUpload_0
SWF DEBUG: Upload URL: ../uploader.aspx
SWF DEBUG: File Types String: *.XML
SWF DEBUG: Parsed File Types: xml
SWF DEBUG: HTTP Success: 0
SWF DEBUG: File Types Description: XML Files (*.XML)
SWF DEBUG: File Size Limit: 104857600 bytes
SWF DEBUG: File Upload Limit: 0
SWF DEBUG: File Queue Limit: 0
SWF DEBUG: Post Params:
SWF DEBUG: ASPSESSID=ezei4e5533riga4515nnvk55
SWF DEBUG: ----- END SWF DEBUG OUTPUT ----
SWF DEBUG:
Removing Flash functions hooks (this should only run in IE and should prevent memory leaks)
SWF DEBUG: Event: fileDialogStart : Browsing files. Multi Select. Allowed file types: *.XML
SWF DEBUG: Exception: Error: Error #2176

gyphie's picture

Hmmm

This should only happen if you are calling selectFiles when using Flash Player 10.

This was re-enabled in beta 4 for those that are sure they are using Flash Player < 10 and still want to use the old selectFile functions.

Everyone else, unless you know what you are doing and are will to accept 2176 errors, should NOT call selectFile and MUST use the Flash button to trigger the File Browser Dialog window.

Hi, First, thanks for the

Hi,
First, thanks for the response.

Now, I am not sure about the Flash Button. I was following the samples which I downloaded. What is a flash button?

Thanks

Example?

Is there an example that makes the use of the flash button?

gyphie's picture

Flash Button

Flash 10 no longer lets us cause a File Browser to display from a click on an HTML button (<input type="file" />) or other element/JavaScript action.

In v2.2.0 we must display a Flash Animation/Movie on the page to act as the button.

All the demos at http://demos.swfupload.org are using v2.2.0 and the Flash button. If you right click on the button that causes the file dialog to display you will see the Flash context menu.

When instantiating SWFUpload on your page you provide the button_placeholder_id setting. This indicates the HTML element that SWFUpload should replace with the Flash Button.

Now it degrades

Thanks Gyphie.

I got the demos, used the button from the demo, added the span on the page for button_paceholder_id, but now when my page loads it degrades and show the section defined if flash is not available. I have verified I have flash 10 installed and enabled in my browser.

Here is the debug if it helps:

---SWFUpload Instance Info---
Version: 2.2.0 Beta 3
Movie Name: SWFUpload_0
Settings:
upload_url: ./UploadOrder2FileInit.aspx
flash_url: swfupload/swfupload.swf
use_query_string: false
requeue_on_error: false
http_success:
file_post_name: Filedata
post_params: [object Object]
file_types: *.XML
file_types_description: XML Files
file_size_limit: 102400
file_upload_limit: 0
file_queue_limit: 0
debug: true
prevent_swf_caching: true
button_placeholder_id: spanButtonPlaceHolder
button_image_url: swfupload/upload.png
button_width: 61
button_height: 22
button_text:
button_text_style: color: #000000; font-size: 16pt;
button_text_top_padding: 0
button_text_left_padding: 0
button_action: -110
button_disabled: false
custom_settings: [object Object]
Event Handlers:
swfupload_loaded_handler assigned: true
file_dialog_start_handler assigned: false
file_queued_handler assigned: false
file_queue_error_handler assigned: true
upload_start_handler assigned: true
upload_progress_handler assigned: true
upload_error_handler assigned: true
upload_success_handler assigned: true
upload_complete_handler assigned: true
debug_handler assigned: true