Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: Flash preloader

  1. #1
    Senior Member
    Join Date
    Aug 2003
    Location
    Melbourne, Australia
    Posts
    162
    Member #
    2563
    I have created a preloader for the first time in flash. Quite happy at the outcome. The preloader loads images in Scene One then Scene two is the movie.

    http://www.m1security.com

    My question is I want to change the preloader on http://www.kisstroyer.com. The problem is I am not sure how to create a preloader in flash that will load images into the local cache and then push the user off to the required page once caching is complete. Any able to shed light on this for me?

  2.  

  3. #2
    Senior Member dotcommakers's Avatar
    Join Date
    Oct 2003
    Posts
    527
    Member #
    3342
    Liked
    1 times
    Very easy!!


    First of all just create two scenes

    [1] Preloader - where your preloader scripts and data will be stored
    [2] main - where your main movie situated

    and please keep "preloader" scene in first and keep "main" movie second

    In first frame of preloader keep this code


    Code:
    ifFrameLoaded ("Scene 1", 42) {
    	gotoAndPlay("Scene 1", 1);
    }
    42 = change this according to your movie length

    and in second or last frame


    Code:
    gotoAndPlay("preloader", 1);
    you can keep some text like "please wait while flash is loading" in preloader scene

    let me know if you have any question there

  4. #3
    Senior Member Riat_Sila's Avatar
    Join Date
    Oct 2003
    Location
    Berkshire, UK
    Posts
    417
    Member #
    3485
    Just put the normal preloader code in and put getURL("") in instead of gotoAndPlay.

  5. #4
    Senior Member
    Join Date
    Aug 2003
    Location
    Melbourne, Australia
    Posts
    162
    Member #
    2563
    But how do I tell the flash loader to grab these external images and cache them?

    I understand why I am changing gotoAndPlay to getURL - that help me out partially. Cheers on that one!

  6. #5
    Senior Member dotcommakers's Avatar
    Join Date
    Oct 2003
    Posts
    527
    Member #
    3342
    Liked
    1 times
    no idea about get url

    Originally posted by Riat_Sila
    Just put the normal preloader code in and put getURL("") in instead of gotoAndPlay.
    i dont try it

    but what about the current movie?

    what happend if you place "geturl" instead of "gotoplay" they only preload the "stuff" by geturl what about acutal movie

    ??

  7. #6
    Senior Member
    Join Date
    Aug 2003
    Location
    Melbourne, Australia
    Posts
    162
    Member #
    2563
    I have finally come back to this issue and I am none the wise for it.

    Ultimately what I would like to know is: Can a flash preloader cache images into a browsers cache in order to make images on a site load faster? If so, how?

  8. #7
    Senior Member dotcommakers's Avatar
    Join Date
    Oct 2003
    Posts
    527
    Member #
    3342
    Liked
    1 times
    well


    preloader means it's a kind of fatcher which will load all your images/animations then will display you...

    yes you can place external images in flash


  9. #8
    Senior Member dotcommakers's Avatar
    Join Date
    Oct 2003
    Posts
    527
    Member #
    3342
    Liked
    1 times
    Oh Man


    Oh man got you now sorry for last reply

    well as i understand you want to preload all your images in catch by a flash preloader?

    well i dont know about flash but there are such a java script which place a "flash preloader" like preloading screen in page and when page loading is finished it will show you page

    is it usefull to you?

    if yes then tell me i will find such script for you




  10. #9
    Senior Member
    Join Date
    Aug 2003
    Location
    Melbourne, Australia
    Posts
    162
    Member #
    2563
    That could be the shot! Can you track it down?

  11. #10
    Senior Member dotcommakers's Avatar
    Join Date
    Oct 2003
    Posts
    527
    Member #
    3342
    Liked
    1 times
    here is what you want

    [COLOR=red]
    here is what you want....

    Code:
    <!-- THREE STEPS TO INSTALL PRELOAD PAGE:
    
      1.  Copy the coding into the HEAD of your HTML document
      2.  Add the onLoad event handler into the BODY tag
      3.  Put the last coding into the BODY of your HTML document  -->
    
    <!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->
    
    <HEAD>
    
    <SCRIPT LANGUAGE="JavaScript">
    <!-- Original:  Gilbert Davis -->
    
    <!-- This script and many more are available free online at -->
    <!-- The JavaScript Source!! http://javascript.internet.com -->
    
    <!-- Begin
    function loadImages() {
    if (document.getElementById) {  // DOM3 = IE5, NS6
    document.getElementById('hidepage').style.visibility = 'hidden';
    }
    else {
    if (document.layers) {  // Netscape 4
    document.hidepage.visibility = 'hidden';
    }
    else {  // IE 4
    document.all.hidepage.style.visibility = 'hidden';
          }
       }
    }
    //  End -->
    </script>
    </HEAD>
    
    <!-- STEP TWO: Insert the onLoad event handler into your BODY tag  -->
    
    <BODY OnLoad="loadImages()">
    
    <!-- STEP THREE: Copy this code into the BODY of your HTML document  -->
    
    <div id="hidepage" style="position: absolute; left:5px; top:5px; background-color: #FFFFCC; layer-background-color: #FFFFCC; height: 100%; width: 100%;"> 
    
    <table width=100%><tr><td>Page loading ... Please wait.</td></tr></table></div> 
    
    <!-- Script Size:  1.20 KB -->
    check it's live example /COLOR] here.

    thanks


Page 1 of 2 1 2 LastLast

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 12:44 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com