Well, I'm supposed to present this exercise before the class tomorrow in which we use actionscripting to create user defined incremental loops, as well as textfields to display data. Well, my idea was to create this bouncing ball that would bounce around the screen (taking reflective angles, random speed, random direction) with textfields to display its x/y coordinates, and then let the viewer choose how many they want on the screen.
Well, I got the ball bouncing perfectly, and the textfields display the x/y coordinates just the way I want, but it's all out in the scene. I want to put all of this into a movieclip, so that I can use duplicateMovieClip in a for loop. I've tried moving the content into a movieclip, but the paths must be changed. I went and made what I thought were the apropriate path changes, but it still won't work.
All the source and swf files are at my
class project page. Here's the run down of the versions:
Exercise 2.3 is the last successful version, with the ball that bounces around perfectly.
Exercise 2.4 is screwed up because I tried to take out all the "Number()" statements, since I believe that's old code and isn't necessary in flash mx (am I wrong? please correct me).
Exercise 2.5 is version 2.3 that was moved into a single movie clip called "bounce", with modified paths to suit.
It would be really awesome if I just have some little thing screwed up and it can all work within one movie clip, cause that will make my life a lot easier. I'll be working on it tomorrow morning before class, so I'll definately check back before then.
PS: I know just saying "_root.bounce.whatever" will screw up my duplication of the MC "bounce". I'll need to name them incrementally (bounce + i), but am not sure how I will handle that within the seperate movie clips themselves... it's a bit of a logic fart.
