Here’s the online example SWFObject with Preloader, and the zipped version preloader-swfobject.zip
During the development of a rather big flash video portal, I noticed some difficulties with setting paths during the stages of development. The application made a lot of connections to external data: XML, Flash Media Server 3.5 and made call with a Microsoft .NET backend through FluorineFX remoting.
At that point the designer came with a preloader, which made the preloader.swf receive the SWFObject flashvars. I have made a Flash application template that works for me and the company I work for. But I am very curious if there are other, more neat ways to over come this problem.
The main feature of this template structure is that the preloader checks whether it has received a value form SWFObject. Based on the result of this check two different functions can be called in the main class of the main flash file.These functions sets the path for the flash file to make it work in the flash IDE or on the server with in HTML wrapper, after these paths or parameters are set the function initializes the application. See the code below
var ldr:Loader = new Loader();
ldr.contentLoaderInfo.addEventListener(Event.INIT, initListener );
var req:URLRequest = new URLRequest( mainPath );
ldr.load( req );
function initListener( e:Event ):void
if( root.loaderInfo.parameters.swfBasePath != null )
Object( ldr.content ).setSWFObjectValues( swfParams );
Object( ldr.content ).setLocalValues( );
I really would like to discuss if this is a proper solution
The last episode of my Media Technology ( at the Leiden University ) study has begun. I will post regularly about my progress. But now the project.
As a front-end developer i am highly interested in web markup, and the idea came to me to use this markup to generate sound/ music. The ultimate goal is to make this sound/ music resemble the style and semantics of the webpage. In short a musical browser.
Is it possible to make music from websites?
Of course the term music is subjective, especially from people to people. However I will try to get some rhythm and melody out of the websites. Another interesting thing I may encounter is the difference between manmade pages and machine made pages, like feeds and stock exchange information.
The goal is to build an interesting installation which allows users to interact with websites in an uncommon way, and let them be creative. The output might be horrible sounds which will not please the human ear or the next future symphony. However I will be very pleased if my thesis will be proved, and there is music in websites to be found.