First time here? First time here? Newsletter Signup Newsletter
Login | Register | 651326 Members and growing!
Search tutorials
Author: Gonzalo Alustiza

Creating the Invisible Frame

You are asking yourself, Why use an invisible frame?. The answer is: it is not mandatory but, an invisible frame allows to keep the Flash Movie(s) in a single place and avoids the need to embed movies in every single web page that needs sound. Also, the invisible frame makes it easy to control the loading process for the sounds and eliminates the case when you load a sonified web page without the sounds ready to play, which leads in the best case to your users not being able to enjoy your sound work and in the worst case your users get ugly error messages.

Keep in mind that some problems arise when you use this method, for example, you have to be careful with the target property for your pages so your frame doesn't get overwritten and, if you are linking to pages outside your web site, you have to make sure that your frame does not ‘parasite’ them.

Both minor difficulties can be easily solved with a bit of JavaScript and examination of the HTML code.

To create an invisible frame you'll use HTML code like this:

<html>

<head></head>

<frameset framespacing="0" border="false" rows="2,*" frameborder="0">

<frame name="soundtown" src="soundtown.htm" scrolling="no" target="contents"> THIS IS THE SOUND PAGE = frames[0] (see below)

<frame name="webpages" src="YourWebPage.htm" target="main" scrolling="auto"> THESE ARE THE OTHER PAGES = frames[1] (see below)

<noframes>

<body>

<p>This page uses frames, but your browser doesn't support them.</p>

</body>

</noframes>

</frameset>

<frameset>

<noframes>

<body>

<p>This page uses frames, but your browser doesn't support them.</p>

</body>

</noframes>

</frameset>

</html>

Your actual code may vary but, what I am trying to show here is that you need to create a small (invisible) frame which will load a web page you'll be creating exclusively for sound purposes and a normal frame that will hold the other pages that make up the site.

» Level Intermediate

Added: 2001-02-20
Rating: 5.83 Votes: 30
(10 being the highest)
» Author
My name is Gonzalo Alustiza and I work as a chief developer at Soundtown Argentina. Soundtown is a ten year old music production company specializing in music for advertising and TV which started to develop sonification solutions for the Internet.
» Download
Download the files used in this tutorial.
» Forums
More help? Search our boards for quick answers!

Comments

  • There are no comments yet. Be the first to comment!

  • You must have javascript enabled in order to post comments.

Leave a Comment
  • Your email address will not be published. All fields are required.
Featured Flash FLA
» Author: Inocreato
» Title: RaiseTheBlocks
» Description: Raise all the blocks to win the game
Featured Sound Loops
Image for equalize

Audio Player

» Author: TomCat Carty
» Title: The Wood
» Description: Just a little game ending or it can maybe be looped. Recorders with music box and percussion to give the feel of well, I don't know, the woods? Free to use, just credit me. thank you
Latest Font
» Author: Fábio FAFERS
» Description: I created this font for free use. Everyone can apply it in personal or business texts. Its free, but I want to be communicated in case of business use. Donations are accepted to keep the project of free fonts alive! Thank you all
Featured Sound Fx
Image for equalize

Audio Player

» Author: Davisigner
» Description: Hmm... what to say about this one? It's reminiscent of the closing notes of the opening music from the Three Stooges done in a church organ style with a closing cymbal crash. I'll give this one away gratis, but feel free to check out my free loops and potential upcoming license-mandated ones over in the respective part of Flashkit.