[Flashcoders] File-name operand bug workaround

2006-12-06 Thread Mick G
Does anyone know of a work-around to this bug: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=4b687833 I'm getting javascript errors in IE using externalInterface and SWF file names that have a hyphen in them. Unfortunately I'm working with a content management system that renames SWF's

Re: [Flashcoders] File-name operand bug workaround

2006-12-06 Thread T. Michael Keesey
Well, one idea that comes to mind is that you could escape the filename (using the escape() function) before sending it through ExternalInterface, and then unescape it in JavaScript. Hyphens do not get converted by ActionScript's escape() function, but you can force it like so:

Re: [Flashcoders] File-name operand bug workaround

2006-12-06 Thread Mick G
This bug is actually more weird than you would think - it's not the passing of a string with a hypen that is causing the problem - it's simply a SWF with a hyphen calling any externalInterface call. Try this test: create a new Flash file - make sure you name it with a hypen in it eg. test-1.swf

Re: [Flashcoders] File-name operand bug workaround

2006-12-06 Thread T. Michael Keesey
On 12/6/06, Mick G [EMAIL PROTECTED] wrote: This bug is actually more weird than you would think - it's not the passing of a string with a hypen that is causing the problem - it's simply a SWF with a hyphen calling any externalInterface call. Whoops, I guess I should have read the TechNote