473,669 Members | 2,458 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();

addEventListene r(Event.ENTER_F RAME, preLoad)

function preLoad(event:E vent):void{
var bytestoLoad:Num ber = loaderInfo.byte sTotal;
var numberLoaded:Nu mber = loaderInfo.byte sLoaded;
if (bytestoLoad == numberLoaded){
removeEventList ener(Event.ENTE R_FRAME, preLoad)
gotoAndStop(2);
} else {
preLoader.preLo aderFill.scaleX = numberLoaded/bytestoLoad;
preLoader.bytes Percent.text = Math.floor(numb erLoaded/bytestoLoad*100 ) + "% Loaded";
}
}

_______________ _______________ _______________ _______

Can someone help?
Feb 27 '12 #1
2 2450
manusachu
1 New Member
stop();
stage.addEventL istener(Event.E NTER_FRAME, update);
function update(e:Event) :void{
var loadedBytes:Num ber=stage.loade rInfo.bytesLoad ed;
var totalBytes:Numb er=stage.loader Info.bytesTotal ;

progress_mc.sca leX=loadedBytes/totalBytes;
percent_txt.tex t= Math.floor((loa dedBytes/totalBytes)*100 )+"%";

if(loadedBytes == totalBytes){
gotoAndStop(2);
stage.removeEve ntListener(Even t.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.removeEve ntListener(Even t.ENTER_FRAME, update);
}
Aug 8 '12 #3

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

Similar topics

1
1940
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 flash installed by default now so I'm looking for some standard HTML code that will allow me to do the following: IF flash installed
3
3765
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 detect the browser and then based on the success of loading the plugin either show the Flash movie (swf file) or show a jpeg. Any help is appreciated as I have adjusted the syntax of having nested script tags within each other without any success. ...
0
1026
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 outsuide of c# but when i use it in a winform it wont display thanks.
0
1014
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 seems to me that it's busy loading something. Now if I go into the manage add-ons of the IE and disable the flash plugin, this page would be loaded just fine. I have tried to update Macromedia flash on these computers but it doesn't help. I have...
1
1474
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 would great. Thanks!
1
3344
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 but the video won't start loading or playing. Then if you click on the tab, the video will start playing and loading. If you immediately click back to another tab, the video will continue loading but will stop playing. It seems pretty clear how...
1
1593
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 adds to the website, the client cannot modify that piece of code as the .js file sits on the affiliate companies website. The problem is that the .js file sometime contains .swf advertisements, on the website im implementing a hover over script...
0
1315
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 http://www.flash-slide-show.com/flash-gallery.html#10074 and Photoshow Gold i feel they are fine ,,but do you know somethings more about this kind of software? any more suggestion? i want to know more before i decide to buy a new one with new features. ...
1
3583
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 it says " Insert a disc" The drive properties show 0kb for free space and 0kb for used space. If it helps i have Windows Vista add flash drive "LEXAR"
0
8465
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8383
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8658
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6210
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4206
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4386
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2797
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 we have to send another system
2
2032
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1788
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.