This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > February 2004 > frames doing weird things





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author frames doing weird things
Nocky35 webforumsuser@macromedia.com

2004-02-02, 8:28 am

Hi, hope someone can help. I have got items on individual frames. For some reason, when being played, they are skipping 1 frame, and looking weird (as if shape tween is on, and they are 1 frame into being distorted.).

There is a stop(). on the frame, but it still seems to go one frame ahead.

Any ideas?


swingb13 webforumsuser@macromedia.com

2004-02-02, 1:30 pm

Try adding a trace statement to the first frame to make sure it's seen. **All of these actions belong on the first keyframe of your movie's timeline. Cut and paste these actions and don't stack them (each statement is different).

stop();
onLoad = function(){
trace ("this is frame one");
}

.....if that works force it to trace the current frame:

stop();
onLoad = function(){
if (_currentframe == 1){
trace ("this is frame one");
}else{
trace ("not frame one");
}
}

....if your statement fails ("not frame one") use this trace statement to isolate the current location of the timeline:


onEnterFrame = function(){
trace (_currentframe);
}

....notice that this is a looping statment. If there are no stop(); actions on your timeline you should see every frame of your movie counted. If there are stop(); actions (for example a stop on five) the output window will show:

1
2
3
4
5
5
5
5

...ad naseum. If you see

1
2
2
2

.....that means your stop action is not working in the first frame (probably attached to a movie clip and not the timeline).

Just as a guess (and I'd need more information to make a better judgement) but as a guess I think you've probably got a gotoAndPlay action that's moving the _root timeline forward which would explain your 'distorted' images or like I said above your stop
action is probably in the wrong location. A good tip to keep in mind when working with any kind of actionscript is to keep all your actions on a single frame in the timeline and control all the objects from there. Good luck and post to this thread again i
f you have more questions.

Doug Richards
Team Macromedia Volunteer for Flash

Sprint Corporate Champions User Group Manager
Member AIGA
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews