A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Flash + Javascript + IE = Runtime Error?

  1. #1
    Junior Member
    Join Date
    Apr 2004
    Posts
    5

    Flash + Javascript + IE = Runtime Error?

    So I've been having this problem that's bugging the crap outta me and hopefully someone can help me. Anyway, I have this button which has the following code on it:
    Code:
    on (release){
    getURL("javascript:window.open('http://www.promethean-studios.com/photography/cs2.html','Expanded View','width=331,height=487,top='+((screen.height-331)/2)+',left='+((screen.width-487)/2));void(0);");
    }
    Now, the button works fine when I tested the movie in Safari and Firefox, but when I test it with Internet Explorer (Mac and PC versions) it does not do what it's supposed to, instead, in the Windows version it gives me a runtime error and the Mac version just sits there. I don't see what I'm doing wrong, it works in the other browsers but not IE? I'm going batty trying to solve it, any suggestions?

  2. #2
    Senior Member
    Join Date
    Apr 2004
    Location
    Missouri
    Posts
    384
    If you take out the space inbetween "java script" and inbetween "Expanded View" then it works.

  3. #3
    Junior Member
    Join Date
    Apr 2004
    Posts
    5
    Hey, thanks a bunch, the space in javascript happens automatically when you paste the code onto these forums for some reason, but the space in Expanded View did the trick. Thanks again.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center