ClickTAG
Hi - I am pretty new to developing banner ads in Flash and I made one for a client, exported it in SWF and passed the file to his provider. Now his provider tells me I need to insert the correct script, that is:
on (release) {
getURL(clickTag, "_blank");
I put this script in the action but he keeps telling me its not ok.... can anyone help me out with this? It is an Action Script 3 Flash file, with 2 graphics layers, one layer with hidden button (alpha 0) and one action layer with the above script. What could be wrong? I am linking you to a page of my website, where you can find the FLA file and SWF... http://www.eikon13.it/fla.html
thank you very much!!
John
Ciao John,
I build banners for Universal Studios. I was going to write down all you needed to do but it dawned on me that I am not sure of your Flash Skill experience so I found a better tutorial to help you get it straightned out.
http://www.flashclicktag.com
Please make sure that you pay attention to the exact naming convention that you publisher gives you. there are different clickTAG, clickTag,ClickTag etc.. syntaxes that they may give to reference.
Shoudl you have any issues feel free to write me at [email protected] and send the .fla file ( zipped ) and I'll do my best to help out.
A Domani
grazie
Russ
Similar Messages
-
Flash cs3 newbie help - setting up a clicktag
I am just about to pull my hair out - please help as I don't have that much hair to pull out.
I created a flash file in Flash CS3 and was told I need to add a click tag for an agency who want to keep track of the click throughs for the ad.
I have created the invisible button layer and set up the 'hit' and tried and tried and tried to select the button and add some action script to it.
(which I have seen three different codes to use)
Each time I export it or publish it I get the error message: mouse events are permitted only for button insances on release. I have read and understand I need to assign the code to the button and not the frame but for the life of me, I cannot figure out how to do that.
I select the button (which I have converted to a 'button') and F9 or left click to get the Actions panel and once I am there and try to use the '+' to add code, it automatically shows 'Current Select/Frame 1 in the left side of the Actions panel. I get that it is adding the code to the frame but how do I get it to add the code to the button???
So my question is 1) how do I add the code to the button and not the frame and 2) what code should I use?
Any and all help is GREATLY appreaciated!
oops...forgot to add I am using AS2. Thanks!Kglad - thanks so much for all your help.
I spoke to a friend who corrected what I was doing.
Here's an explanation for those who may find the thread...
Click on the invisible button you created and press F9 (opens Actions)
(Ensure it says 'Actions: button' at top)
Put this code in:
on(release)
var clickTAG="http://www.yourwebsite.com";
if (clickTAG.substr(0,5)=="http:")
getURL(clickTAG, "_blank");
Seems it's always a simple answer for a baffling question.
Thanks again. -
Steps to insert a clickTag in a Flash Banner with Flash MX 6 & Adobe CS3 Version
Hi Folks
I am very new to this forum + having a basic level of
understanding with Flash Software (like Flash MX & Adobe CS3).
By profession i am online trafficker, and because of the fact that
our Flash Creative Designer has gone on a leave, i therefore
stumble upon with a challenge of inserting a "clickTag" in a flash
banner.
Here my expertise stands null, but yeah offocurse i did try
many options but no result.
So guys help me in this, what i wish to know the exact step
by step procedure to insert a "clickTag" in a Flash banner for both
Flash MX version 6 & Adobe CS3 version.
I'll be happy if you guys come up with any step by step
sitemap.
Thanks & Cheers
Nawaz ShahzadRight, well who could blame Adobe for saying that? It's not
Adobe's fault. It's that most of the hosting sites have cold feet
(IMHO) and fear that they'll have viewers who don't have the latest
version which means their advertisers won't get the most bang for
their buck.
I keep waiting for them to at least increase the max
allowable player version to FP8... but I have not seen that yet...
will keep my fingers crossed that it happens soon. But what it
boils down to is that you need to check with the hosting site
before designing a banner so that you don't include filters (FP8)
or use AS3 (FP9) if they are not supporting those players
yet. -
ClickTAG: More difficult than I'm making it?
Hello awesome forum folks.
I've created plenty of banner ads in my time but am having trouble with my first AS3 clickTAG code.
import flash.events.MouseEvent;
clicks.addEventListener(MouseEvent.CLICK, boomShaka);
function boomShaka(event:MouseEvent) {
var request:URLRequest = new URLRequest(clickTAG);
navigateToURL(request, "_blank");
This is the code directly from the creative requirements of the website I'm making the banners for. It errors out with:
1120: Access of undefined property clickTAG.
If I comment out 'clickTAG' the rest of my actionscript functions correctly. I've been stumped and checking around for two hours now. Any help would be appreciated.
Message was edited by: MattOverwineHi
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 -
AS2 Clicktag and Rollover questions
I'm creating a banner ad for Yahoo.com and am running into a conflict with the Rollover replay and Clicktag. Both are buttons on separate layers with the ClickTag on top. If the Clicktag button is on, the rollover (replay) button is ignored.
I'm wondering what changes I need to make, but I need to keep the AS2 out of the Clicktag button. Also, if I rollover and out quickly, the animation replays, when it should stop. Thanks for any help. I've attached my .fla CS4 for analyzing.
Yahoo specs of note:
Animation can begin again on mouse over, but must stop immediately on mouse off.
When building flash creative, please note that the expression box must be checked and the URL should say clickTag.
If you would like to see the CS4 file, which may explain a lot more, please visit this link.
http://board.flashkit.com/board/showthread.php?p=4291469#post4291469
Thanks again!
Rollover/replay AS2 code
on (rollOver) {
this.play(2)
on (rollOut) {
this.gotoAndStop(33)
Clicktag
on (release) {
getURL(clickTag, "_blank");Thanks for the quick response. So here is exactly what I did.
Removed the codes from both button objects.
Renamed both button objects (clickTag_btn and replay_btn).
Removed Var loop code from Actions layer frame 1
Added following code to Actions layer, frame 1.
clickTag_btn.onRelease=function(){
getURL(clickTag,"_blank");
replay_btn.onRollOver=function(){
this._parent.play(2);
replay_btn.onRollOut=function(){
this._parent.gotoAndStop(33);
I changed the second and third actions to replay_btn, rather than clickTag as you noted. Otherwise it wouldn't call for replay, and why rename it correct? In any case, the file doesn't click through or rotate with this code. The hand appears, when I hover over it, but no frame 1 actions are executed.
Layer 1 - Clickthrough button (no code)
Layer 2 - Rotate button (no code)
Layer 3 - Actions (see above for code)
What am I missing that is not allowing both buttons to be recognized by the actionscript? Thanks again! -
ClickTAG in flash v.8 ?
Hi,
Is it true that ClickTAG is no longer supported since Flash
version 8?
I created a banner for my client, and used Blur filter (Flash
version 8) as
an effect.
Then, for the button action I used this code:
on (release) {
getURL(clickTAG, "_blank");
But banner's action didn't work. Then I published file to a
lower version -
from v8 to Flash v6 - and everything worked, except my Blur
filter.
So my question is: how to use clickTAG in later versions
(Flash 8 and Flash
9).
Thanks in advance,
B.Bare,
> Is it true that ClickTAG is no longer supported since
Flash
> version 8?
ClickTAG (aka clickTAG, aka clickTag) isn't a feature,
really. The
concept is a merely convention loosely adhered to by a number
of banner ad
agencies. All this constitutes is a variable passed into
Flash by way of
the HTML document that embeds the SWF. This can be done via
FlashVars or a
query string appended to the SWF's file name. The act of
variable-passing
in this matter has been supported for a long time, and is
still supported.
> I created a banner for my client, and used Blur filter
(Flash
> version 8) as an effect.
Right.
> Then, for the button action I used this code:
>
> on (release) {
> getURL(clickTAG, "_blank");
> }
I'm with ya.
> But banner's action didn't work. Then I published file
to a lower
> version - from v8 to Flash v6 - and everything worked,
except
> my Blur filter.
Here's my hunch. Flash Player 7 introduced case-sensitivity
into the
mix (see ...
http://www.adobe.com/support/documentation/en/flashplayer/7/releasenotes.html
... for details). If the variable passed into Flash happens
to be passed in
as ClickTAG, Flash Player 6 won't care that the ActionScript
is looking for
a variable that starts with a lowercase "c" -- but Flash
Player 7 will.
This is one of the biggest headaches when working with the
"clickTAG"
concept ... I guess agencies don't realize (or don't care)
that case
sensitivity became an issue several versions of Flash Player
ago.
If you don't nail the correct case in your reference to the
phantom
clickTAG variable -- and I say "phantom" because it doesn't
appear in the
SWF timeline until it is "fed" that variable from the HTML --
your Flash
Player 7+ SWFs won't "see" the variable in question.
Based on your description, I realize my input doesn't match
your
circumstances exactly. You're saying it seems to hinge on
Flash Player 8,
rather than 7. I'm afraid I can't explain that discrepancy.
The blur
effect will disappear before 8, because Flash 8 was the first
to support
filters and blend modes.
> So my question is: how to use clickTAG in later versions
(Flash
> 8 and Flash 9).
Again, it's not "clickTAG" that works or doesn't work -- the
term is
merely a convention -- it's the fact that ActionScript is
case sensitive
after Flash Player 7. You'll either have to make sure you
know how the HTML
is spelling that variable as it gets passed in, or you can
use an if()
statement to check for the existance of the variable.
on (release) {
if (clickTAG) getURL(clickTAG, "_blank");
if (clickTag) getURL(clickTag, "_blank");
// etc.
David Stiller
Adobe Community Expert
Dev blog,
http://www.quip.net/blog/
"Luck is the residue of good design." -
my client wants to add audio to their banner ad (which always has a full stage clickTAG set). I'm trying to figure out a way to just use a simple play/pause button and attach a toggle action to it. Problem is when the user clicks it's going to the clickTAG URL that's attached to the full stage. Is there any way around this?
Please advise and thank you in advance.I have the same issue. It is pretty annoying but at least the audio remains within the motion project. It just isn't accessible it seems as an FCPX template. So what I'm doing is this:
I still use the video within FCPX's generator section so that you can edit the parameters as you need to
For the audio, open the project in motion then under Share, click 'Export Audio'. Select 'CAF' format and save to your hard disk
I then import the audio file into an event I set up specifically for this purpose (per BenB's suggestion).
When I need it, I then insert the generator from the generators section and then attach the audio file below the primary story line for the audio track
It isn't pretty but it works. -
Flash CC and google display network clickTAG
I have been trying to add a clickTAG to my advert files in Flash CC. Seems to work fine but google is rejecting the adverts as an 'unsupported format'. It appears that Google will only accept SWF files up to 10.1 and the lowest you can export in CC is 10.3. I have downloaded 10.1 encoder and added it to the program XML files but still not accepting. My last hope was to open in CS5 or CS6 and that should work but I can't seem to be able to backsave or I don't know how. Any advice on this? The clickTAG I am using is below:
btn.addEventListener(MouseEvent.MOUSE_DOWN, onClick);
function onClick(e:MouseEvent):void {
var click_url:String = root.loaderInfo.parameters.clickTAG;
navigateToURL(new URLRequest(click_url), '_blank');I got it sorted... finally. I had found a link that explained hpw to add 10.1 but the info was not 100% correct, another guy had it right for 10.2 so I just went through the 10.2 code with a fine tooth comb and changed it over and it is working now.
For anybody who is looking, and I am not a coding person, far from it, this is what I done.
(1) Downloaded the 10.1 playerglobal.swc from Adobe here.
(2) Right mouse click (or ctl click on a mac) on the Flash folder and show package contents - then click Contents/Common/Configuration/ActionScript 3.0/
(3) Create a folder called FP10.1 and drop in the downloaded file (should be called playerglobal.swc).
(3) Go back to the common folder and go to Common/Configuration/Players
(4) Duplicate the FlashPlayer10_3.xml as FlashPlayer10_1.xml and open this file in textedit or whatever editor you have and replace the text with this:
<?xml version="1.0" encoding="UTF-8"?>
<players>
<player id="FlashPlayer10" version="10" asversion="3">
<name>Flash Player 10.1</name>
<path builtin="true" />
<path platform="WIN">Device Central/adcdl.exe</path>
<path platform="MAC">Device Central/adcdl</path>
<playerDefinitionPath as2="$(UserConfig)/Classes/FP10;$(UserConfig)/Classes/FP9;$(UserConfig)/Classes/FP8;$(Use rConfig)/Classes/FP7" as3="$(AppConfig)/ActionScript 3.0/FP10.1/playerglobal.swc" />
<feature name="multiScreenPublish" supported="true" />
<feature name="mobileAuthoringIntegration" supported="true" />
<feature name="deviceSound" supported="false" />
<feature name="exportStreamingSound" supported="true" />
<feature name="exportEventSound" supported="true" />
<feature name="FSCommand2" supported="false" />
<feature name="gradient_linearRGB" supported="true" />
<feature name="gradient_overflow" supported="true" />
<feature name="shape_strokeHint" supported="true" />
<feature name="shape_cap" supported="true" />
<feature name="shape_join" supported="true" />
<feature name="shape_mitre" supported="true" />
<feature name="shape_scale" supported="true" />
<feature name="linkage_exportForActionscript" supported="true" />
<feature name="linkage_exportForRuntimeSharing" supported="true" />
<feature name="linkage_exportInFirstFrame" supported="true" />
<feature name="linkage_importForRuntimeSharing" supported="true" />
<feature name="linkage_importAndAddToCache" supported="false" />
<feature name="publish_localPlaybackSecurity" supported="true" />
<feature name="publish_hardwareAcceleration" supported="true" />
<feature name="symbol_blendMode" supported="true" />
<feature name="actionScript_documentClass" supported="true" />
<feature name="symbol_blendMode" supported="true" />
<feature name="filters" supported="true" />
<feature name="component_binding" supported="true" />
<feature name="component_schema" supported="true" />
<feature name="screens" supported="true" />
<feature name="video" supported="true" />
<feature name="deviceVideo" supported="false" />
<feature name="accessibility" supported="true" />
<feature name="dynamic_text_kerning" supported="true" />
<feature name="static_text_charwidth_nondeviceFont" supported="true" />
<feature name="static_text_charwidth_deviceFont" supported="true" />
<feature name="advanced_anti_alias_text" supported="true" />
<feature name="nine_slice_scaling" supported="true" />
<feature name="runtimeNumberMinMax" supported="true" />
<feature name="use8kSampleRate" supported="true" />
<feature name="useDefineFont4ForDeviceText" supported="true" />
<feature name="useDefineFont4ForEmbeddedFonts" supported="true" />
<feature name="textLayoutFramework" supported="true" />
<encodingPresets>
<preset uuid="da5cac1a-417a-4d86-b7f7-ef21010a5d7d" name="FLV - Match Source Attributes (High Quality)" ext="flv" default="true" />
</encodingPresets>
<testmenu>
<menu name="ID_testInFlash" default="true" />
<menu name="ID_testInDeviceCentral" />
</testmenu>
<debugmenu>
<menu name="ID_debugtInFlash" default="true" />
<menu name="ID_debugInDeviceCentral" />
</debugmenu>
</player>
</players>
(5) close and restart flash
(6) Pick 10.1 in your export settings and it will work now.
Seriously, thanks to all who tried to help, Adobe should really fix this issue as its a pain for people who are not developers and code is alien to them. -
Flash CC 2014 clickTAG not working in Google/DoubleClick
Here is the tag they gave me:
on (release) {
getURL (_level0.clickTag, "_blank");
Here are screenshots...please refer to the Flash AD Development forum. there are many (recent) questions just like this we have answered.
-
Dynamic Click Tracking Without clickTag
I've got an unusual circumstance where I'm not loading my
flash file from within a webpage. Normally I use getURL() with
clickTag to set my destination URL and tracking URL in the html,
but in this case I am setting all of my variables using
SetVariable() to support Player 7.
My question is: how can I set a button to open a destination
URL and call the tracking URL dynamically using SetVariable()?
The current logic looks like this:
1. flash file loads
2. Using the watch() method, the flash file populates as
variables are passed in using SetVariable()
I've figured out how to do simple things like change the
text, but I'm not sure how to set a button URL and a tracking URL
for when that button is clicked.
Ideas? Thank you!noynek,
> in this case I am setting all of my variables using
SetVariable()
> to support Player 7.
The only reason for using SetVariables(), which is a
JavaScript function
specific to Flash, is in cases where you want to update a
variable *after*
the SWF has already loaded (such as, for example, to change
it from a
default value at some later time). If the variable only needs
to be set
once, when the SWF is requested by the HTML, then FlashVars
or a query
string on the SWF's file name itself is all you need.
> My question is: how can I set a button to open a
destination URL
> and call the tracking URL dynamically using
SetVariable()?
There are quite a few ways to define variables in a SWF
(variables are
nothing more than special containers to hold data). In a
keyframe of any
timeline, for example, you can do something like this:
var destination:Sring = "
http://www.domain.com/";
Of course, that "bakes" the variable into the SWF itself. It
is set and
may be referenced by that SWF. If you want to set such a
variable from
*outside* the SWF, such as from the HTML document, then it
can be attached
as a querty string to the name of the SWF file itself ...
<param name="movie"
value="myMovie.swf?destination=http://www.domain.com/"
/>
... or passed in via a FlashVars attribute ...
<param name="FlashVars"
value="destination=http://www.domain.com/" />
... or, as you've indicated, with the SetVariable() function
// JavaScript
swfFileReferenct.SetVariable("destination", "
http://www.domain.com/");
In any of the above cases, a variable named destination
(just an
arbitrary, descriptive name) is created in the main timeline
(assuming the
first example, with "var", was typed in a keyframe of the
main timeline).
At any point in the SWF, the variable destination can be
referenced, and its
value will be (in this case)
http://www.domain.com/, unless
it is changed to
something else later.
> The current logic looks like this:
> 1. flash file loads
Does this mean it is requested by the HTML document, or
you're using a
main SWF file to load another SWF file?
> 2. Using the watch() method, the flash file populates as
> variables are passed in using SetVariable()
I'm curious why you're using Object.watch(). Not saying
you're
necessarily wrong to do so, but maybe it would help to show
your code?
> I've figured out how to do simple things like change the
text,
> but I'm not sure how to set a button URL and a tracking
URL
> for when that button is clicked.
Your button would presumably call getURL() (or maybe a
LoadVars
instance?) in response to a mouse click. The first parameter
of getURL() is
a URL, which would be the name of whatever variable contains
the value you
want to reach.
David Stiller
Co-author, Foundation Flash CS3 for Designers
http://tinyurl.com/2k29mj
"Luck is the residue of good design." -
ClickTAG testing problem within Flash
Hello! I am by no means a Flash pro, more on the noob end of
the spectrum but I know the basics... I did a search and couldn't
find what I was looking for on this, and I'm new to the forum, so
apologies if I miss some etiquette step (I originally posted this
in the Flash ad section, but its dead over there and thought I
could get more love here).
So, I've got a simple linear animation banner ad with a
topmost layer as a clear button and the clickTAG info from the
hosting site/agency.
The code they have provided should be attached below...
I've tried tracing the button and even that simple step is
not working.
Should I be able to test this within Flash? If I swap out the
code for regular ol' Flash links it works and tests fine. Anyone
with similar issues, or a solution to shis? TIA!rcbmoose,
> Should I be able to test this within Flash?
Well, yes and no. How do you like that for an answer? ;)
> If I swap out the code for regular ol' Flash links it
works and
> tests fine. Anyone with similar issues, or a solution to
shis? TIA!
>
> on (release) {
> if (clickTAG.substr(0,5) == "
http://www.rebit.com") {
> getURL(clickTAG, "_blank");
> }
> }
Here's the scoop on clickTAG (and its various spellings,
including
ClickTAG, ClickTag, clickTag, clicktag, etc.). As shown, the
value of
clickTAG is undefined in Flash because the variable,
clickTAG, hasn't been
declared anywhere. If it hasn't been declared, then where
does the data
come from, right? Good question.
What you're seeing here is an example of passing data into a
SWF from
the outside. Any string variable can be passed in, and any
legal variable
name will do. String variables can be passed in via something
called
FlashVars, which is a parameter of either the EMBED tag or of
a PARAM tag
inside an OBJECT tag in the HTML. They can also be passed in
via a query
string appended to the SWF's file reference in the HTML (e.g.
nameOfMovie.swf?variable1=value1).
It just happens that many ad agencies use clickTAG as an
agreed-upon
variable for storing URLs for tracking user clicks. Because
you're testing
your SWF in Flash, you're not making use of the HTML document
in which this
SWF will be embedded. The HTML document will supply a value
for clickTAG,
so this needs to be tested in an HTML document. Ah, there's
the rub. Is
there a way to debug SWFs inside a browser? There is. :)
http://www.adobe.com/devnet/flash/articles/debugging_actionscript.html
The trouble is, you may or may not ultimately have control
over the HTML
into which this SWF is embedded. If that HTML embeds the
variable as
ClickTAG (or some other variant), Flash Player won't see it,
because your
code specifies clickTAG, and variables are case sensitive in
Flash since
Flash Player 7. So bear that in mind, and try one of the
techniques in the
article (either a temporary dynamic text field or the
Debugger panel).
Good luck with that!
David Stiller
Co-author, Foundation Flash CS3 for Designers
http://tinyurl.com/2k29mj
"Luck is the residue of good design." -
How to publish for Google ADP, and make use of clickTag like Flash
The transition from Flash to Edge Animate seems pretty straightforward from a coding/user perspective. I have not been able to find a solid answer on how to publish a banner ad, say a 728x90 leaderboard and deliver to a vendor. I need to know:
1. Which files to deliver
2. How do you structure the links for the .js files (absolute, root relative etc)
3. How to add a clickTAG link that the vendor will populate the actual link into.
Thank you.Just uploaded a file snippet created using software you mentioned. Try syncing the file named "TestClip" and see if it exhibits the same audio problem.
http://homepage.mac.com/WebObjects/FileSharing.woa/wa/default?user=jrwalker4&tem platefn=FileSharing31.html&xmlfn=TKDocument.31.xml&sitefn=RootSite.xml&aff=consu mer&cty=US&lang=en -
Hi there,
I'm working in adobe edge and I have specific specs to follow with regards to a clickTAG. I need to add:
<script type="text/javascript">
var clickTAG = "<mpvc/>http://<mpck/>";
document.location = clickTAG;
</script>
i'm not clear on how i would code my CTA button and/or stage. i followed the string on the window.clickTAG(); and it made sense so in this case would I just attach the below code?
document.clickTAG();
any insight would be greatly appreciated. thanks in advanceHi there,
I just wanted to circle back on this thread and provide screenshots to be more helpful. Tim's answer is absolutely correct as well, but I am going to elaborate with using the Dreamweaver CS6 import method:
In Edge Animate, you will need to set up your project to be published for use in Dreamweaver. Go to File > Publish Settings, and click on Animate Deployment Package. This will create the necessary .oam file that Dreamweaver needs to insert your Edge Animate project.
After, click "Save", and then choose File > Publish to publish the .oam file. After you click "Publish", Edge Animate will generate the files in the same location in which you saved your Edge Animate project.
Now open up Dreamweaver. If you already have a <div> or predetermined area in which you'd like to place your Edge Animate banner, click inside of the area or <div></div>.
From the Menu bar at the top, choose Insert > Media > Edge Animate Composition. Then, navigate to your Edge Animate project folder, and choose the "publish" folder, and then the "animate package" folder. Select your Edge Animate project's .oam file and click Insert.
And that's it! Your Edge Animate project will be added into existing HTML simply by using Dreamweaver. Once again, Tim's answer is also absolutely correct and will produce the same results, I just wanted to highlight this feature in Dreamweaver CS6 in case anyone in the community needed this information as reference. : ) -
ClickTag not working in Flash 8
I am setting up a banner for a client, and need to add the
clickTag function to it, which I did like this:
on (release) {
if (clickTag.substr(0,5) == "http:") {
getURL(_root.clickTag, "_blank");
I then tested in by putting this code in the first frame of
movie:
_root.clickTAG="
http://www.cnn.com";
This worked fine when I tested it. I then took that script
out of the first frame, and when I test it in an html doc, using
the code they suggest (replacing the source to my swf file)
<OBJECT classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000
src=/your/ad/location.swf?clickTAG=http://www.cnn.com
type=application/x-shockwave-flash
pluginspage=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6 ,0,0,0
ID=FLASH_AD WIDTH=728 HEIGHT=90> <PARAM NAME=movie
VALUE=/your/ad/location.swf?clickTAG=http://www.cnn.com><PARAM
NAME=bgcolor><PARAM NAME=quality VALUE=autohigh> <embed
src=/your/ad/location.swf
pluginspage=http://www.macromedia.com/go/getflashplayer
type=application/x-shockwave-flash width=728 height=90>
</embed> </object>
so, the swf loads into the html file fine, but the link
doesn't work. I can't figure out what is wrong. please
help!!!!Actually, it's case sensitive and should match your HTML file
with clickTAG.
on (release) {
if (_root.clickTAG.substr(0,5) == "http:") {
getURL(_root.clickTAG, "_blank");
James O'Reilly - JOR
www.jamesor.com
JOR wrote:
> You are referencing a local variable clickTag in your
"if" statement
> which doesn't exist inside the button's scope.
>
> Try this:
>
> on (release) {
> if (_root.clickTag.substr(0,5) == "http:") {
> getURL(_root.clickTag, "_blank");
> }
> }
>
> James O'Reilly - JOR
> www.jamesor.com
>
>
>
>
> fester04107 wrote:
>
>> I am setting up a banner for a client, and need to
add the clickTag
>> function to it, which I did like this:
>>
>> on (release) {
>> if (clickTag.substr(0,5) == "http:") {
>> getURL(_root.clickTag, "_blank");
>> }
>> }
>>
>> I then tested in by putting this code in the first
frame of movie:
>> _root.clickTAG="
http://www.cnn.com";
>>
>> This worked fine when I tested it. I then took that
script out of the
>> first frame, and when I test it in an html doc,
using the code they
>> suggest (replacing the source to my swf file)
>>
>> <OBJECT
classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000
>>
src=/your/ad/location.swf?clickTAG=http://www.cnn.com
>> type=application/x-shockwave-flash
>>
pluginspage=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#
>>
>> version=6,0,0,0 ID=FLASH_AD WIDTH=728 HEIGHT=90>
<PARAM NAME=movie
>>
VALUE=/your/ad/location.swf?clickTAG=http://www.cnn.com><PARAM
>> NAME=bgcolor><PARAM NAME=quality
VALUE=autohigh> <embed
>> src=/your/ad/location.swf
>>
pluginspage=http://www.macromedia.com/go/getflashplayer
>> type=application/x-shockwave-flash width=728
height=90> </embed>
>> </object>
>>
>> so, the swf loads into the html file fine, but the
link doesn't work.
>> I can't figure out what is wrong. please help!!!!
>
>
> -
I am still new with Flash in general. I am creating
advertisements to place on Google Adwords for my website:
http://www.oldwestdvd.com . I
read the other threads and I am still having problems with the
"clickTAG" function.
1) This is what my current action looks like verbatim:
on (release) {
if (clickTAG.substr(0,5) == "http:") {
getURL(clickTAG);
Is this complete? Do I need to add my web address anywhere?
2) Currently I have this action placed on the first frame of
the bottom layer on a button.
Is this the correct place to put this action?
Thank you in advance for your advice.
-ScottScott,
> Flash ads must be 50K or smaller in size
That's no surprise.
> and utilize Flash versions 4 - 7.
Odd. That does surprise me, but hey. It's their site, so
they can call
the shots.
> Does this mean that I won't be able to do this because
> I'm using CS3 Pro? It says that I need to use versions
4-7.
They're talking about Flash Player, so you're fine. Check
out your
Publish Settings and change the version of Flash Player and
ActionScript to
to suit. Flash CS3 is capable of publishing all the way back
to Flash
Player 2.
> Or do I have to remake the ad using a older version of
> Actionscript?
Take care not to confuse ActionScript with Flash Player
versions (or
Flash authoring environment versions). A FLA file, for
example, can be
published specifically for Flash Player 9 but use
ActionScript 1.0. Flash
Player 9 features two virtual machines for ActionScript, AVM1
(for AS1 and
AS2) and AVM2 for AS3, so it can do either. Flash Player 6
through 8 can
handle AS2 or AS1. Flash Player 3 through 5 can handle
versions of
ActionScript that don't have a number at the end -- back when
it was just
called ActionScript. When you look through the Help docs,
specifically the
relevant ActionScript Language Reference, just make sure to
check the
Availability heading on each entry to see what version of
Flash Player
supports the particular function you're trying to use.
In this case, I would configure my Publish Settings for
Flash Player 7,
ActionScript 2.0.
> I really need a book on this stuff. I'm sure you are
getting
> tired of being my Guru. Do you know of any good
> Actionscript books?
Heh, no worries ... I'm happy to help when I can. :) Thanks
to Flash
CS3, the Flash authoring environment is now capable of
publishing in
ActionScript 3.0, so your horizons are pretty open. I do a
lot in both
languages (AS2 and AS3), so it's hard to choose which a
newcomer should
learn first. AS3 is certainly the "cleaner," better
organized, all around
improved edition of ActionScript (which makes sense, because
it's the
newest), but using AS3 means you're bound to publishing for
Flash Player 9
or higher. Ultimately, you should learn both.
Your best bet is to wrap your brain around the concepts of
Object-Oriented Programming. AS3 meets those principles
better than AS2,
and AS2 meets those principles better than AS1. So maybe ...
start with AS3
to get the Big Picture.
I like Elst, Yard, and Jacobs' Object-Oriented ActionScript
3.0 (friends
of ED). You'll also find a Flash 8 (AS2) version of that one,
too. I just
finished a book of my own, co-authored with Tom Green, called
Foundation
Flash CS3 for Designers (friends of ED), which deals with AS3
almost
exclusively and is aimed more at designers than developers
(programmers).
While not an AS-based book, it covers a decent amount of
programming. The
book I'm most looking forward to reading cover to cover is
Colin Moock's
Essential ActionScript 3.0 (O'Reilly), and he also has an
Essential
ActionScript 2.0 (O'Reilly) that covers object-oriented
programming in great
detail.
David Stiller
Co-author, Foundation Flash CS3 for Designers
http://tinyurl.com/2k29mj
"Luck is the residue of good design."
Maybe you are looking for
-
How to generate a report direct in PDF with oracle developer 6i
hi all Please help me about this issue. THAT How to generate a report directly in PDF using oracle developer 6i. Regards Yousuf Ahmed Siddiqui
-
Problem emailing photos from iPhoto after installing OS 10.5.1
Since installing Leopard I have had problems emailing photos from iPhoto. I can send from my laptop to another Mac without problem BUT when I try to email pix from iPhoto to a PC user or to post on my Google Group board it only sends the 'title' I ga
-
To export query from Access to Excel in Read/Write mode in VBA
Below is the code which exports the query named 'LatestSNR' from Access to Excel; Public Sub Expdata() Dim rst As DAO.Recordset Dim Apxl As Object Dim xlWBk, xlWSh As Object Dim PathEx As String Dim fld As DAO.Field PathEx = Forms("Export").Text14 'p
-
How can I delete a failed partition space?
I tried to partition my disk for the first time, but unfortunately, it failed. Now there's a white space left for the supposed partition space. How can I retrieve it back? Help please.
-
Monitor Interface with Motherboard
My son is building a pc and with the Z87-G45 Motherboard. I computer is up and running, but when he went to plug in the monitor the monitor keeps going to sleep as if it can't get any power. We have a VGA plug with a VGA cord but when the monitor f