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 charm just now. If it doesn't in your context, your problem is elsewhere, perhaps in the loaded swf.

- A

Marco Tabini wrote:
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, I find it all pretty puzzling.

Thanks to everyone who tried to help. If anyone else has any ideas/thoughts/suggestions, I am all ears. For the moment, I'll revert back to 7.0 and live without the cool 8.0 stuff.

Cheers,


Marco

Ian Thomas wrote:
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=Delegate.create(this,onLoadedClip);
mcl.load(url,myClip);

... from memory, that ought to work (as long as myClip is the clip
you're loading into)

(Delegate makes the calling of anonymous functions much clearer - see
http://www.osflash.org/flashcoders/as2#handling_scope_in_event_handlers
for more details on that one.
)

HTH,
  Ian

On 3/18/06, Marco Tabini <[EMAIL PROTECTED]> wrote:
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 to publish in Flash 8 mode, I have to switch to
network access only and, when I run the movie from the player the movie
loads but it doesn't stop.

Any more thoughts? Can anyone try and reproduce this to see if it also
happens to them? Any remote SWF move should do.

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to