Create a Full Screen, Scalable Flash Website: Part 1
videos

Create a Full Screen, Scalable Flash Website: Part 1

Tutorial Details
  • Difficulty: Intermediate
  • Program: Flash CS3+
  • Estimated Completion Time: 45 mins
This entry is part 1 of 3 in the series Create a Full Screen, Scalable Flash Website

In this tutorial you’ll learn how to create Flash sites that intelligently fill all the available space in the viewport, moving or resizing certain assets to make the best use of the space.


Final Result Preview

Open the preview in a new window and resize the browser to see how the site scales.


Section 1: Navigation

Don’t like ads? Download the screencast.


Section 2: Header

Don’t like ads? Download the screencast.


Section 3: Main Content

Don’t like ads? Download the screencast.

Tune in again for Part 2, where we’ll be adding interactivity to our scalable website. Thanks for watching!


Other parts in this series:Create a Full Screen, Scalable Flash Website: Part 2»

Franci Zidar is ProximaDD on Activeden
Tags: Videos
Add Comment

Discussion 90 Comments

Comment Page 1 of 21 2
  1. reno says:

    Good stuff

  2. Satish says:

    Thanks…

  3. Treestar says:

    Nice stuff,

    but the problem with scalable flash websites is that if you scale is smaller and smaller with your browser screen, everything turns into a mess.

    I use SWF-Fit for all my websites.

    Very easy to use with a simple js-script.

  4. mutiu says:

    very usefull…. thanks

  5. Chris says:

    Excellent tutorials Franci. I like that you explain and demo your code as you go and not just say this is what it has to be. You give reasoning for it. Looking forward to part two.

  6. Franci says:
    Author

    Hey!

    I’m really glad you like it.

    @Treestar

    Here is the demo with swffit:

    http://proxima.si/tutspreview/

    I provided the swf without the js and html for now so it lacks the minimum width and height settings. The link I’m attaching here however includes it, so you can see swffit in action. We’ll do all that and more in the last chapter when we publish the site.

  7. Luka says:

    Hi Franci.

    Točno to sem potreboval v obliki tutoriala. :) Zakon. hvala.

    LUka

    for all english speaking i am just thrilled about this tutorial and i am thanking Franci in our native language. :)

    looking forward to part 2.

  8. Luka says:

    Great just tutorial i was looking for. Looking forward to part 2.

    Tnx Franci and this site for sharing knowledge.

    Luka from Slovenia

  9. Mohammed Adel says:

    :(

    very bad sound is very low

    and the size of the font in the actionpanel is very small

    • Staff

      Is it quiet? Sorry, I don’t know what’s causing that. I can hear it OK on my PC :S

      Hmm, try viewing it in fullscreen to see the actions panel’s font at a decent size. That better?

  10. Franci says:
    Author

    Sound should be fine, tried it on a couple of systems, no problems. As for the small font, the resolution is higher so if you have a small screen, you might have a problem, but in my experiance people working wih web have larger displays and I choose to do tutorials in higher resolution to not have problems with cluttered panels, it’s a double edged sword, I try to choose the option which is better for more people. Anyway you have the code in the fla so if you can’t solve the issue you can still load it up and see the code there.

  11. Kylio says:

    Hey Franci, nice tutorial. Be good to see this built with classes and use SWF Address for the navigation.

    Otherwise good start ;)

  12. pixelBender67 says:

    Excellent tutorial but i would really love to see this type of tutorial done with classes
    can’t wait for part two Franci ( I’m not complaining :) I thank you and all the brilliant people at
    active tuts + thanks guys and keep up the awesome work. :)

  13. Franci says:
    Author

    I would love to show you how to build a class that will do all that for you. You already have one at greensock though that does the job very well, but you do have to be a member($).

    I’ve really tried to make this tutorial as straight forward as possible for someone who doesn’t know much OOP(object oriented programming) and explaining classes along with all the programming that goes into creating a site would make it hard to keep things “digestible”.

    Do keep suggesting though, will give me an idea of what you would like to know.

  14. Shampi says:

    Wow, bright clear and straight to the point. Nice Tuts!

  15. Very nice. Good Tut more of that would be great.

  16. Chris says:

    Franci, Thanks for the Nice tut, when will part 2 & 3 be posted??? :) Can’t wait!

  17. swisseuro says:

    Love this tutorial straight to the point… easy to follow… When will part 2 & 3 come out. Btw i would like to see the same tutorial (same website but build with classes or a framework) then people can choose what they like to work with. Again great tutorial. Could be made a whole series of tutorials, i think this gives a great starting point.

  18. Miss Glasses says:

    I love you deep from my heart.

    Looking forward to part two >.<!!

  19. Miss Glasses says:

    will you be teaching us on how to make the preloader as well? i would love the learn that

  20. hugo says:

    Just a nice Tutorial ! Good explanations ! Nothing to claim.

  21. Gui says:

    Looking forward to part two >.<!!

  22. colourels says:

    Hi, I can’t open the source file in Flash CS3. Is it only for CS4 ?

  23. Painless says:

    Hi,

    very nice screencast, finally some good tutorials how te make a website in Flash, looking forward to Part 2.

    Greetz
    Painless

  24. Fahad says:

    Thank you, Franci; You Are the Best!

    Keep the good stuff coming!

    F. R. A.

  25. Andres says:

    Thank you very very much for this tutorial Franci!
    I’ve been waiting soooo long for something like this, Thank you again.

    I’m looking forward for part 2!!!

  26. feverdog says:

    the .fla wont open!! WHY?? Great tut tho’

  27. Raz says:

    I think its a great tutorial im a newbie, I cant get the file to run fully, comes up with error ‘Fonts should be embedded for any text that may be edited at runtime, other than text with the “Use Device Fonts” setting. Use the Text > Font Embedding command to embed fonts.’ any help please?

    Thanks
    Raz

  28. Chris says:

    Umm… Where are parts 2 & 3? Part 1 was posted over a week ago! Don’t leave us hanging here. :-/

  29. Franci says:
    Author

    @Raz

    I used some font’s that are not attached with the file. It’s really not an error so much as a warning, that your font’s are not available and therefor won’t be displayed at runtime(in player). But you still get some default font usually Times New Roman. Feel free to change the fonts to any you might like.

    Most likely the problem are the fonts in the navigation. So just change those to something you have and the warning will be gone. Otherwise the fonts I used can be found here.

    http://mplus-fonts.sourceforge.jp/mplus-outline-fonts/design/index-en.html#fonts

    @feverdog

    It’s CS4. I will include the CS3 version with the 2nd part which also has all the positioning in there, so that should help you.

  30. sharkfart says:

    Love the tutorial, can’t wait for part 2!

  31. Ok in my opinion Part 2 can come now (: i check this site everyday because of the Series. Nice work so far !!

  32. kamal98 says:

    WOW this is one of the best tuts on this site. When are we going to see part 2. great JOB dude.

  33. Franci says:
    Author

    Part 2 should be published sometime soon. I delayed it a bit because, after reading the comments, I wanted to add the SWFAdress and some other improvements into the site that I didn’t initially plan to do with this part.

    Anyway it’s coming soon, and hopefully, it will meet your expectations. :)

  34. nit'ras says:

    Part 2 should have been posted at least the same week as part 1. how can someone learn from this?
    learn a few things then wait weeks, and learn some more? I love this site, but timing is off at times.

    No bad words though from me. just a logical step in my eyes.

    • Ian Yates says:
      Staff

      Point taken. Sometimes scheduling doesn’t run as smoothly as we’d all like, but multi-parters should definitely follow each other pretty quickly (as is usually the case).. Part two coming tomorrow.

      • Nit'ras says:

        And loving it! i consider this tutorial mandatory for aspiring flashers!
        Heck even I learned once again a few different approaches which makes me love actionscript / flash even more.

        Nice work!

  35. Avrisar says:

    Very educative tut. Wanted to find out how it’s done for quite some time now ;)
    Keep up the gr8 job.
    Can’t w8 for part 2. Bet it’ll be equally clear and fluent
    (no pressure ;) just do it :)
    TY

  36. kinghandles says:

    hi, where is part 2? i saw him before but i cant find him now…

    thx

    • Ian Yates says:
      Staff

      It’s coming! We regretfully scrambled up the second part by missing off the initial sections. They’re currently being converted so the whole lot will be re-posted as soon as possible. Sorry and thanks for your patience :)

  37. .thana says:

    Hey thanks for the time you spent on the tutorial! However, I can only view the first part, and I cannot see the video for the rest, is there a way you can send me a link to the videos?

  38. .thana says:

    Thanks Michael! I think the problem is totally of my part, because I think China has blocked the website hosting the videos. :(

  39. SIGHT says:

    Wow,
    thanks a lot.
    watching the next part right now.

    Hope to secced full-flashing my new portfolio :)

  40. squint says:

    I love this tutorial. It is just what I have been looking for.

    I have a problem I am having trouble figuring out. I have been constructing the code myself, and when I run the for loop in the navigation actions section, I only get three buttons with a frame and names. The fourth is there, but no frame or name. When I change the for loop i<5 I get all the buttons, but of course I get a null error.

    Can you help find out what I am doing wrong?

    Thanks
    Mike

  41. Enok says:

    I have a problem )) a newbish one .. sitting on it for an hour :D
    for ( var i:Number=0 ; i<4; i++ ) {
    var navItem:navItem = new navItem;

    navContainer.addChild(NavItem);

    }

    i'm writing this .. and it tells me there is a cyntaxys error .. need to put a rightbrace .. and if not that then says that there is no such method as navItem O_o

    what am i doin wrong? O_O

    • Enok says:

      ow yeah , and also getting this ” access of undefined property onFrame” and same for NavItem O_O although i have done everything that is in tutorial .. maybe i’m too noody and just don’t know something

    • Kenric says:

      Hi Enok,

      According to the tutorial , the navitem should be capital “NavItem”

      var navItem:NavItem = new NavItem;

      NavItem movie clip have to export it.
      right click the NavItem movieclip on the library,
      choose “Linkage “,select “Export for Action Script”

      Click OK. The window appears saying that since a class ‘Shuttle’ was not found, Flash will automatically generate such a class. Click OK. And you are all set.

  42. Fingers says:

    Seriously man, these are GREAT. Relatively new to Flash and Actionscript, but you make these so easy and so simple I’ve just gone through the first series in 30mins and understood it straight off. Really good work mate,

    Cheers

  43. Fingers says:

    But one more thing, and I might be being newbie thick here, but why the two functions?

    stage.addEventListener(Event.RESIZE, onStageResize);
    addEventListener(Event.ENTER_FRAME, onFrame); ??

    Have commented out the onStageResize function and it all works still as it refreshes 30 times a second on the ENTER_FRAME function?

    If you can let me know if this is best practice or something, that would be great, as I’m happy to have both if it is.

    Cheers

  44. elrafo says:

    I am using CS5 and I can’t get the welcome_content text to flow as it does in your movie, the font is scaling, but i get a distorsion of the text (the font is actually growing wider).
    It does the same with your source file.
    Is there an option I miss, in a strange hidden property panel?
    thanks in advance

  45. Jamalio says:

    Great tutorial by the way

    Can anybody help me :)

    I’m stuck on the second VIDEO . . . I’ve done all the coding but i cant see my NavItems.

    (I’m using SC5)

    THANKS

  46. Loredana says:

    where is the second part of the tutorial ? the functionality for the buttons? please post it !!! thank you

  47. Loredana says:

    thank you once again , it is very usefull . thanks for the tutorial .

  48. Moncefux says:

    thanx a lot Mister Master Franci for this very good tuto ! very helpfull!

  49. Franci, can you drop me an email?

    pucknell@fitc dot ca

  50. Josco says:

    Hi there, as I was watching this tutorial.. I was like.. Wauw. But the problem with my current knowledge about Flash to have succes in following this tutorial is that it is.. nothing :(,’ofcourse i’ve gotten some lessons at school, but don’t me start about the quality of that :S.

    The thing is, I really want to get the this level on creating these websites. But i’m already stuck at what actionscript or whatever I need to use with my CS5 program.

    Perhaps there is a easy way to explain this to a “newb” like me or perhaps a link to a good tutorial that helps understanding your tutorial more..

    (When I want to do some coding… it says I can’t ?)

    Much friendly handshakings,

    Josco

    p.s. I’ll try to discover it myself ofcourse, but all help is appreciated!

Comment Page 1 of 21 2

Add a Comment

To add a code snippet to your comment, please wrap your code like so: <pre name="code" class="html">YOUR CODE</pre>. You can replace the class name with "js," "css," "sql," or "php." If there are any "<" or ">" within your code, please search and replace them with: &lt; and &gt; respectively.