Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 08-01-2012, 02:13 PM   #1
bstens
Registered User
 
Join Date: Aug 2012
Posts: 1
Default Linking code

I have made a very simple banner ad for a site. I think I have made it clickable, ie i have put a transparent button over the entire scene and inserted the action "go to web page" on it. this seems to work on my flash player on my pc.

However the site admin want me to include this code to it,

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

Is this a code to link to a web page or is this for tracking the link (should this be used in place of the go to web page action I used?). I dont know how or where to put this code either.

I know this is probably a very basic question but I have more of a print and video background and I am trying to help someone out with this one.

Any help would be great.

Thanks,

Brian
bstens is offline   Reply With Quote
Old 08-02-2012, 03:33 AM   #2
tango88
FlashByNight.com
 
tango88's Avatar
 
Join Date: Aug 2006
Posts: 289
Default

_root.clickTAG is a variable that is defined in the 'root' of the flash movie. If your flash movie is loaded into another flash movie, the other movie will be the root.

A variable can be used to store a URL, for example:

clickTAG="http://www.mysite.com";

So, yes, it seems that the code your admin gave you is a link to a website.
__________________
Games and more:
Flashbynight.com | Tutes | Twitter
tango88 is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:32 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.