Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

text timer???

Status
Not open for further replies.

Metacomet

Technical User
Nov 19, 2002
79
MX
How can I make a text frame wait some seconds until is readed and the pass to the next text frame???

Heres how I made it :S

I made a movie with the two text frames, the first one has like 500 frames (to make time) then after that the other with another 500, but thats a lot of lots of frames and therefore kb!!!

Please help, is urgent!!!
 
use getTimer();

Frame 1

now = getTimer();
delay = 5000 + now; //5 seconds

Frame 3

if (getTimer()>delay){ //do something
}else{prevframe();
}

this will loop over 3 frames for a set period of time.
 
SetInterval... A lot easier! Regards,

oldman3.gif
 
Im not so good with action scripts could you please explain exactly how do i use it? do I copy and paste?

Any other suggestions???


Urgent help needed :S
 
2 frames only...

Frame 1:

stop();
function pause(){
play();
clearInterval(timer);
}

timer = setInterval(pause, 10000);
//where 10000 is 10 seconds or 60000, 1 minute.

Frame 2: (or wherever when wanting a pause)...

stop();
timer = setInterval(pause, 10000);
//where 10000 is 10 seconds or 60000, 1 minute.

The above will keep looping your 2 text frames with a 10 seconds pause between each text. Regards,

oldman3.gif


Don't worry, if my reply is wrong, BillWatson will clean it up for me!
 
Excellent It really worked!!!

Now I got another problem, I apply the scrip to one movie contained in another main movie that is my web page, once I do this, the action script affects my whole main movie, why? How can I fix this?

The text timer really worked, but It is affecting everything, all my plays and stops are altered by the script.

Hope u can help :S
 
Loaded in an empty holder clip or on another level? Regards,

oldman3.gif


Don't worry, if my reply is wrong, BillWatson will clean it up for me!
 
in a diferent level, anyway, what could be the cause of this???
 
well, more explicit, impossible, thank you very much, then I think I will have to figure what could be the cause of this mess. If u do before me, I will apreciate.


Metacomet
 
ah but im sure that yours work

to find fault have to see the fla that doesnt work
 
Was I talking to you Bill? Guess not! [pipe] Regards,

oldman3.gif


Don't worry, if my reply is wrong, BillWatson will clean it up for me!
 
My fla file is so heavy that I can't upload it, It will take too long to dld it (5mb) is a complete web page

:S

P.D. Anyway if you have an FTP server I can upload it for you.
 
Oldnewbie,

I have checked you flas, I figured out I did my Built in movie diferent than you, the one I made for the text animation was made like a "symbol" do this changes something?
 
Don't really know!
Can't you make a copy of your .flas and delete all pictures including "text" pictures, sounds and unused items, zip them up, upload them and post a link to them. They should then be much smaller! Regards,

oldman3.gif


Don't worry, if my reply is wrong, BillWatson will clean it up for me!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top