Monster Racer Rush
Select between 5 monster racers, upgrade your monster skill and win the competition!
4.18 / 5.00 3,534 ViewsBuild and Base
Build most powerful forces, unleash hordes of monster and control your soldiers!
3.80 / 5.00 4,200 ViewsI tried the GetURL command on a button but it dosen't work! I know that the URL is working but what went wrong?!
Since mind reading is impossible, you should probably post your code and which version of Actionscript you're using.
onRelease = function() {
getURL("URL" "_self");
};
At 3/18/11 07:20 AM, NGPulp wrote: onRelease = function() {
getURL("URL" "_self");
};
looks like you forgot a comma.
getURL("URL" , "_self"); At 3/18/11 07:29 AM, Version2 wrote:At 3/18/11 07:20 AM, NGPulp wrote: onRelease = function() {looks like you forgot a comma.
getURL("URL" "_self");
};
getURL("URL" , "_self");
No, he didn't.
It happens to me too, I don't really know how to get past it but just try this:
on(release){
_root.getURL("URL", "_self");
} Slint approves of me! | "This is Newgrounds.com, not Disney.com" - WadeFulp
"Sit look rub panda" - Alan Davies
At 3/18/11 08:55 AM, sanjeev98 wrote: No, he didn't.
Do you need glasses? There isn't a comma between the parameters in the code OP posted. So... yes, he did forget it. And it needs to be there or hes going to get an incorrect number of arguments error. _root, on the other hand, is not necessary to use getURL().
NGpulp: You may want to take a look at this blog post: factornine.wordpress.com/2008/09/10/getu rl-not-working-in-as2/
A relevant quote from the post: "I figured out that when the html and the swf are on separate servers, the getURL must specify "_blank" as the target."
And this is from the actionscript dictionary, as a reminder of what does what:
"_self" specifies the current frame in the current window.
"_blank" specifies a new window.
"_parent" specifies the parent of the current frame.
"_top" specifies the top-level frame in the current window.
At 3/18/11 04:40 PM, Version2 wrote:At 3/18/11 08:55 AM, sanjeev98 wrote: No, he didn't.Do you need glasses?
I wear some already.
There isn't a comma between the parameters in the code OP posted. So... yes, he did forget it. And it needs to be there or hes going to get an incorrect number of arguments error. _root, on the other hand, is not necessary to use getURL().
Oh shoot, I thought you were talking about a semicolon, sorry ^_^
Slint approves of me! | "This is Newgrounds.com, not Disney.com" - WadeFulp
"Sit look rub panda" - Alan Davies