I got it. I swear I had the absolute link in there correct the first time. It works. Thanks for you help.
On Oct 23, 12:18 pm, oceanguy <[EMAIL PROTECTED]> wrote: > I just ran into this as well. Generally, your mp3 files are probably > in the same directory as your swf file. Unfortunately, if you don't > specify an absolute url, Flash assumes the files are relative to the > location of the page you're currently viewing, as in the html file. > Of course, with Cake the location of media files is nothing like the > locations of controllers. > > So I also chose #2. When creating parameters for your html object/ > embed code, you will want to include a "base" parameter which > specifies the location of your media. So, if your "src" parameter > pointing to your Flash file is something like: > 'src', '/img/flashfiles/demo', > > Then you will want to specify the "base" parameter as: > 'base','/img/flashfiles/', > > Hope this helps. > > 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 cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---