# Use XML to choose FLV/MP3 for MediaPlayback control

**URL:** <https://forum.kirupa.com/t/use-xml-to-choose-flv-mp3-for-mediaplayback-control/184603>\
**Category:** flash\
**Created:** [April 6, 2006, 6:58am UTC](https://forum.kirupa.com/t/use-xml-to-choose-flv-mp3-for-mediaplayback-control/184603 "2006-04-06T06:58:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fourfivetwofour](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@fourfivetwofour](https://forum.kirupa.com/u/fourfivetwofour)\
**Post date:** [April 6, 2006, 6:58am UTC](https://forum.kirupa.com/t/use-xml-to-choose-flv-mp3-for-mediaplayback-control/184603/1 "2006-04-06T06:58:01Z")

</div>

As I am somewhat new to Flash I still haven’t gotten down how to properly use XML, etc., and how to apply that data to controls in Flash.

In peticular, I’d like to know if it’s possible (and how, of course) to choose the FLV/MP3 to be played in a MediaPlayback Control (Flash 8, Pro) from an external XML file, or some such.

The closest thing I found was in the LiveDocs, however I know so little that I don’t know how to implement it, or even if it can be used externally, or is actually part of ActionScript. It’s found @ [http://livedocs.macromedia.com/flex/15/flex\_docs\_en/00000445.htm](http://livedocs.macromedia.com/flex/15/flex_docs_en/00000445.htm)

Which shows this:

```auto
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" >

   <mx:VBox>

      <mx:MediaPlayback contentPath="http://myhost.com/media/MyVideo.flv"

         height="400" width="400" controllerPolicy="on" controlPlacement="left"

         autoPlay="false" />

   </mx:VBox>
</mx:Application>

```

Can anyone help me out? Thanks much, and thanks for your time… I know I’m wordy.

Four.
