[thelist] Flash / v5 / loadMovie("movie.swf", movie01);

jed mojojojo at ihug.com.au
Mon Jul 9 06:33:42 CDT 2001


> loadMovie ("test.swf", "_root.movie01");

I tend to use this syntax:

_root.movie01.loadMovie("test.swf");    although your script does look ok

Also have you tried putting a second frame in your script timeline with a
stop() action?
I have had problems with 1 frame movies and sometimes the script will be
getting executed every frame

Otherwise it's possible your movie hasn't loaded yet before calling play()
as you're loading and playing in the same frame.  Actionscript has event
handlers which is what the onClipEvents() do
so you could put an action on the empty movieClip like this:
Right Click Clip->Actions:
onClipEvent(load){
    play();
}

or change your script to this:
fscommand ("allowscale", "false");
fscommand ("fullscreen", "true");
loadMovie ("test.swf", "_root.movie01");
_root.movie01._x = 0;
_root.movie01._y = 0;
_root.movie01onLoad = play();

hope something helps as I know that Flash is the biggest pain in the arse
for debugging stuff (especially incorrectly spelt variables and picky syntax
that doesn't generate script errors)

Jed





More information about the thelist mailing list