Re: [Flashcoders] Pausing the main timeline.

2008-02-12 Thread Adrian Ionut Beschea
yeah, the parantheses you opened for addEventListener never gets closed; 

Vlado Krempl [EMAIL PROTECTED] 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


   
-
Never miss a thing.   Make Yahoo your homepage.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Pausing the main timeline.

2008-02-12 Thread Glen Pike

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


Re: [Flashcoders] Pausing the main timeline.

2008-02-12 Thread Thomas Kaiser
VK Any ideas??

yes - change }; to ); in line 9
typo?

:)

Cheers,
tom

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


Re: [Flashcoders] Pausing the main timeline.

2008-02-12 Thread Vlado Krempl
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