A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: FINALLY!! =====MIDI or MPEG thru FLASH !!!!

  1. #1
    Senior Member
    Join Date
    Sep 2000
    Location
    Hyderabad, AP, INDIA
    Posts
    131

    Lightbulb

    MIDI , Mpeg thru FLASH!!!???

    Now this is something that I found after 2 weeks on the net and a great guy at askme.com, paul doherty.

    This guys a whiz in Batch file and dos programming, and boy is it coming in use in FLASH!

    As far as i know there is no command in flash to open AND play a media file(mpeg, mp3, or MIDI..yes MIDI!!)

    if there was a way(Just think a MIDI file 12 kb in size plays for about 10 minutes!!) wudnt it be great...

    Fear not friends for I am here..
    Ok now to brass tacks..

    here goes..

    Basically point your flash button( that will open the media file) towards a batch file that you'll make.

    This batch file ( lets call it batchnew.bat ) will have this code:

    ================================================== =======
    @echo off
    C:\WINDOWS\MPLAYER.EXE/play %aha.midi
    exit
    ================================================== =======

    where aha is a midi file. Now this plays in the old media player thus the MPLAYER.exe. If u want to play a mpeg, mp3 file just put MPLAYER2.exe instead of MPLAYER.exe. For other batch killer aps that cud be integrated with Flash go to the aforementioned guys site from askme.com.

    Thats it.

    MIIZ-2001

  2. #2
    Senior Member
    Join Date
    Jun 2000
    Posts
    666
    Ummm I'm sorry this has been documented here on flashkit for like 2 years.. (well maybe just over 1 year)
    http://www.flashkit.com/tutorials/Pr...46/index.shtml

    Your better off using commands like start and cmd /c then calling directly to a location mplayer may not be at..

    Or better yet your better of using 3rd party tools which don't show that ugly DOS/Command Line window and which have better optional features..

  3. #3
    Senior Member
    Join Date
    Sep 2000
    Location
    Hyderabad, AP, INDIA
    Posts
    131

    resolved return of the prodigal...

    To the Master....from a sempei...

    The link u pointed out just shows how to open a text file.
    and we know this can be done without a batch file, in fact in flash 5 we can even import the text directly into a dynamic text field.

    Also theres no mention about opening and - like i emphasised - PLAYING a midi or mpeg file!

    Most of the flash related boards and BBs littered around the net have this question.

    So it was with this percept of helping these guys out that I posted my method...knowing that it is not flash centric.

    As regards the ugly DOS window... firstly it remains open for a few seconds...secondly as i mentioned there are numerous small applications ( om the guys page ) which can hide ths window.

    Im aware appl. like Jester and Jugglor can solve this in a jiffy but then one has to have them.

    Using a third party application has its own set of pros and cons...my method was a more direct and as i imagined better way...anyway to each his own...

    All I can say is May the Gods at macromedia put 3D in flash soon..till then...
    Cionara!

    MIIZ

  4. #4
    Senior Member
    Join Date
    Jun 2000
    Posts
    666
    I do assume that people can grasp the concept in the tutorial that you can simply do anything by changing name.txt to name.mp3 or whatnot.. (but then again not every one gets that)

    However, this question had been addressed many times here at flashkit and on the usenet.. if you don't believe me apply a search and you will find the information here.. or on the usenet http://groups.google.com

    In your list of 3rd party tools you didn't mention mine or northcode's I assume you are unfamiliar with them..

    http://www.northcode.com (commercial)
    http://flashtools.net (freeware)

    And this tools feature may be of particular interest to you..
    http://flashtools.net/tutorials/ftoo...ying_audio.htm

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