views:

20

answers:

0

Hello. Please help me. i have a flash embed in my asp page`

<object width="550" height="350" classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1">
                        <param name="movie" value="flash_small.swf">
                        <param name="flashvars" value ="my_language=en-EN">
                        <embed src="Flash/flash_small.swf" width="550" height="350"
                        flashvars = "my_language=en-EN"; >
                        </embed>
                    </object>

i want to pass flashvar parameter my current language of page (cultureinfo)

<object width="550" height="350" classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1">
                        <param name="movie" value="flash_small.swf">
                        <param name="flashvars" value ="my_language=<%$ Thread.CurrentThread.CurrentCulture.EnglishName %>">
                        <embed src="Flash/flash_small.swf" width="550" height="350"
                        flashvars = "my_language=<%$ Thread.CurrentThread.CurrentCulture.EnglishName %>"; >
                        </embed>
                    </object>

but i get an run-time errorLiteral expressions like '<%$ Thread.CurrentThread.CurrentCulture.EnglishName %>' are not allowed. Use " /> instead`

please help. how to run asp code in embed object