Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Actual Loader

Posted on 2000-04-30
1
Medium Priority
?
174 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 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
The goal of the tutorial is to teach the user how to how to record live broadcast.
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

705 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