# Add flashvars in AS2 Code

**URL:** https://forum.kirupa.com/t/add-flashvars-in-as2-code/297865
**Category:** Uncategorized
**Created:** [October 9, 2009, 11:19am UTC](https://forum.kirupa.com/t/add-flashvars-in-as2-code/297865 "2009-10-09T11:19:03Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![vineet](https://avatars.discourse-cdn.com/v4/letter/v/8e8cbc/32.png) [@vineet](https://forum.kirupa.com/u/vineet)
#### Post date: [October 9, 2009, 11:19am UTC](https://forum.kirupa.com/t/add-flashvars-in-as2-code/297865/1 "2009-10-09T11:19:03Z")

</div>

hi all

I m passing variable/ file name in html/ php like this

```auto

<PARAM NAME=FlashVars VALUE="flashvars=all_that.mp3"> 

```

I m NOT using playback component. so i cannot write

```auto

player.contentPath = flashvars

```

I m creating custom player and want to use flashvars in AS2 in my file and call it dynamically in PHP.

this is how i m calling the mp3 file

```auto

SD = new Sound();
SD.loadSound("all_that.mp3", true);

```

How can i pass flashvars in actionscript.

or is their anyother solution or alternative that i can use.

vineet
