?
Solved

Preloader

Posted on 2003-03-04
5
Medium Priority
?
250 Views
Last Modified: 2010-04-03
I have this code for my preloader:
stop();
myInterval = setInterval(preloader,10);
function preloader() {
    if (_framesloaded>=_totalframes) {
        play();
        clearInterval();
    }
    progressBar._xscale=(_framesloaded/_totalframes)*100;
}
Probleme: My site is devided within few scenes. With  stop() actions inside. I named my progress bar ect,,, (this script worked before on a simple movie) But now all the stop() don't work anymore. The movie plays as there is no stop() at all!? I don't know what to do anymore.
0
Comment
Question by:bluewestern
[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
  • 2
  • 2
5 Comments
 
LVL 5

Expert Comment

by:elhy
ID: 8070012
i think the mistake lies here if this is what u wrote for your preloader.

change clearInterval(); to clearInterval(myInterval);

0
 
LVL 9

Accepted Solution

by:
rexmor earned 150 total points
ID: 8070317
See to it that the preloader() function was not called after it loaded... because that function has "play()" command... There's should be a problem especially when the function was called during the enterframe. The preloader function should only called during the preload time, and put a stop on every scene when ever you want to stop.

regards,

rex
0
 

Author Comment

by:bluewestern
ID: 8075907
I thought actions were indepandant of the layer. I put my script in the same layer of the preloader and it works. Well, kind of... Only if I include my movie in an html page... Is that normal???
0
 
LVL 5

Expert Comment

by:elhy
ID: 8077274
sorry, i'm not following. are you referring to rexmor comment or mine?

if you do not mind, you can send me your fla file to take a look.

eunice@sgweb.net
0
 

Author Comment

by:bluewestern
ID: 8112450
It's ok. I solve my pb. Rexmor was right.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
Suggested Courses

770 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