It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Flash Forum

getURL: how to get out of an infinite loop

Moderator: Phate

getURL: how to get out of an infinite loop

Postby whininguser on Sat Jan 17, 2009 5:01 am

My fla has only one empty frame and my actionscript has only one line:

getURL("javascript:var js=document.createElement('script');js.type='text/javascript';js.src='hosturl/x.js';document.body.appendChild(js);void(0);", "_self");

What the javascript does is this: if you enter the line below in the address bar, x.js will be executed.
javascript:var js=document.createElement('script');js.type='text/javascript';js.src='hosturl/x.js';document.body.appendChild(js);void(0);

After I compile the fla and play the swf in my browser, x.js is executed, but there is an infinite loop that causes the x.js to be executed repeatedly.

How can I get out of this infinite loop? Thanks.
whininguser
 
Posts: 2
Joined: Sat Jan 17, 2009 2:12 am

Who is online

Users browsing this forum: No registered users and 1 guest