|
-
Okay, so in using the code provided by jkell (thank you) I am going in the right direction, but I am still not familiar with how counter++ works. I tried to enter a new while condition, but the while condition is not operating how I would like:
while (Number(MyTextField.text) > 0){
full.text = String(body.text + count.text + ext.text);
navigateToURL (new URLRequest (String(full.text)), "_blank");
currentValue = Number(MyTextField.text);
MyTextField.text = String(currentValue - countOne);
countCurrent = Number(count.text);
count.text = String(countCurrent + countOne);
}
Okay, so what I want to do is have it so a serial URL address will continue to load until the MyTextField reaches 0. What the above code does is it will add to the count.text, or the "29" in <http://board.flashkit.com/board/forumdisplay.php?29>, and the default for MyTextField is 5, so the full.text will end up being <http://board.flashkit.com/board/forumdisplay.php?33> (the while command starts with 29). What I want to happen is I want 5 websites to load in "_blank," but what I'm getting is only the last of the 5--<http://board.flashkit.com/board/forumdisplay.php?33>--to load.
I am thinking I need to add something similar to counter++ at the end, but I'm not sure how to write it. Any suggestions?
Edit: Hrm, this forum suggests I can only do one navigatetoURL per frame
http://www.actionscript.org/forums/s....php3?t=250594
Flash is only able to execute one navigateToURL function per frame. A player problem, unfortunately.
If that's true I'll have to check out Timers or use multiple frames, I suppose. Nuts.
Last edited by G.v.P; 05-18-2013 at 11:19 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|