# Using flashVars

**URL:** <https://forum.kirupa.com/t/using-flashvars/193921>\
**Category:** Uncategorized\
**Created:** [July 19, 2006, 9:55am UTC](https://forum.kirupa.com/t/using-flashvars/193921 "2006-07-19T09:55:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![prakashbabu](https://avatars.discourse-cdn.com/v4/letter/p/c57346/32.png) [@prakashbabu](https://forum.kirupa.com/u/prakashbabu)\
**Post date:** [July 19, 2006, 9:55am UTC](https://forum.kirupa.com/t/using-flashvars/193921/1 "2006-07-19T09:55:14Z")

</div>

[FONT=Arial][SIZE=2]Hi,

I’m using the same SWF file for all my web pages, but i do not want it to play from frame 1 for all the pages. Each html page i send a FlashVar telling the swf file as to where(label) to start playing from. The actionscript always showed the variable as undefined.  
[/SIZE][/FONT]

[FONT=Arial][SIZE=2]\<object classid=“clsid:D27CDB6E-AE6D-11cf-96B8-444553540000” codebase=“[http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0](http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0)” width=“139” height=“70”\>  
\<param name=“movie” value="…/gifs/fac.swf"\>  
\<param name=“quality” value=“high”\>  
\<param name=flashVars value=“myName=Entrance” /\>  
\<embed src="…/gifs/fac.swf" width=“139” height=“70” quality=“high” pluginspage=“[http://www.macromedia.com/go/getflashplayer](http://www.macromedia.com/go/getflashplayer)” type=“application/x-shockwave-flash” myname=“Entrance”\>\</embed\>  
\</object\>[/SIZE][/FONT]

[FONT=Arial][SIZE=2]in the FLA[/SIZE][/FONT]

[FONT=Arial][SIZE=2]recText.text=\_root.myName[/SIZE][/FONT]

[FONT=Arial][SIZE=2]goToAndPlay(recText.text);

When i display the value of recText.text, it displays “undefined”

Can i get help on this ?  
[/SIZE][/FONT]
