|
主题: 帮忙看个问题
|
 drayman
职务:普通成员
等级:1
金币:0.0
发贴:4
|
#12002/12/18 10:54:23
隐藏ie框的flash还能拖动 最近在一个网站看到能隐藏ie框的flash,还能拖动,不知道是怎么做的,能否告知。 www.samsungelectronics.com/comdexedited by janlay
编辑历史:[这消息被janlay编辑过(编辑时间2002-12-18 13:19:48)]
|
 janlay
职务:管理员
等级:7
金币:28.0
发贴:7244
|
#22002/12/18 13:18:46
if(command == "drag") {
pos = args.split("|");
xpos = Number(pos[0]);
ypos = Number(pos[1]);
if ( xpos !=0 || ypos !=0 ) {
window.moveBy(xpos*2,ypos*2);
} 这是flash引用的外部fscommand,这里实现的功能是把x/y两个参数传递给HTML中的JS脚本。由于外部fscommand只能有两个参数,一个用来告诉脚本要执行什么命令,另一个用来传递执行这个命令所需参数。这里要传递两个参数,但实际只有一个字符串参数可用。它的解决办法就是把x/y合在一起,就像这样的形式:100|200,表示坐标(100,200),JS脚本部分用"|"分隔得到一个包含两个单元的数组,这样,就实现了分别获取flash传出的x/y参数。
|
 janlay
职务:管理员
等级:7
金币:28.0
发贴:7244
|
#32002/12/18 13:23:34
getURL("FSCommand:xxx", xxx); 和fscomand("xxx",xxx)一样。
|
 drayman
职务:普通成员
等级:1
金币:0.0
发贴:4
|
#42002/12/19 10:02:22
这个地明白
flash里面传给的参数不明白 // Action script... // [Action in Frame 1] stop(); // [Action in Frame 2] bx = _soundbuftime; by = _quality; // [Action in Frame 3] if (ct == 1) { getURL("FSCommand:drag", Math.floor(_soundbuftime - bx) + "|" + Math.floor(_quality - by)); ct = 0; } else { ct = 1; } // end if bx = _soundbuftime; by = _quality; // [Action in Frame 4] prevFrame(); play();
|
 drayman
职务:普通成员
等级:1
金币:0.0
发贴:4
|
#52002/12/19 10:04:37
getURL("FSCommand:drag", Math.floor(_soundbuftime - bx) + "|" + Math.floor(_quality - by));
|