How to make a Flash website with smooth transitions
Author: Bill Trikojus
![]() |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
|
|
|||
|
|
|||
![]() |
|
|
|
|
![]() |
|
|
|
|
![]() |
|
|
|
|
![]() |
|
|
PPS I have attached 2 extra source files that show how to set up basic website Flash structures. One shows how to achieve a smooth transition by covering the current content with a box, the other uses a similar method to that outlined in this tutorial but is a more solid structure that will not jump if the user clicks on multiple buttons in quick succession. These files require Flash CS3. PPPS To learn more about creating websites in Actionscript 1.0 check out 'ActionScript for Flash MX: The Definitive Guide |
|
Share
Like this? Click a link below to share it...Subscribe and Download

Comments
2008-10-15: vimo said:hi, nice tut!
do you know why i get a sintax error in line 13 on the content.swf: _level0.preloaderGraphics.percent = int(Percentage) add "%";?
cheers!
2008-10-15: Bill Trikojus said:
Try changing it to
_level0.preloaderGraphics.percent = int(Percentage) + "%";
cheers
2008-10-15: vimo said:
hmm not working, dunno what might be wrong... sorry, im a newbie in AS.
the curious thing is that it worked before as the code is written on the tutorial, then appear that error...
then i tried to make another external swf (content2.swf) based on the first one but got into trouble.
2008-10-15: Bill Trikojus said:
Did you copy and paste the code as it appears on this discussion or from the email that gets sent? In the email it adds lots of \\ that shouldn't be there
2008-10-15: vimo said:
did it from the tutorial
2008-10-15: vimo said:
i think i know the cause...
ur file is set up for flash player version 6... n i have been trying to load it on flash player version 8
2008-10-15: Bill Trikojus said:
Yep it has something to do with that. Changing add to + fixed it for me. try changing the int to Math.round()
cheers
2008-11-16: CoryLit said:
Heya thanks heaps for your tutorial it's great... for us novices! I was wondering how would I get the content swf's to load into a Loader component?
Thanks in advance for any help, you're great!
2008-11-24: JesperAndreassen said:
Hi Bill,
great tutorial :)
How do I make this work if I want the content to be loaded into a movieclip (container_mc on the main timeline) instead of levels?
2008-11-24: Bill Trikojus said:
Hi Jesper
Pretty sure this tute does that
Building a Flash website
cheers
2009-05-01: Jon Ada said:
This tut is great. Does anyone know where there is an actionscript 3 version of this?
2009-05-09: Tania said:
hi, bill, this tute is the only one I've found to do that with levels, thanks for that, just a question, I build my site with a base on level 0, all the sections will be load on level 1 and my main menu on level 2 cause it´s transparent and I want it above all,
what changes could i do on the code to make it work for me?
2009-05-09: Tania said:
... another thing, my buttons are inside movie clips...
2009-05-22: nonaim said:
This is Great Bill! Wondering if you have a AS3 version of this?
2009-05-22: Bill Trikojus said:
Not at this stage unfortunately.
2009-12-06: Chrinos said:
wow, thank you sooooo much for this. Just saved me one big headache, lol
2010-02-17: Flo said:
I am using a larger stage and need the code to change the x & y location. I also need to know where to place that code. Also how do you make the content.swf appear behind layers that are in the master .fla project that is calling on the content.swf files. Thanks so much for all your help!
2010-02-20: Flo said:
I have the same question as Tania. My buttons are in movie clips. _root. doesn't seem to work in the action script.
2010-02-23: Bill Trikojus said:
If your buttons are in a movieclip you will need to update the code to include the movieclip instance name.
eg
_root.container_mc.but1
2010-02-24: Flo said:
That worked! Thanks so much. I was missing the .container_mc part! Fantastic!
2010-04-21: noah said:
this is great guys,but how do i make the gradientfill of a button change gradually onrollover and revert onrollout. p'se help.
2010-07-24: harry said:
Hi,
thanks a lot for this tutorial.
Am having some problems though. Am using one of your '2 extra source files'- the 'animate' one (the 'more solid structure that will not jump').
The files work fine on the hard disk, but when uploaded on a server, while they work well in IE, they do not work in Firefox, Safari, etc. I mean, the preloaders do not seem to work at all, the external swfs do not load fully.
Try it out, have uploded all your files on a server(no changes made), the transitions and preloaders do not work, and the external swfs also do not load fully.
Is there a fix for this?? Cause I would really like to use this tutorial, as I want to create a site with smooth transitions. Thanks a lot!
2010-08-06: Miguel said:
Hey bill this tutorial is awesome. i was just wondering if you have the code for actionscript 3.0 or flash player 10. I am having a lot of problems using your code. Thanks a lot
Post a comment
Garbage posts and SPAM will be deleted.





