Professional Web Applications Themes

Trouble telling a media component playing mp3 2 stop - Macromedia Flash Actionscript

I am using a built in media component in FlashMX 2004, to play mp3 files. I have a few different mp3s in consistent key frames. Each has its own media player. This allows the user to click and listen to any of the files. All are in movie2.swf on _level2. When a button is clicked to load a new .swf on _level2, WHILE any of these mp3s is playing, It continues to play. Even if a new .swf is loaded in its place. How do I stop the mp3 from playing? thx for your time....

  1. #1

    Default Trouble telling a media component playing mp3 2 stop

    I am using a built in media component in FlashMX 2004, to play mp3 files. I have a few different mp3s in consistent key frames. Each has its own media player. This allows the user to click and listen to any of the files. All are in movie2.swf on _level2.

    When a button is clicked to load a new .swf on _level2, WHILE any of these mp3s is playing, It continues to play. Even if a new .swf is loaded in its place.

    How do I stop the mp3 from playing?

    thx for your time.


    666777888 webforumsuser@macromedia.com Guest

  2. #2

    Default Re:Trouble telling a media component playing mp3 2 stop

    Try the loadSound function.. this is what I'm doing and have 6 albums on one playable CD :)

    I pass a variable into a function and use this:

    _root.myMP3.loadSound(myFile, false);
    _root.myMP3.start((0)/1000, 1);

    using this, then all ya gotta do is put this code into a function:

    _root.myMP3.stop();

    That worked for me... working great so far :)


    James Carson
    Programmer, 3D Artist, Graphic Designer
    LSI/Star Mountain
    DJAnim8 webforumsuser@macromedia.com Guest

Similar Threads

  1. Stop FLV from auto loading and playing clip
    By qball172 in forum Macromedia Flash Player
    Replies: 2
    Last Post: July 1st, 03:34 AM
  2. Stop Playing Flash Automatically
    By breeeed in forum Macromedia Flash Player
    Replies: 3
    Last Post: January 30th, 05:53 AM
  3. Playing Media Over LAN
    By Christo in forum Ubuntu
    Replies: 4
    Last Post: May 29th, 01:51 AM
  4. FF 1.5 Flash 8 videos stop playing/no sound
    By ecclectic in forum Macromedia Flash Player
    Replies: 1
    Last Post: April 27th, 10:36 PM
  5. Playing Win Media 9 encoded movies on a Mac
    By Tryme in forum Mac Applications & Software
    Replies: 0
    Last Post: June 29th, 06:50 AM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139