Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Flash movie embedded in Director cannot open mp3 files greater than 31 characters

5 views
Skip to first unread message

hys7...@gmail.com

unread,
Sep 12, 2007, 2:01:10 AM9/12/07
to
Hi,

I have a Flash movie that loads and plays MP3 files from a track
listing, similar to iTunes in look and feel etc.
When a user clicks on a track in the listing a file path containing
the location of the MP3 file is loaded and played in the flash audio
player. All of the MP3 files are external to the Flash movie.

Ths Flash movie works fine when exported as a SWF file within both
Windows and OSX, however when I import the SWF movie into Macromedia
Director (MX 2004 on OSX 10.4.10) it no longer plays files with names
greater than 32 characters.

For example:
In Director this file name works as expected:
- track_001_album_001_artist_0.mp3

whilst this file does not:
- track_001_album_001_artist_001.mp3


Please help!
Tim

hys7...@gmail.com

unread,
Sep 12, 2007, 2:06:03 AM9/12/07
to

sorry, the title should be: Flash movie embedded in Director cannot
open mp3 files greater than 32 characters

hys7...@gmail.com

unread,
Sep 13, 2007, 1:57:50 AM9/13/07
to

I have found a work-around...
I am using the Buddy API and Buddy File XTRA's (http://
www.mods.com.au/) to return short file names to flash...

The process is:
- The flash movie is calling a Director function using:
getURL('lingo:getFileOsx("' + _global.file + '")');
- The Director function (getFileOsx) looks like this:
function getFileOsx(sFile)
{
baReturnUnixNames(true);
sFile = baUnixName(_movie.path) + sFile.replace(/\\/g, "/");
var oFlash = sprite(1).getVariable("_level0", false);
oFlash.radio.playFile(sFile);
}
- What it is doing is taking the long file name and returning a short
version of it using baUnixName. Flash is then receiving the short file
name via the function playFile, which plays the file!

The problem with the above is that the flash movie's player only plays
files when it is in Director... it doesn't work as a stand-alone flash
movie anymore.

I wish there was a more elegant solution, but this is all I have been
able to come up with so far.

Tim

0 new messages