The Enchanted Cave 2
Delve into a strange cave with a seemingly endless supply of treasure, strategically choos
4.36 / 5.00 33,851 ViewsGhostbusters B.I.P.
COMPLETE edition of the interactive "choose next panel" comic
4.09 / 5.00 12,195 ViewsHi, my buttons work locally but when uploaded to Newgrounds or Deviantart they just won't work. Anybody have any idea as to why this is? I'm pretty sure it has something to do with the Newgrounds preloader as that's the only time the buttons don't work.
The current code I have is:
on(release){
getURL("http://youtu.be/sZrO_kqMJDY");
}
Simple nooby code.
I found out it didnt work the way you have your previous code..:
Heres a link to a swf that shows you that its possible in NG
I dont really know much more about AS2... but I think the reason why it didnt worked was because you had the event fire on release.
Anyways this is the code I used:
onClipEvent(mouseDown){
getURL("http://youtu.be/sZrO_kqMJDY");
}
If you would have used actionscript 3 it would have been way easier lol.
At 2/1/12 05:25 AM, SplendidDevil wrote: Thanks man, I owe you one!
Wait, it still doesn't work online :/ it's something to do with the preloader.
At 2/1/12 04:48 AM, SplendidDevil wrote: The current code I have is:
on(release){
getURL("http://youtu.be/sZrO_kqMJDY");
}
...pretty sure you need to add "_blank"
getURL("http://youtu.be/sZrO_kqMJDY", "_blank");
"Why do you hide, stupid aliens? Mr. Zurkon only wishes for to kill you."
Nae is right, the Flash Player has a weirdo security restriction where you can't open a link in the same window if allowScriptAccess is turned off on the HTML embed (which it is on NG). If you add "_blank", it will open in a new tab.
At 2/1/12 01:18 PM, Nae wrote:At 2/1/12 04:48 AM, SplendidDevil wrote: The current code I have is:...pretty sure you need to add "_blank"
on(release){
getURL("http://youtu.be/sZrO_kqMJDY");
}getURL("http://youtu.be/sZrO_kqMJDY", "_blank");
At 2/1/12 01:31 PM, mike wrote: ...pretty sure you need to add "_blank"getURL("http://youtu.be/sZrO_kqMJDY", "_blank");
This.
You guys are the bestest mannn.