473,800 Members | 2,414 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How can I add a text preloader to this code?

4 New Member
Hi

I've been working on a site where swf's are loaded into main movie with transitions between the sections. I have the following code on the mcContainer...

Expand|Select|Wrap|Line Numbers
  1. onClipEvent (enterFrame) {
  2. if (!loaded && this._url != _root._url) {
  3. if (this.getBytesLoaded() == this.getBytesTotal()) {
  4. loaded = true;
  5. _root.transition.gotoAndPlay("opening");
  6. }
  7. }
  8. }
  9.  
How can I add a text percentage preloader into this code?

Any help will be greatly received

Thanks
Wayne
Apr 1 '07 #1
6 2425
Motoma
3,237 Recognized Expert Specialist
After a quick Google I came up with this link.
Apr 2 '07 #2
papalazarou78
4 New Member
Thanks for the reply. I'm still quite new to AS, and I have done a few sites with preloaders along the lines of the one in the link you supplied. But for this site I'm doing, I need something that will work with the existing code for loading the swf files, and I can't seem to add in code from other pre-loaders without either getting errors or effecting the loading of the swfs. If it helps, I have the files uploaded here;

www.fullfatdesi gns.co.uk/files2.zip
Apr 3 '07 #3
Motoma
3,237 Recognized Expert Specialist
Thanks for the reply. I'm still quite new to AS, and I have done a few sites with preloaders along the lines of the one in the link you supplied. But for this site I'm doing, I need something that will work with the existing code for loading the swf files, and I can't seem to add in code from other pre-loaders without either getting errors or effecting the loading of the swfs. If it helps, I have the files uploaded here;

www.fullfatdesi gns.co.uk/files2.zip
What errors do you get?
Apr 4 '07 #4
papalazarou78
4 New Member
The errors are from copying and pasting lines of text from another preloader into the wrong place. I don't remember the exact errors, but when I try to correct them (by trying to either add or take away ( or } ) I end up with more errors. I am still a beginner to AS, and usually work by using code from tutorials or forums and trying to piece them together, which has got me so-far, but I think I need to learn the basics of AS, so that things like this don't throw me. Think I will buy one of those 'learn actionscript in 24hrs' book :)

Thanks
Wayne
Apr 4 '07 #5
ravikumarz
1 New Member
can any one give me the tips to preload images as well as flash files. because in my website it take little bit time delay. any one give me idea
Apr 20 '07 #6
Motoma
3,237 Recognized Expert Specialist
can any one give me the tips to preload images as well as flash files. because in my website it take little bit time delay. any one give me idea
Try a Google search on "Flash Preloader Tutorial."
Apr 20 '07 #7

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

Similar topics

8
2033
by: Ross | last post by:
This page I am trying to create a preloader that hides all the other content except the hidepage div until it loads...any ideas? Or any preloaders that actually work? http://www.nssdesign.scot.nhs.uk/home/index.php
3
7954
by: abm | last post by:
Hi. I am in great need of a preloader for my Flash web site. I have looked at a lot of tutorials and examples, but I can not seem to get it to work. How do I add a preloader to my existing Flash app??? (if you look at www.abmpic.com you will see that it takes too long to load without a preloader)
2
2076
by: bedges | last post by:
okay, the scenario: i have a header image which changes randomly across all pages in the site. that works fine. i also have an image preloader within the random header picker which theoretically loads the header image before the rest of the graphical content on the page. however, what appears to be happening, judging by the status bar messages, is that the banner always loads last. here's the random header code -
1
3197
by: 031179 | last post by:
Hi I'm having lots of problems trying to apply a preloader to the following site: http://www.publishingme.com/niaomh/index.html I have tried different websites and tutorials but no luck. Presently the code stands at: if (_root.getBytesLoaded() ==_root.getBytesTotal()) {** _root.gotoAndPlay(5);
0
2014
by: Lanky | last post by:
I have noticed on sites that on a page a preloader will run and one or more flash movies will appear. Then the preloader does not reappear on subsequest revists to that page during the same browser session, as if the swf is loaded into memory and replays. Is my assumption correct and how exactly do I do this with my preloader?
2
1916
by: streammalvern | last post by:
Hi, I am having a problem with a published Flash Movie. I included a preloader and the whole file size of the .swf is only about 1MB. If I go to the movie, it pauses even before the preloader appears on the screen. I have the preloader located on frame 1 & 2 of the first scene. When I test the movie out of Flash and I view bandwidth and simulate a download, it shows that the movie is at Frame 0 for approximately 10 seconds. (I am...
3
1668
by: 1left | last post by:
Hi- I'm getting some weird flickering of objects (not the preloader elements) during the "Simulate Download" test (56k) of my Flash 8 movie. I'm on cable modem , and the preloader runs so fast at normal speed I'm not sure if it's happening then. Ever seen this before? Thx.
0
1523
by: Freelancer Deepak | last post by:
How can i include a professional preloader in my flash file. How can i use a text scroller in flash file
8
2202
donilourdu
by: donilourdu | last post by:
hi, I want to preload the image on page load using javascript by, Doni
0
9690
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
10505
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10275
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10253
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10033
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...
0
6811
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5471
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...
1
4149
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
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.