# MediaDisplay Component + AS

**URL:** https://forum.kirupa.com/t/mediadisplay-component-as/112000
**Category:** Uncategorized
**Created:** [June 2, 2004, 2:00pm UTC](https://forum.kirupa.com/t/mediadisplay-component-as/112000 "2004-06-02T14:00:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![waztone](https://avatars.discourse-cdn.com/v4/letter/w/cdc98d/32.png) [@waztone](https://forum.kirupa.com/u/waztone)
#### Post date: [June 2, 2004, 2:00pm UTC](https://forum.kirupa.com/t/mediadisplay-component-as/112000/1 "2004-06-02T14:00:25Z")

</div>

Hi guys 'n galls!

I was wondering if it is possible to use AS with the mediadisplay component in FMX 2004 Pro.

Just like a movieClip where you can use script like this: [AS]  
\_root.test\_mc.url(“img/myimg.jpg”);  
[/AS]

is there some sort of AS that can be used to make the component look for an FLV file? Something like: [AS]  
\_root.videoHolder.url(“video/myvideo.flv”);  
[/AS]

I hope I’m making sense here.  
The reason I’m trying to do this is because I want to load content dynamically from an XML file. In this XML file there’s a node which has the location of a .flv file that can be played by the mediaComponent. The value from this node is passed to a variable in Flash. So the code would be videoHolder.url(variable).

Well, if anybody knows if this is possible, let me know.

-=W=-
