all groups > flash (macromedia) > august 2006 >
You're in the

flash (macromedia)

group:

Urgent help needed



Urgent help needed specialmee
8/31/2006 9:03:16 PM
flash (macromedia): I need instructions for being able to play SWF files consecutively.

For example, say I have 3 SWF files test1.swf, test2.swf and test3.swf. I need
to be able to play these 3 files consecutively.

I know that you can put a command on the last frame of test1.swf to tell it to
open and play test2.swf next. I want to know how to do that, WITHOUT having to
"publish" the entire swf file again (which can take up to a couple of hours for
a 20 min clip).

Alternatively, I want to know how to create an HTML file (preferable) or
another file that will play the SWF files in sequence. If I put tags for
test1.swf and test2.swf in the same HTML file, what I am not getting is that
they are played simulataneously rather than in sequence.

Finally I would like to know how to put the SWF files on a CD or DVD so that
it would play in sequence if put into a DVD player to be played on a TV. If
this is not possible, I can accept that.

It is however essential that I get instructions of how to play SWF files in
sequence.
Re: Urgent help needed FlashJester Support Team
9/1/2006 12:00:00 AM
Use the loadmovie command. Refer to help file.

For DVD read this

http://flashjester.com/index.php?section=faq_search&search=dvd

Good Luck

Regards
FlashJester Support Team
e. - support@flashjester.com
w. - http://www.flashjester.com

There is a very fine line between "hobby" and
"mental illness."

Re: Urgent help needed support NO[at]SPAM northcode.com
9/1/2006 1:22:09 PM

For the example code below, I've assumed that your clips are called
1.swf, 2.swf and 3.swf and at the end of the loop 1.swf will be
replayed. You can easily change the SWF names and what happens at the
end of the loop.

Just create a new SWF called control.swf (or whatever you like) and
drop the code below into the first frame. Then put all the other SWF
files in the same folder as control.swf. When you run controller.swf
it will take care of loading and playing your other SWF files for you.

_root.num = 0;

_root.onEnterFrame = function()
{
if (_root.target._currentframe == _root.target._totalframes)
{
_root.num++;
if (_root.num > 3) _root.num = 1;
swf = String(_root.num) + ".swf";
_root.target.loadMovie(swf);
}
}

You won't be able to keep your stuff in Flash if your making DVDs, at
least DVDs that will work in standard players on your TV. You can
(obviously) burn all your files to CD or DVD for playback on
computers, that part is easy...

Tim Goss
Northcode Inc.
http://www.northcode.com
AddThis Social Bookmark Button