| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Oct 2003
Posts: 15
|
Hello, I am pretty clueless when It comes to action script (or any kind of script)... I am making a movie where there are parts where words come up and I want to give the watcher enough time to read the words. I know I can just put in tons of frames- but I was wondering if there is a pause and resume method I might be able to use with action script. Something to holed a movie at a certain frame for a certain amount of seconds and then resume until the next pause. Make sense?
If anyone knows a way to do this please help. And please speak and super ignorant laymens terms. Thanks! -eef |
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Mar 2003
Location: portugal
Posts: 228
|
hi,
you can define this function wait(): ActionScript Code:
ActionScript Code:
|
|
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Oct 2003
Posts: 15
|
Thanks-
like I said I really don't know much more than the simplest of action scripting like stop play and goto and play type commands. All the other stuff is just confusing. Could you explain to me how I use what you gave me- where do I set the amount of time I want my movie to pause- and how do I make it a function? Hope I'm not wastin anyone's time. Thanks allot for helping. -eef |
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Mar 2003
Location: portugal
Posts: 228
|
You attach the code that defines the function to the first frame of the main timeline.
And you attach the function call to the frame where you want the movie to pause. The 2 in the function sets a 2 second pause. Change it as you wish If you're calling the function from a different timeline, you can define a similar function but with parameters: ActionScript Code:
ActionScript Code:
|
|
|
|
|
|
#5 |
|
Registered User
Join Date: Oct 2003
Posts: 15
|
THATS AMAZING! IT WORKED! THANK YOU FLASH MASTER!
-eef |
|
|
|
|
|
#6 |
|
Registered User
Join Date: Oct 2003
Posts: 15
|
Ok- now that that problem is solved, here is problem 2-
Is there anyway to apply that to a movie clip that is animating also? I have a movie clip of a man walking across the screen and when the movie pauses he stops in his place, but he keeps walking in place and 2 seconds later starts moving again. Can I apply that to my movie clip instance? Say the movie clip instance name is "man1." thanks again for your help. -eef |
|
|
|
|
|
#7 |
|
Senior Member
Join Date: Mar 2003
Location: portugal
Posts: 228
|
something like:
ActionScript Code:
ActionScript Code:
|
|
|
|
|
|
#8 |
|
Registered User
Join Date: Oct 2003
Posts: 15
|
You are my hero. Thanks so much. I dont understand how you did it but you did it and it worked.
-eef |
|
|
|
|
|
#9 |
|
Registered User
Join Date: Oct 2003
Posts: 15
|
would you be willing to explain that code to me? It kind of makes sense but other parts just confuse me... or someone who understands?
-eef |
|
|
|
|
|
#10 |
|
Senior Member
Join Date: Mar 2003
Location: portugal
Posts: 228
|
here's the explanation of the code
ActionScript Code:
There are only two points here: - the definition of a function.... you have to understand functions... - the use of setInterval()... Here, setInterval() is writen in a more complex way than usual... I can give you a simple exampleof how write it in a more readable way: ActionScript Code:
ActionScript Code:
The use of clearInterval(): ActionScript Code:
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|