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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

time delay 1

Status
Not open for further replies.

bigbird3156

Programmer
Feb 20, 2001
183
AU
hello again.....

ok, I am making a text box that will have text change over at regular intervals, kind of like a slide show type of thingy... it will have a button to allow the user to advance but otherwise I want the text to change every 5 to 10 seconds.... obviously I can do this with a super long time line, 200 or so frames between each change, but is there a neater way of doing this to set up a time delay between frames... or can i change the frames-per-second setting on one movie inside a regular speed movie?

any ideas? (-: The Bird from Down Under
bigbird_3156@bb3.com.au
 
How about storing a certain amount of text strings in an array, and then through a control movie clip with a continuous getDate event or even an easier getTimer event, have the dynamic text box display the array strings in a cycle of so many seconds or minutes or days or whatever?

Guess you would like an example? Or can you work this out on your own?

Regards,
new.gif
 
thanks old...

I'll give it a go, however being realistic you probably should cook up an example for me..

by the way.. how do you get your oldnewbie 'logo' thing on there???

(-: The Bird from Down Under
bigbird_3156@bb3.com.au
 
Well I'll see if I can work something out later!

As for the signature, add it in your profile in the signature box:
Code:
[img]http://www.yourserver.com/new.gif[/img]

Regards,
new.gif
 
well, old....

I tried, but this is too big a job for me....

I have decided that it is time to get a tutorial book on learning flash action scripting... any suggestions?

in the mean time, have you had and luck with this one? I have no idea where to start!

Thanks for the ongoing help! (-: The Bird from Down Under
bigbird_3156@bb3.com.au
 
Well Old, you have done it again!!!!

thankyou.....

but how does it work... it is one thing to copy what you have done, it is another thing to understand it...

I see the strings and array & stuff but how do you control the timing... and how do I make the timing longer.... I need more than 10 seconds?

P.S. have a great australia day!! - bet you didn't know that did ya!
(-: The Bird from Down Under
bigbird_3156@bb3.com.au
 
If you open the .fla, you should see a small circle left of the textfield box.
That's the control movie clip. Right-click it and check the onClipEvent action. That's where it's all happening!

If you change the integer in this line, after time:
if ((time+100)<=currentTime) {
To...
if ((time+300)<=currentTime) {
The delay will be of 30 seconds. Make it 600, and the delay will be of 1 minute... Etc...

Regards,
new.gif
 
Thanks old worked like a dream....


One question.... I put your string movie into a seperate movie, that was imbeded in another movie that was imbeded in yet another movie

ie. mainmovie -> 2ndmovie -> stringmovie

because of this the _root.variable calls the 'root' of mainmovie? or 2ndmovie?... it obviously did not call the 'root' of stringmovie... I then put the movie inside frames inside 2ndmovie and it worked fine....

if I have something set up like i originally did, how can i call the 'root' of stringmovie... I looked on that navigation tool that shows you the movie map (if you know what i mean... that crosshair thing on the bottom right corner of the action window) and it did not have the apropriate option, so i had no idea how to do it...

can you explain? (-: The Bird from Down Under
bigbird_3156@bb3.com.au
 
Big,
If I understand you correctly, as long as you're only using movie clips, _root. remains the call to address the main timeline from those movie clips. Now since each .swf has it's own _root level, when using external .swfs loadded on other levels (or I guess even loaded in empty holder clips), you'd have to use _level0. instead of _root. , because otherwise you'd be addressing the external .swf's own root level.

Regards,
new.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top