Skip to main content
Inspiring
May 1, 2008
Question

getURL makes flash freeze!

  • May 1, 2008
  • 3 replies
  • 319 views
I have an input text field in which the user enters her password. I then have a movieclip that says "Update Site" which is pressed to check if they typed the correct password and then goes on if it was correct or alerts the user if it was not correct. I wanted to alert the user with a javascript alert called through a getURL command. However, no matter what I put inside of the getURL command (whether javascript or just a website) Flash hangs (and ends up not responding). I assumed Flash would probably not let me access javascript or a website from within the flash player, but I didn't think it would hang! I have tried publishing my movie and looking at it in Safari for Mac and it doesn't hang, but it also doesn't do anything.

If the correct password is typed, the button works fine and "Site is updating" shows up in the Output window. So it's gotta be the getURL that's causing the hang.

The code is below (the || mean I've tried both separately, not at the same time). Thanks in advance!

This topic has been closed for replies.

3 replies

kglad
Community Expert
Community Expert
May 1, 2008
i doubt that code is causing the problem, then. move that code to another fla, publish and test. does it hang? if not, you know there's something else causing the problem.
puponpupAuthor
Inspiring
May 1, 2008
As I wrote before the code post "the || mean I've tried both separately, not at the same time." Sorry if that was confusing, I just put the || there to save space instead of copying the entire block twice as two different scenarios (which they were supposed to represent). The infinite loop or flash hang (whatever it is) happens when either of those statements are used (separately with the 'or'). Any idea why changing getURL to getUrl made it work?
kglad
Community Expert
Community Expert
May 1, 2008
don't cross post and check your duplicate post.