Be a Supporter!

AS2 Clicktag problems.

  • 121 Views
  • 2 Replies
New Topic Respond to this Topic
Kembry
Kembry
  • Member since: Dec. 27, 2006
  • Offline.
Forum Stats
Member
Level 27
Artist
AS2 Clicktag problems. 2013-09-12 11:55:11 Reply

Hello there, I made a flash banner for my mothers website. It`s a map with many regions to click on, those regions ar elike buttons so you can click to one and it opens you the specific page. But there is a problem because page opens with another page called 404 error. naam nam naaaaam...
Here is the sample of banner
BANNER

It doesn`t work from dump, but it is possible to download it.
I would be very thankful if someone could help me out with this one.

code :

on (release) {
getURL (_level0.clickTAG, "_blank");
}

on (release) {
getURL("http://www.scenar-baltic.lv/scenar-akademija/musu-partneri/rigas-novads", "_blank");
}

kkots
kkots
  • Member since: Apr. 16, 2013
  • Offline.
Forum Stats
Supporter
Level 10
Blank Slate
Response to AS2 Clicktag problems. 2013-09-12 12:25:59 Reply

Did you set the

_level0.clickTAG

variable?
Is the URL correct?
I see no errors. The 404 error depends only on the URL that you specify in the getURL function.
I think it's logical to advise you that you consult your mother for correct URLs, because that is vital for your banner to not lead to a 404 page.
It's possible that your mother's website is wrong and that URL doesn't work at all, because it is her fault.
Conclusion: things depend heavily on your mother's website, and not as heavy on ActionScript code. Everything that you did is right. Except for choosing AS2 over AS3, but a banner is just simple stuff.


BBS Signature
milchreis
milchreis
  • Member since: Jan. 11, 2008
  • Offline.
Forum Stats
Member
Level 26
Programmer
Response to AS2 Clicktag problems. 2013-09-12 12:31:46 Reply

The request goes to undefined, hence your variable is undefined.

Do this in html, no need for flash.