# Sending param using FlashVars

**URL:** <https://forum.kirupa.com/t/sending-param-using-flashvars/295738>\
**Category:** flash\
**Created:** [September 3, 2009, 5:12pm UTC](https://forum.kirupa.com/t/sending-param-using-flashvars/295738 "2009-09-03T17:12:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgmcs](https://avatars.discourse-cdn.com/v4/letter/m/278dde/32.png) [@mgmcs](https://forum.kirupa.com/u/mgmcs)\
**Post date:** [September 3, 2009, 5:12pm UTC](https://forum.kirupa.com/t/sending-param-using-flashvars/295738/1 "2009-09-03T17:12:18Z")

</div>

Hi,  
I want to send parameters from my HTML file to Flash file using the FlashVars tag. I used the following procedure but it isnt working -

In Flash file -  
var actionId:String = root.loaderInfo.parameters.actionId;

In html file -

[SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]\<[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f7f][SIZE=2][COLOR=#3f7f7f]object[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] … [/SIZE][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]\>[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#008080][LEFT]  
[/COLOR][/SIZE][SIZE=2][COLOR=#008080]  
[LEFT][/COLOR][/SIZE][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]\<[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f7f][SIZE=2][COLOR=#3f7f7f]param [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]name[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE]_[SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]“FlashVars” [/COLOR][/SIZE][/COLOR][/SIZE]_[SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]value[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE]_[SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]“actionId=11”[/COLOR][/SIZE][/COLOR][/SIZE]_[SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]/\>[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#008080]  
[/COLOR][/SIZE][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]…[/COLOR][/SIZE][/COLOR][/SIZE]  
[SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]\<[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f7f][SIZE=2][COLOR=#3f7f7f]embed [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]src[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE]_[SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]“widget.swf” FlashVars[/COLOR][/SIZE][/COLOR][/SIZE]_[SIZE=2]=[/SIZE]_[SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]“actionId=11” … [/COLOR][/SIZE][/COLOR][/SIZE]_[SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]/\>[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#008080][/LEFT]  
[/COLOR][/SIZE][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]\</[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f7f][SIZE=2][COLOR=#3f7f7f]object[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]\>[/COLOR][/SIZE][/COLOR][/SIZE]

[SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]and also added [SIZE=2][COLOR=#2a00ff]  
[SIZE=2][COLOR=#008080]‘FlashVars’[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000],[/COLOR][/SIZE][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]‘actionId=11’[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000],[/COLOR][/SIZE]  
[SIZE=2][COLOR=#000000]in Javascript as : [/COLOR][/SIZE]  
[SIZE=2][COLOR=#000000]… [/COLOR]  
[SIZE=2][COLOR=#000000]AC\_FL\_RunContent( … , [/COLOR][/SIZE]  
[SIZE=2][COLOR=#000000]‘FlashVars’[SIZE=2][COLOR=#000000],[/COLOR][/SIZE][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]‘actionId=11’[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000],[/COLOR][/SIZE]  
… )

NULL value is being passed instead of actionId as 11. What could be the issue here ? Please help.  
Thanks in advance,  
MG  
[/COLOR][/SIZE][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE]  
[/LEFT]
