-
if (_currentFrame==45) {
trace("The movie is now on 45");
} else {
trace("The movie is not on 45");
}
may someone plaeas just explain the meaning and function of trace(
-
hehe
trace just outputs a bit of text, used when you're debugging stuff. I suggest you check out the tutorials on this site.
you don't need the traces in there for thecode to work, put whatever you want into each bit...
if (_currentFrame==45) {
******put your code in here which should run*****
******when the user is on frame 45 *********
} else {
*** they are not on 45 at all *******
}
-
Traces can also give you an idea of how much processor your code uses in the event you have a lot of clips, animation, and fades. Tracing variables can help you design a more efficient movie and, of course as was mentioned, de-bug it in the event something goes haywire. Colin Moock (ASDG) uses a lot of traces in his book and many posters here just plug that in or say "yourActionsHere" in place of more chunky code when answering questions.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|