A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: load external .avi files to play externally

  1. #1
    Member
    Join Date
    Jan 2003
    Location
    Melbourne
    Posts
    35

    load external .avi files to play externally

    what i want to do is to make a button load an external .avi or other media file [example .mp3, .wma,.mpg etc.] to play in windows media player or another media player and for the flash .exe windows projector to close in the process...

    attached is a picture of my flash windows projector which i want to perform this action.
    Attached Images Attached Images

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    fscommand with "exec" and a batch file in a subfolder ("fscommand") as described here:

    http://www.macromedia.com/support/fl...projectors.htm

    .avi type has to be associated with the WMPlayer on the user 's machine.

    To close the projector at the same time:

    fscommand ("quit");

  3. #3
    Member
    Join Date
    Jan 2003
    Location
    Melbourne
    Posts
    35
    aha.. i thank-you very much! BUT!!! as i am not an experienced programmer or pc user, you must explain what a batch file is and how i make such a file.

  4. #4
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    A batch file is simply a text file (Notepad), holding this:
    ---------------
    @ echo off
    cls
    start your.avi
    exit
    ---------------

    It should be located in the "fscommand" subfolder, as described in the link provided above.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center