473,509 Members | 2,912 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Flash Per-loader Not show or loading

1 New Member
My per-loader is not working, in that when u load the page it just is blank and then after shows the first frame that the frame is on and then goes onto the next frame.

Look at my problem at:

Code I'm using:
__________________________________________________ _____

stop();

addEventListener(Event.ENTER_FRAME, preLoad)

function preLoad(event:Event):void{
var bytestoLoad:Number = loaderInfo.bytesTotal;
var numberLoaded:Number = loaderInfo.bytesLoaded;
if (bytestoLoad == numberLoaded){
removeEventListener(Event.ENTER_FRAME, preLoad)
gotoAndStop(2);
} else {
preLoader.preLoaderFill.scaleX = numberLoaded/bytestoLoad;
preLoader.bytesPercent.text = Math.floor(numberLoaded/bytestoLoad*100) + "% Loaded";
}
}

__________________________________________________ __

Can someone help?
Feb 27 '12 #1
2 2444
manusachu
1 New Member
stop();
stage.addEventListener(Event.ENTER_FRAME, update);
function update(e:Event):void{
var loadedBytes:Number=stage.loaderInfo.bytesLoaded;
var totalBytes:Number=stage.loaderInfo.bytesTotal;

progress_mc.scaleX=loadedBytes/totalBytes;
percent_txt.text= Math.floor((loadedBytes/totalBytes)*100)+"%";

if(loadedBytes == totalBytes){
gotoAndStop(2);
stage.removeEventListener(Event.ENTER_FRAME, update);
}


}
use this..:)
Apr 3 '12 #2
Fary4u
273 Contributor
or you can define the Scene as your target,
if(loadedBytes == totalBytes){
gotoAndStop(2, "Scene 1");
stage.removeEventListener(Event.ENTER_FRAME, update);
}
Aug 8 '12 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
1935
by: Astra | last post by:
Hi Guys Wonder if you could help. I hate sites that show a bit of swf and simply expect the user to click the ominous looking 'install flash' window. I know quite a few browsers already have...
3
3754
by: MN | last post by:
Hello all - I was hoping I could appeal to the gurus out there as I've researched this issue and can't seem to get this Flash movie to load at all. Below is my javascript code that I use to...
0
1019
by: Guy | last post by:
Using AxShockwaveFlash im having a problem loading an swf that within it loads another swf that loads another swf,the external swf doesnt get displayed. it does display when i run it directly...
0
1011
by: Sam | last post by:
Hi all, One of my web pages uses flash and for some unknown reasons, on some computers(not all), it takes a long time to load this page and virtually freeze my IE. The flash does show up, but it...
1
1460
by: Bill | last post by:
I would like to know if anyone can tell me how to make a flash slide show jump to a new url? In other words, when the slide show concludes I would like to redirect to another web page. Any help...
1
3336
by: mailpitches | last post by:
I've noticed a subtle yet cool feature in Safari and I'm wondering how they did it. If you go to YouTube and open one of the videos in a new tab (Command-click), the page will load in the new tab...
1
1588
by: redgoals | last post by:
I have a website at: http://www.bannerlinkuk.com/index.php The website allows the customer to upload affilliate banners, the affilliate code is normally a js file piece of code which the client...
0
1313
by: luckystar8 | last post by:
i am a photography lovers and there are piles of photos in my computer,i have trid some software to make my photos into flash,,some are really easy and simple,,for exaple,the wondershare...
1
3576
by: Agnija | last post by:
i have a 8GB usb flash device , and I have been using it without problems for several months. Now when I plug it in, the drive comes up in my computer as drive E as it usually does, . If I format it...
0
7234
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7136
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7412
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7069
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5652
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5060
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4730
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3216
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1570
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.