Jump to content

Search In
  • More options...
Find results that contain...
Find results in...

WebBanner Pause at 30sec

Recommended Posts

I'm trying to build a web banner using TweenNano but one of the requirements is that the ad has to stop animating after 30secs.
I've been trying to implement the code, but I keep getting errors and I'm not a seasoned enough flash developer to know what the deal is:

import com.greensock.*;
import com.greensock.easing.*;

import flash.events.MouseEvent;
import flash.net.URLRequest;

var animateTxt = function begin():void {
		TweenNano.to(seeOthers, 1.5, {alpha:1, delay: 0, ease:Quad.easeInOut});
		TweenNano.to(seeOthers, 1.5, {alpha:0, delay:3, ease:Quad.easeInOut});
		TweenNano.to(shouldBe, 1.5, {alpha:1, delay:4.5, ease:Quad.easeInOut});
		TweenNano.to(shouldBe, 1.5, {alpha:0, delay:7.5, ease:Quad.easeInOut, onComplete:begin});


var timer:Timer = new Timer(30000, 1);
  function(evt:TimerEvent):void {
	  trace('timer launched');

startBtn.addEventListener(MouseEvent.CLICK, onStart);
function onStart(e:MouseEvent):void {



Any help would be GREATLY appreciated

Link to comment
Share on other sites

please try TweenNano.killTweensOf() 


function(evt:TimerEvent):void {
 trace('timer launched');
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.