-
1086 syntax error.
Hi guys i know this is probably very easily answered. But i have been stumped for a hour or so now.
So the Syntax error code keeps coming up on two different bits of coding i put in both very simple coding as well on for a but to link to a website and the other is for a clicktag for a banner. Bits of code below. (im using cs5 if that makes a difference?)
on(release) {
getURL("http://www.yourURLhere.com");
}
on (release) {
if (clickTAG.substr(0,5) == "http:") {
getURL(clickTAG,"_blank");
}
}
Any help would be very appreciated as i am totally stumped and cant find any coding on the net that looks different from what i already have. Thanks!
-
There is a clear difference between AS2 and AS3, maybe thats what is causing the problem.
If you trace the clickTag.substr(0,5) value, does it give you the "Http:" value?
I'm no pro, but what is the release on you on function?
These are only suggestions from a noob flasher
Tags for this Thread
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
|