Home
> FlashEff 2.0
> Topic
clickTag & FlashEff2
Posted by LeadingKom
clickTag & FlashEff2 December 03, 2010 12:46PM | Registered: 14 years ago Posts: 2 |
hi guys!
i have a little problem with integrating a clicktag in as3 in my fla-file - i´m using FlashEff2 with Flash CS4 (AS3) --> i have to make an ad-banner (IAB standard)...first of all, i did the animation (with flash eff2) - then i created a button (rectangular, 0% transparency, first layer...) and copied this code for the clickTag (original "IAB standard-code"):
var clickTag:String=this.parent.root.loaderInfo.parameters.clickTag;
clicktag.addEventListener(MouseEvent.CLICK,openClickTag);
function openClickTag(evt:MouseEvent)
{
navigateToURL(new URLRequest(clickTag), "_blank");
}
code seems to be ok, but the animations are gone?! this may mean that i see all elements of the animation in the preview (background, text...) but the text animations are not there...why? when i erase the clicktag-button-layer, everything works fine again...
please help me - thanks!!!
kind regards
L.
P.s.: i also read the "AS3 clickTag topic" from the knowledge base...but i don´t get it :(
i have a little problem with integrating a clicktag in as3 in my fla-file - i´m using FlashEff2 with Flash CS4 (AS3) --> i have to make an ad-banner (IAB standard)...first of all, i did the animation (with flash eff2) - then i created a button (rectangular, 0% transparency, first layer...) and copied this code for the clickTag (original "IAB standard-code"):
var clickTag:String=this.parent.root.loaderInfo.parameters.clickTag;
clicktag.addEventListener(MouseEvent.CLICK,openClickTag);
function openClickTag(evt:MouseEvent)
{
navigateToURL(new URLRequest(clickTag), "_blank");
}
code seems to be ok, but the animations are gone?! this may mean that i see all elements of the animation in the preview (background, text...) but the text animations are not there...why? when i erase the clicktag-button-layer, everything works fine again...
please help me - thanks!!!
kind regards
L.
P.s.: i also read the "AS3 clickTag topic" from the knowledge base...but i don´t get it :(
Re: clickTag & FlashEff2 December 03, 2010 03:36PM | Admin Registered: 15 years ago Posts: 547 |
Re: clickTag & FlashEff2 December 03, 2010 04:26PM | Registered: 14 years ago Posts: 2 |
Re: clickTag & FlashEff2 December 06, 2010 09:42AM | Admin Registered: 15 years ago Posts: 547 |
If clicktag also is the flasheff's target you need to add the event listener on flasheff.
flasheffInstance.target=clicktag
var clickTag:String=this.parent.root.loaderInfo.parameters.clickTag;
flasheffInstance.addEventListener(MouseEvent.CLICK,openClickTag);
function openClickTag(evt:MouseEvent)
{
navigateToURL(new URLRequest(clickTag), "_blank");
}
flasheffInstance.target=clicktag
var clickTag:String=this.parent.root.loaderInfo.parameters.clickTag;
flasheffInstance.addEventListener(MouseEvent.CLICK,openClickTag);
function openClickTag(evt:MouseEvent)
{
navigateToURL(new URLRequest(clickTag), "_blank");
}
Re: clickTag & FlashEff2 May 11, 2011 03:49PM | Registered: 13 years ago Posts: 2 |
Thanks but that is not what i need, i can´t use flashVars because i cant edit the html where the flash is going to be.
So wich code in AS3 can i use for a ClickTag for google Adwords so the flashEff effects keep working?
Because with the one that i´m supposed to use removes the effects of the flashEff.
Im supposed to use this:
on (release) {
if (clickTAG.substr(0,5) == "[www.youtube.com];) {
getURL(clickTAG, "_blank");
}
}
So wich code in AS3 can i use for a ClickTag for google Adwords so the flashEff effects keep working?
Because with the one that i´m supposed to use removes the effects of the flashEff.
Im supposed to use this:
on (release) {
if (clickTAG.substr(0,5) == "[www.youtube.com];) {
getURL(clickTAG, "_blank");
}
}
Re: clickTag & FlashEff2 May 12, 2011 09:58AM | Admin Registered: 15 years ago Posts: 547 |
Re: clickTag & FlashEff2 August 08, 2011 08:23AM | Registered: 12 years ago Posts: 13 |
Sorry, you do not have permission to post/reply in this forum.