|
|
|
Uncaught TypeError: undefined is not a function
|
|||
|---|---|---|---|
|
#18+
авторfunction p2q_EmbedFlashGetContent(sFile, sWidth, sHeight, arguments) { if (!sFile) { return false; } var content = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" '+ 'codebase=" http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" '+ ' width="' + sWidth + '" height="' + sHeight + '" >'+ '<param name="movie" value="' + sFile + '">'; for(i=0;i<arguments.length;i+=2) { content += '<param name="' + arguments[i] + '" value="' + arguments[i+1] + '">'; } content += '<embed width="' + sWidth + '" height="' + sHeight + '" '+ 'pluginspage="http://www.macromedia.com/go/getflashplayer"' 'type="application/x-shockwave-flash" '+ ' name="ow_panoram" flashvars="externalinterface=1&pan=22" '+ ' src="' + sFile + '"'; for(i=0;i<arguments.length;i+=2) { content += ' ' + arguments[i] + '="' + arguments[i+1] + '"'; } content += '/></object><a id="move_button" onClick="ow_panoram.moveTo(140,-40,70,10);" href="#">Move To 140,-40</a>'; return content; } Код возвращает flash. При клике по move_button панорама в флеше меняет координати. Это все работает. Но когда я хочу обратиться к ow_panoram например с кода авторsetTimeout(ow_panoram.moveTo(140,-40,70,10),5000); Ничего не происходит. В логах пишет ошибку Uncaught TypeError: undefined is not a function Апи к флешу описаны http://ggnome.com/wiki/JavaScript_API_(Pano2VR) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 22.08.2014, 12:22 |
|
||
|
|

start [/forum/topic.php?fid=22&fpage=92&tid=1446780]: |
0ms |
get settings: |
7ms |
get forum list: |
10ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
32ms |
get topic data: |
10ms |
get forum data: |
2ms |
get page messages: |
29ms |
get tp. blocked users: |
1ms |
| others: | 206ms |
| total: | 305ms |

| 0 / 0 |
