# javascript code problem?

**URL:** <https://forum.kirupa.com/t/javascript-code-problem/638648>\
**Category:** flash\
**Created:** [August 29, 2018, 11:38am UTC](https://forum.kirupa.com/t/javascript-code-problem/638648 "2018-08-29T11:38:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cabaka](https://avatars.discourse-cdn.com/v4/letter/c/9e8a1a/32.png) [@cabaka](https://forum.kirupa.com/u/cabaka)\
**Post date:** [August 29, 2018, 11:38am UTC](https://forum.kirupa.com/t/javascript-code-problem/638648/1 "2018-08-29T11:38:19Z")

</div>

Hello,  
Anybody can help me about what is wrong with this code?

```auto
on (press) {
getURL ("javascript:yev=window.open('http://cagribariskasap. ********** app.com/yev.swf','yev','width=1024,height=768,left=0,top=0 ,toolbar=No,location=No,scrollbars=No,status=No,re sizable=No,fullscreen=No'); yev.focus(); setTimeout('yev.moveTo(200,300)',1000); void(0);");
}

```

I have five more files using exactly the same script only with different file names. It works just fine with other files but does not work with this one. Any ideas?  
Best,  
Cagri Kasap

---

<div class="post-metadata">

**Author:** ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Post date:** [August 30, 2018, 5:32pm UTC](https://forum.kirupa.com/t/javascript-code-problem/638648/2 "2018-08-30T17:32:03Z")

</div>

Can you post the equivalent code you are using in the other files? Maybe there is something more subtle going on besides just the file name.

---

<div class="post-metadata">

**Author:** ![cabaka](https://avatars.discourse-cdn.com/v4/letter/c/9e8a1a/32.png) [@cabaka](https://forum.kirupa.com/u/cabaka)\
**Post date:** [August 30, 2018, 8:10pm UTC](https://forum.kirupa.com/t/javascript-code-problem/638648/3 "2018-08-30T20:10:40Z")

</div>

on (press) {  
getURL (“javascript:fspictures=window.open(‘[http://cagribariskasap.000webhostapp.com/47pictures.swf’,‘fspictures’,'width=1024,height=768,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No](http://cagribariskasap.000webhostapp.com/47pictures.swf','fspictures','width=1024,height=768,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No)’); fspictures.focus(); setTimeout(‘fspictures.moveTo(200,300)’,1000); void(0);”);  
}  
on (release) {  
getURL (“javascript:zeytindali=window.open(‘[http://cagribariskasap.000webhostapp.com/zeytindali.swf’,‘zeytindali’,'width=1024,height=768,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No](http://cagribariskasap.000webhostapp.com/zeytindali.swf','zeytindali','width=1024,height=768,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No)’); zeytindali.focus(); setTimeout(‘zeytindali.moveTo(200,300)’,1000); void(0);”);  
}  
Above are the two working codes with other filnenames. But only the one in the previous message does not work. I still cannot see what the difference is. Please help!

Best,  
Cagri Kasap
