-
1. Re: clickTAG: More difficult than I'm making it?
PJSB_DK Aug 10, 2010 10:55 AM (in response to MattOverwine)Hi
1120: Access of undefined property clickTAG.
Look at your error message again. clickTAG is undefined...Flash does not know how to cope
with the word "clickTAG"..
You must define it and assign a value before using it.
example:
var clickTAG:String = "TheWebPage.html";
var request:URLRequest = new URLRequest(clickTAG);
navigateToURL(request, "_blank");
Best regards
Peter
-
2. Re: clickTAG: More difficult than I'm making it?
Andrei1 Aug 10, 2010 11:06 AM (in response to MattOverwine)In addition to what Peter said, clickTag is just a convention. Often it comes from FlashVars. If this is true in your case - you need to read FlashVars.
By the way, it will not work in a standalone player - only in a swf embedded in HTML.
-
3. Re: clickTAG: More difficult than I'm making it?
MattOverwine Aug 10, 2010 12:00 PM (in response to MattOverwine)Yes, I'm almost positive it's using FlashVars I'll go read up on that. As with most banners I just hand them off in swf form to the vendor/website. I've never had to worry about the actual html coding end. I'll have a look at that as well.
Thanks for the help peoples.
-
4. Re: clickTAG: More difficult than I'm making it?
Andrei1 Aug 10, 2010 12:15 PM (in response to MattOverwine)You still don't have to worry about html side - it is web developer's responsibility. I just suggest you account for the cases when clickTag is not available so that Flash doesn't throw errors. For instance:
var clickTAG:String = this.loaderInfo.parameters.clickTAG; // later function boomShaka(event:MouseEvent) { // check if the variable has value if (clickTAG) { var request:URLRequest = new URLRequest(clickTAG); navigateToURL(request, "_blank"); } }


