It's funny how the most obvious mistakes can cause such havoc in actionscript.
Thanks guys,

v
----- Original Message ----- From: "Glen Pike" <[EMAIL PROTECTED]>
To: "Flash Coders List" <flashcoders@chattyfig.figleaf.com>
Sent: Tuesday, February 12, 2008 11:33 PM
Subject: Re: [Flashcoders] Pausing the main timeline.


function pauseTimeline(howlong:Number):void {
stop();
var t:Timer = new Timer (howLong,1);
t.addEventListener(
       TimerEvent.TIMER, function(evt:TimerEvent):void {play();}
   )
t.start();
}



Vlado Krempl wrote:
Hello everyone,

When I try to pause the main timeline with this code (below), I get a "1084: Syntax error: expecting rightparen before rightbrace.};"
function pauseTimeline(howlong:Number):void {
 stop();
 var t:Timer = new Timer (howLong,1);
 t.addEventListener(
        TimerEvent.TIMER,
        function(evt:TimerEvent):void {
        play();
        }
};
t.start();
};

Any ideas??





Vlado Krempl Please consider the environment before printing this e-mail. The contents of this message should be treated as COMMERCIAL IN CONFIDENCE unless otherwise specified in the message and is intended solely for the use of the individual or entity to whom it is addressed. If you have received this email in error please notify the sender. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. _______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--

Glen Pike
01736 759321
www.glenpike.co.uk <http://www.glenpike.co.uk>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to