Hey Adam.  Thanks for your help.  Question though.  This page is in
the Views section in a folder called Events and that thtml file is in
there.  This is what I have.

In the Flash file I have the code:  dd.loadSound("/images/
Cleve_Bus_Connect.mp3", false);

In the thtml file I have:

<!--[if !IE]> -->
<object type="application/x-shockwave-flash"
  data="/images/player.swf" width="250" height="35">
<!-- <![endif]-->

    <!--[if IE]>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/
swflash.cab#version=6,0,0,0"
  width="250" height="35">
  <param name="movie" value="/images/player.swf" />
<!--><!--dgx-->
  <param name="loop" value="false" />
  <param name="menu" value="false" />

I put all the files in an images folder in the Views>>Events folder
and am still getting the same results?  Any ideas?  Thanks

On Oct 22, 7:17 pm, Adam Royle <[EMAIL PROTECTED]> wrote:
> The issue is that flash is looking in the wrong place for your mp3
> file. Relative paths are relative to the *HTML page* when they are
> embedded. So you either need to:
>
> 1. Use a relative path from the site root (eg "/images/
> Cleve_Bus_Connect.mp3") in your player.swf
> 2. Pass the location to the mp3 as a parameter to your swf (this is
> what I usually do)
> 3. Write some code in player.swf to create an absolute path based on
> the _root._url value (a bit more complex)
>
> My final tip is to use Firebug whenever you're debugging issues like
> this - it shows what url flash is trying to load, and which ones are
> 404 not found.
>
> Cheers,
> Adam
>
> On Oct 23, 3:47 am, tapupartforpres <[EMAIL PROTECTED]> wrote:
>
> > Hello.  I have a flash player that is playing a mp3 on our site.  It
> > is not playing the linked mp3 file 
> > (http://www.cbcmagazine.com/october/events).  But when I go directly to
> > the file on the server it plays fine (http://www.cbcmagazine.com/
> > images/player.swf).  Has anyone seen this happen with mp3 files linked
> > to a flash player?  Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to