Does this type of thing work in HTML CSS?

  How do you access / play / use a mp3 file embedded in CSS?

  I never even thought of trying something like this.


Claudia Barnal wrote:
> 
> 
> 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

-- 
Jeffry Houser, Technical Entrepreneur, Software Developer, Author, 
Recording Engineer
AIM: Reboog711  | Phone: 1-203-379-0773
--
My Company: <http://www.dot-com-it.com>
My Podcast: <http://www.theflexshow.com>
My Blog: <http://www.jeffryhouser.com>

Reply via email to