Ask a Question related to Coldfusion Flash Integration, Design and Development.

  1. #1

    Default Playing MP3s

    I am trying to play an MP3 file from coldfusion. The code im using is the
    following:

    <cfsavecontent variable="ButtonClick">

    var my_sound:Sound = new Sound();
    sound.loadSound("murhallini.mp3", true);

    </cfsavecontent>

    This is invoked by the onclick method of a button on the flash form:

    <cfinput type="button" name="Play" size="10" value="Play" tooltip="Click to
    Play" enabled = "true" onClick="#ButtonClick#"/>

    When I click this button i get an error saying that I cannot use 'NEW'.

    Anyone has an idea how i can play and MP3 which the user selects from a grid?
    That is, I have to pass the mp3 file name to the playing function.

    acilia Guest

  2. Similar Questions and Discussions

    1. Serving 'non-traceable' mp3s
      Ok (I know this is a cfcontent question - but I'm hoping someone has done this in flash and can help), I've been trying to use FLASH as an mp3...
    2. looping streaming mp3s
      I currently have a list component and a MediaPlayback component on the stage with this code: import mx.controls.list; import mx....
    3. How to stream MP3s stored above the root
      My mp3s are kept above the root to protect them from unauthorized download. I am currently using cfcontent to dynamically retrieve the audio files...
    4. Importing/ Streaming audio (.mp3s)
      Ok.... Here's the situation: I have a site that I'm building: http://www.XtremeIllusions.net and on one of the 'HighBandwidth' pages, I have 2...
    5. Streaming mp3s
      Hello all, I am interested in a way to stream mp3s using PHP. In the past I used Ming (http://ming.sourceforget.net) to generate a flash movie...
  3. #2

    Default Re: Playing MP3s

    acilia,

    New is one of several reserved words that can't be used in Actionscript
    when in Flash Forms. I can't remember the exact syntax but there is a
    work-around. Go to [url]www.asfusion.com[/url]. I think that's where I saw it.

    HTH

    Mark

    Mark Forsberg Guest

Posting Permissions

  • You may not post new threads
  • You may 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