A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: XML Audio

  1. #1
    Junior Member
    Join Date
    Oct 2002
    Posts
    14

    XML Audio

    I'm currently importing images via an xml file. How can I integrate audio with each image?
    I've tried this:
    [Slides]
    [slideNode jpegURL="slides/photo1.jpg" audioclip="streetkids.mp3"][/slideNode]
    [/Slides]
    It doesn't work

    Thanks.
    Last edited by aurora14; 08-28-2003 at 05:52 PM.

  2. #2
    immoralator
    Join Date
    Dec 2001
    Location
    UK
    Posts
    270
    Well, are you accessing that attribute? I don't see any Flash code, but you need to access the attributes via something like this to get at the data.:
    code:
    firstChild.attributes.audioclip

    Whatever you do after that is up to you, but you need to tell Flash where to look for the url of the MP3 before anything else.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center