heres' my code
import mx.video.*;
movie.onRelease = function(){
clearInterval( 1 );
goMovie();
}
//intervalID = setInterval(test,10000); //5 seconds
function test(){
clearInterval( 1 );
goMovie();
}
function goMovie(){
var myTween:Tween = new Tween(blankie, "_alpha",
mx.transitions.easing.Regular.easeOut, 0, 100, 1, true);
blankie.vid.play();
var listenerObject:Object = new Object();
listenerObject.rewind = function(eventObject:Object) {
blankie.vid.rewind();
};
blankie.vid.addEventListener("rewind", listenerObject);
var mouseListener:Object = new Object();
mouseListener.onMouseMove = function() {
var myTween:Tween = new Tween(blankie, "_alpha",
mx.transitions.easing.Regular.easeOut, 100, 0, 1, true);
blankie.vid.stop();
Mouse.removeListener(mouseListener);
intervalID = setInterval(test,10000); //5 seconds
};
Mouse.addListener(mouseListener);
}
I started hard coding the 1's because intervalID wasnt working
On 6/2/06, phaedrus <[EMAIL PROTECTED]> wrote:
Interval should work - sounds like you have something changing it. How do
you set your interval time, what does it do when it fires, and does
anything
change it?
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Flash guru
Sent: Friday, June 02, 2006 11:13 AM
To: Flashcoders mailing list
Subject: [Flashcoders] screen saver question
I am making a kiosk app this pretty simple, but needs to have a movie play
if there is no interaction within 10 minutes or so. Essentially a screen
saver, my problem is that when i try using an interval it works fine for
the
first 2 times there is no interaction after that the interval doesn't wait
the 10 minutes it becomes less and less 10 > 8 > 4 > 1 > seconds.
Anyone know of a better way of doing this?
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com