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 有赏,i卡绘世画不出
    • ¥15 如何用stata画出文献中常见的安慰剂检验图
    • ¥15 c语言链表结构体数据插入
    • ¥40 使用MATLAB解答线性代数问题
    • ¥15 COCOS的问题COCOS的问题
    • ¥15 FPGA-SRIO初始化失败
    • ¥15 MapReduce实现倒排索引失败
    • ¥15 ZABBIX6.0L连接数据库报错,如何解决?(操作系统-centos)
    • ¥15 找一位技术过硬的游戏pj程序员
    • ¥15 matlab生成电测深三层曲线模型代码