Controlling movieclips(avi)

Hi, I’m using a php script to load avi file to my Flash as movieclip.

How can I control the avi playback? Say if I have a stop button, how can I stop the avi from playing and while I have a play button and it will resume playing the video from where it stopped?

hi,

How are you loading the movie into flash?
As long as I know, you can’t load a .avi file. Are you using the php script to convert the .avi to .swf or .flv. Is this possible?

As long as you’re able to load the movie, I’d say that you control the loaded movie as you control any other.

Suppose you load it into a movie clip called my_mc, for example:


my_mc.stop():
// or
my_mc.gotoAndPlay(n);
// or
....

Hi, actually I’m not too sure how i can load avi into flash as my avi videos are stored in the server and I can get the filename thru MySql
Heres what someone has says in regards to getting video out into flash externally.

  1. write a php script. from it connect to the mysql database and
    echo the name and path to the avi file.
    like
    <?php echo “avifilename=” . $row[“avifilename”]; ?>

  2. use loadvars in flash to access this php
    oLoadvars = new LoadVars();
    oLoadvars.load(“http://…file.php”);

now you have

oLoadvars.avifilename with filename in flash.

  1. use this in loadmovie
    movEmptyMovieClip.loadMovie(oLoadvars.avifilename) ;

Does anyone thinks this could work?

Like I said, I don’t think it’s possible to load a .avi into Flash.
In MX or higher you can import it and export, as .swf or .flv (flash mx 2004 professional).

The code is correct, (or at least the logic is) the only problem is the extension: .avi.