Knowledge Base


Important! All new questions are usually answered within the next business day.

* Flash - general use problems

(views: 5304)

These issues are not necessarily related to our components and they represent general issues of using Flash.



Use clickTag with AS3 clip

(2008-09-18 - views: 7106)

Q: How should the clickTag be applied on a ActionScript 3.0 clip ?
A: You need to specify the URL of the page to the Flash clip embedded into the HTML, through FlashVars. The name of the parameter is usually clickTag. The FlashVars parameters are placed in a list of parameters on the root object.

In your Flash clip, all you have to do is create a button that will open the desired page when clicked and assign the actions that will open the page. The button can be a simple transparent clip that covers the entire surface of your Flash movie. If the button instance name is "buttonClip" and the FlashVars parameter name is "clickTag", then the code to apply the clickTag functionality is this one:

var paramList:Object = this.root.loaderInfo.parameters;

buttonClip.addEventListener(MouseEvent.CLICK, openURL);

function openURL(evtObj:MouseEvent):void {
    var request:URLRequest = new URLRequest(paramList["clickTag"]);
    navigateToURL(request, "_blank");
}


Files: Clicktag with AS3.zip 


User Comments

Help for a beginner
posted by Cecile on 2009-05-29

I'm using the text effects Can I have a more detailed set of instructions for this, written for a beginner who doesn't know terms like "var Param and FlashVars"

I'm on a deadline and cannot add the clicktag code for the button on my banner.

Please help
write to support
posted by florodebat on 2009-06-01

please open a new ticket support and write there a detailed description of what you are trying to achieve and shortly you will get an answer. Click the link below in order to open a new support ticket.

http://www.jumpeyecomponents.com/support/open.php


Login to post your comment login to post your comment



Back

Knowledge Base Search

Enter keywords below:
Advanced Search
FlashEff 2.0
Create professional flash photo slideshows online

FREE Flash Stuff

Check out these free, fully functional AS3.0 Flash components by Jumpeye:

FlashEff 2.0 Free
(free for non-commercial use)

JC Panorama
(free for non-commercial use)

JC Play List
(fully free)

Basic Menu Pack V3
(free AS3 version)

MCTE V3
(free AS3 version)

JC Player
(free for non-commercial use)

JC Flash Map
(free for non-commercial use)

Flash Bookmarks
(fully free)

ActionScript Bridge AS2-AS3
(fully free)

JS Charts
(free for non-commercial use)

Free Trial Versions

The trial versions do have a major limitation. They will ONLY run into debugger flash player versions, such as the Flash IDE player and the activeX FP used by developers.

Switch from Free Trial version to Full version.

You can switch from Trial to Full versions in a blink of an eye.
See this tutorial in order to find out how.

We accept Google Checkout

Google Checkout Acceptance Mark

Secured by VeriSign