Solved

Actual Loader

Posted on 2000-04-30
1
171 Views
Last Modified: 2010-04-03
How to make an actual preloader showing real time loading?
0
Comment
Question by:synapsegroup
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 7

Accepted Solution

by:
ssdesign earned 100 total points
ID: 2763352
Put this script in the tag between </title> and <head>

<script language="JavaScript">
<!--

function loading()
{
 InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
 path = InternetExplorer ? parent.loader : parent.document.loader;
 
 frame = path.PercentLoaded();
 path.TGotoFrame("_flash0",frame);
}


//-->
</script>

Then before the <object> tag add this

<SCRIPT LANGUAGE=JavaScript>
<!--

var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
function loader_DoFSCommand(command, args)
 
 {
  if (command == "loader")
      {loading();}    
 }
 
 
// Hook for Internet Explorer
if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.userAgent.indexOf("Windows 9")>=0 || navigator.userAgent.indexOf("Windows NT")>=0)) {
      document.write('<SCRIPT LANGUAGE=VBScript\> \n');
      document.write('on error resume next \n');
      document.write('Sub loader_FSCommand(ByVal command, ByVal args)\n');
      document.write('  call loader_DoFSCommand(command, args)\n');
      document.write('end sub\n');
      document.write('</SCRIPT\> \n');
}
//-->
</SCRIPT>
then make relevant changes to the object tag as below:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
 codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=3,0,0,0"
 id="loader" width=100% height=100%>
<param name=movie      value="loader.swf">
<param name=quality    value="high">
<param name=bgcolor    value="#FFFFFF">
<embed src="loader.swf"
 name=loader
 swliveconnect="true"
 loop="false"
 quality="high"
 scale="exactfit"  
 type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</embed></object>

Then in the flash movie create the loader scene and add 100 rames. In the first key frame add stop action and in the last add the action to go to and play your movie.

Now create a movie clip in frame1 and inside it in the first frame add this action

FS Command ("loader", "")


test it and see it in action
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to how to record live broadcast.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question