# Parsing in a path var to the flv component

**URL:** <https://forum.kirupa.com/t/parsing-in-a-path-var-to-the-flv-component/289108>\
**Category:** Uncategorized\
**Created:** [May 26, 2009, 2:20pm UTC](https://forum.kirupa.com/t/parsing-in-a-path-var-to-the-flv-component/289108 "2009-05-26T14:20:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sci](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@sci](https://forum.kirupa.com/u/sci)\
**Post date:** [May 26, 2009, 2:20pm UTC](https://forum.kirupa.com/t/parsing-in-a-path-var-to-the-flv-component/289108/1 "2009-05-26T14:20:39Z")

</div>

hello hello

ok, So I have been using the flv playback component for several projects… no problems there. I have been hard coding (in the components properties) the path to the flv source so far and now would like to parse in a variable to the component so I can alter the path without opening the flash file. I thought this would be relatively straight forward but I am hitting some problems with it. I followed the tutorial here:

[http://www.layersmagazine.com/flash-passing-variables.html](http://www.layersmagazine.com/flash-passing-variables.html)

but cannot get it to work. The player itself is being embedded on the page using the AC\_FL\_RunContent method ie:

\<script type=“text/javascript”\>  
if (hasRequestedVersion) {  
AC\_FL\_RunContent(  
“src”, “PreviewParseTest?video=Preview.flv”,  
“width”, “512”,  
“height”, “288”,  
“align”, “middle”,  
“id”, “news”,  
“quality”, “high”,  
“bgcolor”, “#000000”,  
“name”, “work display”,  
‘wmode’, “none”,  
“allowScriptAccess”,“sameDomain”,  
“type”, “application/x-shockwave-flash”,  
‘codebase’, ‘[http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab](http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab)’,  
‘allowFullScreen’, ‘true’,  
“pluginspage”, “[http://www.adobe.com/go/getflashplayer](http://www.adobe.com/go/getflashplayer)”

```
                        );
                        
                    } else {  
                        //&lt;![CDATA[
                        var alternateContent = '&lt;p&gt;You need flash to view this preview. Please &lt;a href="http://get.adobe.com/flashplayer" title="get adobe flash player here"&gt;click here&lt;/a&gt; to download the lastest flash player.&lt;/p&gt;';
                        document.write(alternateContent); 
                        //]]&gt; 
                    }
                    &lt;/script&gt;

```

What am I missing here? Any help, as ever would be really appreciated. Thanks
