Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Actual Loader

Posted on 2000-04-30
1
Medium Priority
?
175 Views
Last Modified: 2010-04-03
How to make an actual preloader showing real time loading?
0
Comment
Question by:synapsegroup
1 Comment
 
LVL 7

Accepted Solution

by:
ssdesign earned 400 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
Suggested Courses

971 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