RE: [Flashcoders] Cannot stop loaded movie

2006-03-20 Thread Jim Tann
rco Tabini Sent: 18 March 2006 04:06 To: Flashcoders mailing list Subject: Re: [Flashcoders] Cannot stop loaded movie Sorry, that was just a bad copy-and-paste job. Moving the listener to before the clip is loaded doesn't change anything. Good catch, though :) Marco Marc Hoffman wrote: &

Re: [Flashcoders] Cannot stop loaded movie

2006-03-19 Thread Marco Tabini
Actually, I've confirmed that this is a security limitation. It works because (probably) your loadTest.swf file is local--try loading up a file from a remote HTTP server, and then execute the SWF from the standalone player (not from within Flash). It won't work. I still think it's a pretty weir

Re: [Flashcoders] Cannot stop loaded movie

2006-03-19 Thread Andreas Rønning
var trgt:MovieClip = _root.createEmptyMovieClip("blabla",1); var listener:Object = {}; listener.onLoadInit = function(clip:MovieClip){ clip.gotoAndStop(25); } var mcl:MovieClipLoader = new MovieClipLoader(); mcl.addListener(listener); mcl.loadClip("loadTest.swf",trgt); This worked like a total

Re: [Flashcoders] Cannot stop loaded movie

2006-03-18 Thread Marco Tabini
Thanks Ian--but no dice. At this point, I'm willing to write this off to a sandboxing problem, although it makes no sense that you shouldn't be able to stop a movie that you load, regardless of where it comes from. I'm sure the folks at Macromedia have thought it through--although, personally,

Re: [Flashcoders] Cannot stop loaded movie

2006-03-18 Thread Ian Thomas
Is this a scoping issue? Are you sure that mcClip is defined and pointing at the right thing inside your function()? Try import mx.utils.Delegate; function onLoadedClip(clip:MovieClip) { clip.stop(); // or clip.gotoAndStop(1); } var mcl:MovieClipLoader=new MovieClipLoader(); mcl.onLoadInit=D

Re: [Flashcoders] Cannot stop loaded movie

2006-03-18 Thread Marco Tabini
Thanks Helen-- Still having the same problem though. Here's my code now: ld = new MovieClipLoader(); url = ld.onLoadInit = function() { mcClip.gotoAndStop (1); } ld.loadClip(url, mcClip); This only works if I publish in Flash 7 compatibility mode with local access only. If I set it

Re: [Flashcoders] Cannot stop loaded movie

2006-03-17 Thread Helen Triolo
What Marc said, plus use onLoadInit instead of onLoadComplete. From the help docs: "It's important to understand the difference between MovieClipLoader.onLoadComplete and MovieClipLoader.onLoadInit. The onLoadComplete event is called after the SWF, JPEG, GIF, or PNG file loads, but before th

Re: [Flashcoders] Cannot stop loaded movie

2006-03-17 Thread Marco Tabini
Sorry, that was just a bad copy-and-paste job. Moving the listener to before the clip is loaded doesn't change anything. Good catch, though :) Marco Marc Hoffman wrote: Try adding the listener to ld before loading the clip. At 07:07 PM 3/17/2006, you wrote: To add to the weirdness: this prob

Re: [Flashcoders] Cannot stop loaded movie

2006-03-17 Thread Marc Hoffman
Try adding the listener to ld before loading the clip. At 07:07 PM 3/17/2006, you wrote: To add to the weirdness: this problem only presents itself if I create the project in Flash 8, so I wonder whether I'm hitting my head against the new security model. Again, any help would be much appreciat

Re: [Flashcoders] Cannot stop loaded movie

2006-03-17 Thread Marco Tabini
To add to the weirdness: this problem only presents itself if I create the project in Flash 8, so I wonder whether I'm hitting my head against the new security model. Again, any help would be much appreciated. Marco Marco Tabini wrote: Hello-- I am trying to control a movie I load from a re

[Flashcoders] Cannot stop loaded movie

2006-03-17 Thread Marco Tabini
Hello-- I am trying to control a movie I load from a remote location. I've narrowed down my code to the smallest possible number of lines: ld = new MovieClipLoader(); ld.loadClip(url, mcClip); obj = new Object(); obj.onLoadComplete = function() { mcClip.gotoAndStop (10); } ld.addList