Today in class I made another website using flash only this time, it was done using what is known as multiswift. Multiswift is a method in flash that is used to load up webpages quickly while not actual leaving the current page you are on. Rather than the other method of making websites in flash, multiswiting only uses on layer meaning that pages, background and navigation are saved as SWF (Small Web Format) files which are saved separately from normal flash documents. In order to make the website you start with a file called “background” and to load the next file which would be called, for example navigation, which is the file where the nav buttons will go. The file is loaded using the code: loadMovieNum('navigation.swf',5). This will entire that the navigation bar always stays on top. The pages are loaded in the same way. In order to make the nav buttons work you have to load each page separately. For example to lad pages the code is: button1.onPress = function (){
loadMovieNum('page1.swf',2)
}.
Using this method is not only easy to do but also greatly reduces the file size of the website so that it will load quickly, even on a slow connection
No comments:
Post a Comment