Hi all. I have designed my first flash site, and require some advice. When designing the site for a school, Its more of a re-direction page leading up to more stuff, which is what they wanted. So basically we have are bells and whisles as an introduction. But I have also produced a contact us page. But due to the overload as a first flash project I developed the content page as a different fla file, with all actionscripts, movie and button objects. The problem arises now, when its a case of putting the files together. as in the second file a preloader has been added the same as the first file.
Could anyone provide advice and direction for combining the two fla files. I understand different scenes is not the best route, so I would appreciate peoples opinions on the right route to follow. Please help this is very important for the final preperations.
If the two fla’s are for different sections then create a third fla where you can load fla 1 and 2 into. Either by using buttons, or a timer or whatever. Use loadMovie or LoadMovieNum.
I dont require anything, i.e buttons, because this would be pointless. I like the idea of this loadmovie, but like I said I dont want the viewer to see this, but just be normal. i.e see the preloader and then the page appear with no extras like a splash page with the option to enter. mmhh do you mean simply create a third fla, add a action at the start with no stop function, loading movie 1, mmm a little lost here please help me out.
if that was the case how would I get to the second fla? without buttons or the option on the third fla. maybe I am not thinking logically!. can you expand please, I dont want to sound daft, but it is looking this way.
I have a home.fla file with all elements including preloader, buttons etc.
I have a second contact.fla file with the same elements.
When I work I tend to keep things simple otherwise I get confused as to many elements are in one space, so I feel this makes things more simle, making me stick the project rather than leaving it and giving up. We all work differently right!.
If I place my home.fla inside the html, its great right. But when the user clicks on the contact button or icon I have, I want the second fla to load as this two has a preloader included like the first file.
So the solution for such an event is where I require your explinations and assistance please.
Otherwise I would need to spend much time cutting and pasteing elements from the contact.fla into the home.fla, making all this one file. so when the user clicks on the contact we could use a label. But this is to much work and there must be a simpler method of achieving the same results. As this just adds extra time that I dont have right now :(.
What that will do is unload home.swf, so the user doesnt see it anymore, and load the contact.swf in its place. And it gets loaded into the third swf that you’ve just created.
You can name the third fla whatever you like. Just make sure that all the swf’s are in the same directory. If you need to use sub directories then you need to change the code to show the relative path to the home.swf and contact.swf.
something that might please you if you dont already know. its CSS viru and it allows the vertical centering option in Opera browser for anyone who does not know. As I have always tried it and it never worked well here it is, Centering option is possible.
#Content {
position:absolute;
left:50%;
top:50%;
width:300px;
height:300px;
margin-left:-150px; /* width/2 /
margin-top:-150px; / height/2 /
border:1px dashed #333;
background-color:#eee;
padding:10px;
}
/ The right value for Mozilla */
body>#content {
margin-left:-160px;
margin-top:-160px;
}