5 Replies Latest reply on Aug 5, 2007 1:26 PM by RobertEdgar

    swa cast member receiving sound type

    RobertEdgar
      Earlier I listed a problem I was having with preloading a mp3 file. I've been able to confirm that I've now successfully preloaded the mp3 file, and am now importing it into a cast member (18).

      However, now I can't play it. I'm getting a "this file is causing a problem in the Shockwave Player" error message.
      This is the code on the frame that gives me that message:
      -----------------------------
      global mr_stat2
      global memberCheck
      on exitFrame
      mr_stat2 = member("MTRaudio1").mediaReady
      memberCheck = member("MTRaudio1").type
      alert ("Member Ready = " & mr_stat2)
      alert ("Member Type = " & memberCheck)
      if mr_stat2 > 0 then
      play member " http://memt2.robertedgar.com/Room1/AudioR/MTRaudio1.mp3"
      end if
      go to the frame + 1
      end
      ---------------------------------
      SO:
      MediaReady is giving me a "1", which I'm taking as verification that the file is loaded into the "MTRAudio1" member, which is #18.
      But I added a check to tell me the member type, and it is saying "sound". Perhaps the problem is that it is being loaded as a sound member, but should be loaded as a swa?

      All suggestions appreciated. Thanx.
      Robert
        • 1. Re: swa cast member receiving sound type
          RobertEdgar Level 1
          By the way, I'm programming this in Director MX in OSX on a MacBook Pro (intel Duo chip). I haven't seen any bugs posted about the Intel CPUs except that playback needs to be through rosetta, which is what I'm doing.
          • 2. Re: swa cast member receiving sound type
            Level 7
            How are you preloading the swa file? If you don't need it to loop, or
            otherwise be available locally, why don't you stream it?
            • 3. Re: swa cast member receiving sound type
              RobertEdgar Level 1
              My program is constantly and simultaneously loading new images and playing sounds, so having them all stream wouldn't work. This is all working fine as long as I play them locally, but I'm just not getting the Shockwave to work.

              My MP3 file is loading into the cast member (and I tested it by streaming and it worked too, as long as I play it from within the authoring environment). But it won't work when I try to play it in a browser.

              My symptom now is that I'm getting a Shockwave error message that I don't have a SWA Audio Xtra that it needs. This happens when I create a new swa cast member. But I've loaded every SWA Xtra that I have, and nothing is working. When I click past that error message, it continues until it loads the file, and then it gives a Shockwave error message that it is having trouble with the Shockwave file. This is my mp3 file that I'm loading, and my understanding is that I can preload and play a MP3 file just like a swa file.

              Perhaps my swa Xtra is corrupted? I've re-downloaded the Shockwave player, and I'm running in rosetta mode. Any ideas?

              Thanx
              Robert
              • 4. Re: swa cast member receiving sound type
                Level 7
                > My MP3 file is loading into the cast member (and I tested it by streaming and
                > it worked too, as long as I play it from within the authoring environment). But
                > it won't work when I try to play it in a browser.

                When you test in your browser, have you uploaded the files, or are you
                viewing them from your local machine? If the latter, you should read the
                docs for 'dswmedia'.
                • 5. Re: swa cast member receiving sound type
                  RobertEdgar Level 1
                  Thanks for your suggestion.
                  I've uploaded all the files to a server, though. That isn't the problem.

                  I have found one answer. As I noted, I'm using Director MX. I used to use this often, but am mostly using Flash lately, so I kind of unearthed it for this project. I just found this technote, that explains a few unanswered problems I've seen posted over the last week (not just mine). It has to do with updated Xtras for Director MX. I have a feeling I have the same problem with my Shockwave Xtras, which on my system are left over from Director 8.5. This would explain the error messages. Also, when I tried to follow the path to the swa Xtras from my xtrainfo.txt, surprise surprise...they weren't in the www.macromedia.com folders! No wonder my browser is telling me it can't find them, although playing it locally has no problem...
                  -r

                  NetLingo Xtra changes:
                  1. Fix for a browser only problem introduced with a recent security fix to the NetLingo Xtra.
                  Resolves netDone() Function returns 0 (FALSE), when used in a Shockwave movie netDone() function returns 0 (FALSE)
                  2. Allow errors (such as "url not found") to get caught while waiting for browser url resolution.