Re: Re: Re: Re: Re: Re: [Flashcoders] Misreporting instanceof operator.

2006-08-29 Thread Ian Thomas
Again, how peculiar. I'd love to take a look at the internals of MovieClip and Flash's loader system to see what's causing that particular glitch! Cheers, Ian On 8/24/06, Chris Allen [EMAIL PROTECTED] wrote: Okay, I have fixed the problem. I would say that this is certainly bug with Flash,

Re: Re: Re: Re: Re: [Flashcoders] Misreporting instanceof operator.

2006-08-29 Thread Ian Thomas
On 8/24/06, Chris Allen [EMAIL PROTECTED] wrote: Thanks for your help on this Ian. I'm not sure I understand all of what you found here, so let me summarize with some questions to see if I got it right. Flash 6 SWFs fail every time when loaded remotely? - This hasn't been my experience. I've

Re: Re: Re: Re: [Flashcoders] Misreporting instanceof operator.

2006-08-24 Thread Ian Thomas
Okay, weirder and weirder: On my local machine loading from a local file, loading .swf v6 gives instanceof MovieClip=false and v7 and v8 give instanceof MovieClip=true. On a remote machine loading from that same remote machine, loading .swf v6 gives instanceof MovieClip=false and v7 and v8 give

Re: Re: Re: Re: [Flashcoders] Misreporting instanceof operator.

2006-08-24 Thread Ian Thomas
Oh, I should add - I get the same results when I throw the Fling code out completely and write a simple loader from scratch. Cheers, Ian On 8/24/06, Ian Thomas [EMAIL PROTECTED] wrote: I'm certainly running out of ideas for a simple fix, here - and it's definitely not the loading code, it's

Re: Re: Re: Re: Re: [Flashcoders] Misreporting instanceof operator.

2006-08-24 Thread Chris Allen
Thanks for your help on this Ian. I'm not sure I understand all of what you found here, so let me summarize with some questions to see if I got it right. Flash 6 SWFs fail every time when loaded remotely? - This hasn't been my experience. I've been able to load some small ones (20K) without the

Re: Re: Re: Re: Re: Re: [Flashcoders] Misreporting instanceof operator.

2006-08-24 Thread Chris Allen
Okay, I have fixed the problem. I would say that this is certainly bug with Flash, but there is a work around. Thanks to Keith Peters for mentioning this to me last night. So here's the deal... Back in the day before MovieClipLoader when you wanted to load and external SWF, you had to check a

Re: Re: Re: Re: Re: Re: [Flashcoders] Misreporting instanceof operator.

2006-08-24 Thread Johannes Nel
ha, how old school. when in doubt wait a frame or 15... On 8/24/06, Chris Allen [EMAIL PROTECTED] wrote: Okay, I have fixed the problem. I would say that this is certainly bug with Flash, but there is a work around. Thanks to Keith Peters for mentioning this to me last night. So here's the

Re: Re: Re: Re: Re: Re: [Flashcoders] Misreporting instanceof operator.

2006-08-24 Thread John Grden
Wow, and I thought KP was only good with random()! yeah yeah, I know, I owe you a beer for that one. On 8/24/06, Johannes Nel [EMAIL PROTECTED] wrote: ha, how old school. when in doubt wait a frame or 15... On 8/24/06, Chris Allen [EMAIL PROTECTED] wrote: Okay, I have fixed the problem.

Re: Re: Re: Re: [Flashcoders] Misreporting instanceof operator.

2006-08-23 Thread Chris Allen
On 8/23/06, Ian Thomas [EMAIL PROTECTED] wrote: Hi Chris, Having had a trawl through the source code, I see what you're getting at. The fact that MovieAsset doesn't extend MovieClip is nothing to do with the problem; MovieAsset wraps a MovieClip property and passes that back, and that should

Re: Re: Re: Re: [Flashcoders] Misreporting instanceof operator.

2006-08-23 Thread Ian Thomas
Hi Chris, I've tried that (with a bit tweaking for syntax errors) and it all works fine - instanceof returns the correct results. This is loading a clip I created from scratch (Flash 8, WinXP) - if you have a sample clip I can try that's failing for you, that's be good. However, I did have to

Re: Re: Re: Re: [Flashcoders] Misreporting instanceof operator.

2006-08-23 Thread Johannes Nel
also what bout the content you are loading in, have you tried changing that? On 8/23/06, Ian Thomas [EMAIL PROTECTED] wrote: Hi Chris, I've tried that (with a bit tweaking for syntax errors) and it all works fine - instanceof returns the correct results. This is loading a clip I created from

Re: Re: Re: Re: [Flashcoders] Misreporting instanceof operator.

2006-08-23 Thread Ian Thomas
Oh, I should add, this is after I commented out the line: if(targetMC instanceof MovieClip == false) targetMC.__proto__ = new MovieClip(); from MovieAssets - which I assume was your temporary hack to fix things. It all works for me without this line. Cheers, Ian On 8/23/06, Ian Thomas [EMAIL

Re: Re: Re: Re: [Flashcoders] Misreporting instanceof operator.

2006-08-23 Thread John Grden
Hey Ian, try loading something off of a web server thats takes at least a second or 2 to load On 8/23/06, Ian Thomas [EMAIL PROTECTED] wrote: Hi Chris, I've tried that (with a bit tweaking for syntax errors) and it all works fine - instanceof returns the correct results. This is loading a

Re: Re: Re: Re: [Flashcoders] Misreporting instanceof operator.

2006-08-23 Thread John Grden
Yes, we've tested with several SWF's varying in size and target player (6-8) On 8/23/06, Johannes Nel [EMAIL PROTECTED] wrote: also what bout the content you are loading in, have you tried changing that? On 8/23/06, Ian Thomas [EMAIL PROTECTED] wrote: Hi Chris, I've tried that (with a

Re: Re: Re: Re: [Flashcoders] Misreporting instanceof operator.

2006-08-23 Thread Ian Thomas
Hi John, Yeah, I've now tried it with a bunch of random downloaded movies and managed to get some to fail. I think I've nailed it - or at least, one thing that produces the problem. At least on my system - if you load in a .swf version 7 or 8, it works fine. If you load in a .swf version 6,

Re: Re: Re: Re: [Flashcoders] Misreporting instanceof operator.

2006-08-23 Thread John Grden
wow, no infact, that confuses me ;) I've been loading Flash8 and 7 files and they've failed along with the version 6 swf's. If I load the Fp8 version locally, it seems to work, but from a web server, it seems to not. On 8/23/06, Ian Thomas [EMAIL PROTECTED] wrote: Hi John, Yeah, I've now

Re: Re: Re: Re: [Flashcoders] Misreporting instanceof operator.

2006-08-23 Thread Ian Thomas
Weird. It's very reproducible here - I've tried varying sizes between 1Kb and 200Kb. They all fail if published to FP6, but work if published to FP7 and FP8 (the loader movie itself I've tested published to FP7 and FP8). I haven't tested a remote FP8 file, as I don't have one to hand. Gonna

Re: Re: Re: Re: [Flashcoders] Misreporting instanceof operator.

2006-08-23 Thread John Grden
cool, thanks Ian, I'll try the same tests with published swf's Really appreciate your help! On 8/23/06, Ian Thomas [EMAIL PROTECTED] wrote: Weird. It's very reproducible here - I've tried varying sizes between 1Kb and 200Kb. They all fail if published to FP6, but work if published to FP7 and