all groups > flash actionscript > january 2005 >
You're in the

flash actionscript

group:

Complex Delay


Complex Delay Joe Childs
1/20/2005 8:21:53 PM
flash actionscript:
Hi, I've been working on a user-oriented presentation - that is, the user can
navigate around it at ease (a bit like a webpage). When the user clicks a
button, I have a metal sheet dropping over the text to cover it up, then I want
a delay so the text changes WHEN THE SHEET IS DOWN, then the sheet rises again.
I have the following script on my button: on (release) { stop();
gotoAndPlay(2); setInterval(function () { System.useCodepage = true;
Field1.html = true; myLoadVar = new LoadVars();
myLoadVar.load('text.txt'); myLoadVar.onLoad = function(success) { if
(success == true) { Field1.htmlText = myLoadVar.myText; } }; },
1000); } It loads the text from an external file (text.txt) into Field1.
However, the same code is on the next button, for 'menu.txt', but when I click
the button, the content of Field1 flickers between the two. See the .swf file
at www.dw2.org/presentation.swf Any help much appreciated. If you need more
info, please tell me. Thanks.
Re: Complex Delay barn
1/20/2005 10:07:21 PM
Re: Complex Delay Joe Childs
1/20/2005 10:37:33 PM
ATM, I don't :) First time I've needed to use setInterval.

The clearInterval code I have so far is
clearInterval( );

AddThis Social Bookmark Button