Copy link to clipboard
Copied
Ich habe einen Banner erstellt welcher einen Link zu einer Website erhält. Die Aktion ist mit einem Codefragmebt integriert. Der Banner läuft in Schleife, im Firefox führt das nun dazu, das die Verlinkung sich multipliziert. Sprich, wenn er drei Mal durchgelaufen ist, verlinkt er sich nicht einmal sondern drei Mal, öffnet also 3 Tabs. Wie kann man das umgehen? Ich will nur ein Tab, der sich öffnet, auch wenn der Banner 25 Mal durchgelaufen ist.. Vielen Dank!
Stop adding the same event listener over and over again.
Copy link to clipboard
Copied
Stop adding the same event listener over and over again.
Copy link to clipboard
Copied
But I just out The Action once in there?! In the beginnig.. First picture.
Copy link to clipboard
Copied
Looping is more than once.
Copy link to clipboard
Copied
I don't see any pictures or code in your post. But suppose you set up the link in the first frame, and you want the animation to loop, don't use the publishing settings loop option. Instead put this into a key frame in the last frame of the animation:
this.gotoAndPlay(1);
That will make the animation loop without setting up multiple links.
Copy link to clipboard
Copied
That Sounds Great. I will try that on sunday. One Last question, should i do that with an Action on a new Level and Write that myself in that Code window? Just worked with the codes which are included in animate. I am an absoloutly beginner :-(, and writing about that topic in english is just as starting with Codes...
Copy link to clipboard
Copied
If you already have a layer where you set up your links, you can go to the last frame and select it, and choose Convert to Keyframe, or type the function key F6. Then while that frame is selected in the layer you would put the code I gave you into the Actions window. The frame the had selected should show a little 'a' on it, which tells you that there is code on that frame.
Copy link to clipboard
Copied
Ok, thanks! Do I habe to put the Code in every Layer in the End? So my Animation has about eight ?
Copy link to clipboard
Copied
Worked out perfectly! Thanks a lot!