douqingzhi0980 2016-08-01 17:00
浏览 25

如何通过html或php将params传递给html嵌入swf?

Hello guys how are you doing? Fine i hope.

Well i'm trying to make a non javascript version of a site and there is this swf client that runs by a javascript library which sets sizes and passes params.

Here is some code:

swfobject.embedSWF(KingGame._game_url, "flashContent", KingGame._flash_width, KingGame._flash_height, "10.0.0", false, {"param": KingGame._flash_params}, paramtrs);

This is the line where swfobject framework calls the swf and is passes this param to it which is an enormous xml file converted to a string i supose.

So now im trying to use something like:

<object width="1000" height="1000">
    <param name="params" value="<?=urlencode($xml_config)?>">
    <embed src="<?=$url?>" width="1000" height="1000">
    </embed>
</object>

But it's not working i don't know how to pass this params with php or html, i'm searching but finding nothing, does anyone knows if that is possible at least?

Thanks

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 回答4f系统的像差计算
    • ¥15 java如何提取出pdf里的文字?
    • ¥100 求三轴之间相互配合画圆以及直线的算法
    • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
    • ¥15 名为“Product”的列已属于此 DataTable
    • ¥15 安卓adb backup备份应用数据失败
    • ¥15 eclipse运行项目时遇到的问题
    • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
    • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
    • ¥15 自己瞎改改,结果现在又运行不了了