Hi,

I'm trying to define a sound trough CSS, but it wont work. It will
only work if I embed the MP3 trough ActionScript. I find it a bit
unfair (for the MP3 file) that it will only work with images and not
with MP3s.

Below is an ActionScript embed of a PNG and an MP3 file and a CSS
embed of the same files. In the first one both files are embedded, in
the second, only the PNG is embedded... Why?



// This works for both files:

[Embed(source="image.png")]
public var image:Class;

[Embed(source="sound.mp3")]
public var sound:Class;




// This works only for the PNG:

MyComp
{
    image: Embed(source="image.png");
    sound: Embed(source="sound.mp3");
}



Thanks,
Claudia

Reply via email to