Need help with creating a click thru script in designer

Discuss Interactive Design & Flash® (SWF) Export inside QuarkXPress 7, 8 & 9.
Exchange ideas, share helpful tips and get started with your first interactive design.
Please note that Flash (SWF) authoring is not supported in QuarkXPress 10 anymore.
Matthias Guenther (Quark)
Quarkian
Quarkian
Posts: 2490
Joined: 04 Jun 2004, 15:06
Contact:

Need help with creating a click thru script in designer

Post by Matthias Guenther (Quark) » 26 Apr 2010, 01:05

Hi Gregory,
the same as described above should work for you. Create a variable called clickTAG and open it via external reference as described above. That's basically the same as the getURL required by your publisher.
The other part (if...) basically just checks whether clickTAG starts with 'http'. If you really need that that's easily achieved with expressions:
If Expression 'clickTAG.SubStr(0,5)=="http:"'
Open URL > External Reference 'clickTAG'
End If
And that script needs to be triggered by your button. Makes sense?
Or are you stuck on what object should trigger this? For ads this will be most likely the whole ad, so just put an (invisible) object over the page and assign this script to the 'click up' event of the object.

And if you do not want to create this script for every new project, just create the script without any document open. It will then be available for any new interactive project you create.
Thanks
Matthias

Susancea
Posts: 0
Joined: 29 Jan 2009, 10:05

Need help with creating a click thru script in designer

Post by Susancea » 28 Apr 2010, 05:17

Ok... so quark sends me a link to find the directions above ( Tue, Jul 1 2008 9:19 AM). I input all of the directions above and now my hyperlink doesn't work anymore?Any idea what gives?

Matthias Guenther (Quark)
Quarkian
Quarkian
Posts: 2490
Joined: 04 Jun 2004, 15:06
Contact:

Need help with creating a click thru script in designer

Post by Matthias Guenther (Quark) » 28 Apr 2010, 05:31

Hi Susan,
when you say "input all", can you please elaborate what you did, as there was several solutions?
One was to have the URL injected from the outside. If you followed these steps, then of course yu also need to inject the URL from the outside to have a working URL again.
Thanks
Matthias

Susancea
Posts: 0
Joined: 29 Jan 2009, 10:05

Need help with creating a click thru script in designer

Post by Susancea » 28 Apr 2010, 05:48

Build your SWF:
2. Go to "Edit > Variables"
3. Create a new variable called clickTAG (careful! It is case sensitive, so create it exactly as required)
4. Make it of type "string". Press OK.
5. Create the object that will call the URL passed in the HTML.
6. Assign an event and action to it. The action is "Internet > Open URL", Method "Enter URL", "External Reference".
7. In the Expernal Reference Dialog choose "URL Expression" and as Expression "clickTAG" (case!).

I had an existing web ad that was being placed on a blog. I needed to add their clickthru coding to the ad.
This is what they sent me:
In order to track your clickthroughs, you will need to add the following code to your flash:

getURL("javascript pageTracker._trackPageview('/wp-content/themes/chbv3/img/banners/chcoops/chcoops.swf');");getURL("http://www.timeequities.com/listings.cf ... gtyp=sales");

So I input "getURL("javascript pageTracker._trackPageview('/wp-content/themes/chbv3/img/banners/chcoops/chcoops.swf');");" as the external reference

Matthias Guenther (Quark)
Quarkian
Quarkian
Posts: 2490
Joined: 04 Jun 2004, 15:06
Contact:

Need help with creating a click thru script in designer

Post by Matthias Guenther (Quark) » 28 Apr 2010, 09:41

Hi Susan,
you need to call your SWF with this recipe here:
1. Build a website (HTML) that calls the SWF like this:
mybanner.swf?clickTAG=http://www.myurl.com" quality="high" wmode="transparent" name="8.swf" align="middle" height="240" width="320">
That's what I meant with "injected".

And about your ad service, did you put in the BLOCKED SCRIPT or is that our forums software preventing potentially bad scripts? if the latter, please send me an email (using the contactbutton above this post). Just as I am travelling this and next week, not sure whether I can speedily respond.
Thanks
Matthias

Gorsewaygirl
Posts: 0
Joined: 25 Oct 2006, 07:30

Need help with creating a click thru script in designer

Post by Gorsewaygirl » 27 Oct 2010, 09:42

Sorry to hijack this thread but I have the same problem as Gregory above. I have created a flash banner ad to be published by someone else on their website. I have to physically embed the following required code in the banner ad I send to the publisher. It is not clear to me how to do that. The code is: on (release) { if (clickTAG.substr(0,5) == "http:") { getURL(clickTAG, '_blank'); } }That code has to be called when a viewer clicks on the banner ad. I have no idea how to do this. Reading the thread back it seems I need to follow these instructionsBuild your SWF:2. Go to "Edit > Variables"3. Create a new variable called clickTAG (case sensitive)4. Make it of type "string". Press OK.5. Create the blank box in the interactive palette under 'Object' give the box a name.6. In the 'Events' tab of the interactive palette select the the object boxes name; User event 'click up'; Action 'open URL'; Method 'enter URL'; URL 'external reference'7. In the external file reference call out box Name 'URL1'; Type 'URL Expression'; Path 'clickTAG'But where do I put the code (on (release) { if (clickTAG.substr(0,5) == "http:") { getURL(clickTAG, '_blank'); } }) that was supplied to me?It's probably obvious but a really simple step by step guide would be really helpful here :0) I'm tearing my hair out and it's got to be done by tomorrow :0(

Locked

Return to “General authoring questions”