upuaut8
April 12th, 2002, 08:37 AM
Ok, I've got a guestbook made in flash that I just can't quite get right. If someone seriously thinks that they can help, I'd apreciate greatly.
What's going on here is that I've temporarily set up the variables from a php script into a hub clip in the upper left corner. Mind you, that's not the problem.
I have a Movie clip called page, which contains another movie clip called "entry", with an instance name of "entry".
When the movie is ready to do it's stuff, it attaches page onto the main timeline calling it page0
It then duplicates it a number of times equal to number of rows it received from the variables that are getting loaded into it (-1 for the first one on page0). (for experimentation I've placed 3 fau entries into the hub.)
So I've got three movie clips of a page, instance names "page0", "page1", and "pag2". These are located at a depth of 400, 401, and 402 as I wanted them out of the way of anything else. Each of these pages has an entry clip in it which has been given it's variables from the hub clip back on frame 4.
Now inside page, there is a tween in which the entry turns, like a page in a book, from right to left, spanning upwards a little for effect. In the middle of it's movement, when it is almost vertical, it sends the playhead of entry to frame 2 which is blank. (tricky.. so it looks like it's only on one side:) ) Just in case you look at the file and see that, that's what it is.
Likewise when the page reaches this apex, it calls out to a function called
swap(direction);
which is supposed to take the page that is turning forward, and swap it to the bottem of the stack of "page"s. It also has animation for the other direction, calling the page to be placed on the top of the stack when it is turning from left to right.
The effect is screwed up somehow and I'm having trouble peicing it together.
I think that my method of stacking the movie clips is inferior. Especially I'd like Pom or Suprabeener to take a look, and I don't want to post it just for anyone to have. If you seriously think that you can figure out the problem then reply and I'll email the file to you.
What's going on here is that I've temporarily set up the variables from a php script into a hub clip in the upper left corner. Mind you, that's not the problem.
I have a Movie clip called page, which contains another movie clip called "entry", with an instance name of "entry".
When the movie is ready to do it's stuff, it attaches page onto the main timeline calling it page0
It then duplicates it a number of times equal to number of rows it received from the variables that are getting loaded into it (-1 for the first one on page0). (for experimentation I've placed 3 fau entries into the hub.)
So I've got three movie clips of a page, instance names "page0", "page1", and "pag2". These are located at a depth of 400, 401, and 402 as I wanted them out of the way of anything else. Each of these pages has an entry clip in it which has been given it's variables from the hub clip back on frame 4.
Now inside page, there is a tween in which the entry turns, like a page in a book, from right to left, spanning upwards a little for effect. In the middle of it's movement, when it is almost vertical, it sends the playhead of entry to frame 2 which is blank. (tricky.. so it looks like it's only on one side:) ) Just in case you look at the file and see that, that's what it is.
Likewise when the page reaches this apex, it calls out to a function called
swap(direction);
which is supposed to take the page that is turning forward, and swap it to the bottem of the stack of "page"s. It also has animation for the other direction, calling the page to be placed on the top of the stack when it is turning from left to right.
The effect is screwed up somehow and I'm having trouble peicing it together.
I think that my method of stacking the movie clips is inferior. Especially I'd like Pom or Suprabeener to take a look, and I don't want to post it just for anyone to have. If you seriously think that you can figure out the problem then reply and I'll email the file to you.