A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: swf file size

  1. #1
    Junior Member
    Join Date
    Jun 2004
    Location
    Ottawa, Canada
    Posts
    7

    swf file size

    I have a large swf file size and by looking at the swf file statistics, I saw that it is because of my mp3 clips.
    (which are 600ko) But I selected on the sound files "Stream"... so shouldn't they be loaded only when required (and not part of the swf file) ?
    Is there any way to stream them using http ?

    Erik.

  2. #2
    Senior Member
    Join Date
    Jun 2000
    Posts
    3,512
    They are still part of the swf even though you selected streaming. You might consider resampling the mp3 files using GoldWave, for instance, to reduce their size.

  3. #3
    Junior Member
    Join Date
    Jun 2004
    Location
    Ottawa, Canada
    Posts
    7
    Originally posted by Bob Hartzell
    They are still part of the swf even though you selected streaming. You might consider resampling the mp3 files using GoldWave, for instance, to reduce their size.
    THanks for your answer Bob ! That was fast ;-)

    I know that flash allows to create mp3 players that stream from http... are there any examples with KoolMoves ?

    Erik.

  4. #4
    Relaxing tmoore935's Avatar
    Join Date
    Oct 2001
    Location
    colorado, usa
    Posts
    1,713
    I have been playing with mp3's a lot latley and I have two examples if you are interested.

    This shows the bytes loaded and actually streams a mp3.
    http://www.diversioncentral.com/mp3player/stream2.html

    This has a real time equaizer and streams a swf file(the mp3 is embeded into the swf)
    http://home.att.net/~picdiversion/myplayer1.html

    The only thing that I cannot get koolmoves to do and that is to read the MP3's IDE tags which I can do with flashMX.

    I have a good 56k modem connection and the songs will play without pauses (most of the time). But the mp3s are at 32kbps mono 44100 sample rate.

    If you go to www.necromanthus.com you can also download a premade mp3 player that is ready to go.
    Last edited by tmoore935; 06-06-2004 at 03:25 PM.
    Any programming language is at its best before it is implemented and used.

  5. #5
    Junior Member
    Join Date
    Jun 2004
    Location
    Ottawa, Canada
    Posts
    7
    Originally posted by tmoore935
    I have been playing with mp3's a lot latley and I have two examples if you are interested.

    This shows the bytes loaded and actually streams a mp3.
    http://www.diversioncentral.com/mp3player/stream2.html

    This has a real time equaizer and streams a swf file(the mp3 is embeded into the swf)
    http://home.att.net/~picdiversion/myplayer1.html

    The only thing that I cannot get koolmoves to do and that is to read the MP3's IDE tags which I can do with flashMX.

    I have a good 56k modem connection and the songs will play without pauses (most of the time). But the mp3s are at 32kbps mono 44100 sample rate.

    If you go to www.necromanthus.com you can also download a premade mp3 player that is ready to go.
    Thanks alot for all these information!!! I found out how to get the mp3 streaming, it is pretty easy using ActionScript.

    I found a great tutorial on mp3 streaming at http://imm.sheridanc.on.ca/imm2003/joneseva/tutorial/.

    The last thing I am looking for is how to make a progress bar with Koolmoves. Anyone could help me for that?

  6. #6
    Relaxing tmoore935's Avatar
    Join Date
    Oct 2001
    Location
    colorado, usa
    Posts
    1,713
    The progress bar on my site is done by making a variable called done. It was made by trial and error and in pseudo code:

    var done = _currentframe/_totalframes;

    Then multiply the length (_width) of the progress bar to the value of done.
    Any programming language is at its best before it is implemented and used.

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