This week I learned how to make a picture gallery with button linking, and how to add a loading function to my pages. I am glad I learned these because I need them for my website.
I made the picture gallery by using basically the same way as I did last week in linking pages using linked frames. I made some animated buttons that changed shape when mouse is over (tweening) and applied actionscrpt to them so they linked to some pictures that were situated in different frames. These pictures were also motion tweened so that they faded in when they loaded. I just did that to practice what I had learned in the first few weeks. This worked really well and I am definately going to use this kind of gallery for my website.
Next I learned how to put a loading thing at the start of the page. This was a lot easier than I thought it would be. It was just a case of inserting 10 keyframes at the start of the timeline and then writing 'loading' in each one, and giving each one a higher number of dots than the last one. Then I just applied some actionscript to the last of those loading frames (frame 10) that told it to keep returning to the first frame. Then I put some more actionscript in this time in the first frame telling it to jump to frame 40 IF the whole animation had finished loading. This loading thing is going to be really useful to me because some of my webpages are quite large in file size (gallery page etc.), and this only allows the user to see the content when everything has finished loading. Here's the swf:
I am getting close to finishing my website now and will be showing a finished version of it to my client in the next few days.