Wrox Programmer Forums
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Flash (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 13th, 2004, 04:53 PM
Authorized User
 
Join Date: Nov 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default how can I?

how can i let the user see my site after he saw my flash preloader without typing in the bottom skip intro or something, i want him to go to the site after the preloader finished loading.
Is there a trick to it or a code?

 
Old November 13th, 2004, 05:09 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 249
Thanks: 0
Thanked 0 Times in 0 Posts
Default

did you use one of my preloaders? If so which one? There should be line of code in there that says
gotoAndPlay(FrameNumber) or whereever you want it to go.

Mike
 
Old November 13th, 2004, 05:15 PM
Authorized User
 
Join Date: Nov 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

No, approximetly all of them dont wrk, i tried, which one exactly do u want me to use?
Plus how can i change the size of the preloader.


Regards

 
Old November 13th, 2004, 05:42 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 249
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Can you tell me what you are using? What is happening? can you post some code and some error messages? I know for a fact the ones at
http://www.eclecticpixel.com/scripts work, I use them all the time for my generic preloaders.

Peace
Mike
 
Old November 13th, 2004, 07:32 PM
Authorized User
 
Join Date: Nov 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i just tried the preloader and it wrks, but now answer my question, and the speed is too fast, how can i slow it down a bit.

 
Old November 14th, 2004, 02:04 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 249
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You could find a slower computer?????? . What do you mean slow it down?? I don't want to sound mean, but when you ask questions please give as much detail on what you want as possible. Doesn't work and slow it down, just do not tell us anything.
 
Old November 14th, 2004, 05:30 AM
Authorized User
 
Join Date: Nov 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

it loades very fast wen i upload it on the browser, i want it to load abitt slower.

 
Old November 14th, 2004, 03:05 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 249
Thanks: 0
Thanked 0 Times in 0 Posts
Default

All a preloader does is let the user know that the flash movie is loading and how much is left to load. There is know way to slow it down it is the rate that the movie is being loaded. If you are loading it locally it will read alot faster than say somebody online with a modem. Plus how big is your movie file, once you get alot of frames it will slow down.

Peace
Mike
 
Old November 14th, 2004, 03:48 PM
Authorized User
 
Join Date: Nov 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

u dont get me, i mean wen a person opens my site, not a movie file, my site, i want a preloader to appear and wen the percentages finish loading i want it to straightly go to my main page.

 
Old November 15th, 2004, 08:57 PM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 451
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Ben Horne
Default

An easier way to develop a preloader for your Flash movie would be to do it this way:

On the first frame of your first scene, have your Actionscript code like this:



Code:
total = _root.getBytesTotal();
loaded = _root.getBytesLoaded();
percentLoaded = (loaded/total)*100;
textPercent.text = int(percentLoaded) + "% loaded";
if (percentLoaded>=100) {
    gotoAndPlay("Slideshow",1);
}
On the second frame, you need to have this bit of code:

Code:
this.gotoAndPlay(1);

I use this code all the time for my Flash movies and I will tell you that this is the easiest way there is. The textPercent.text bit is just used to display the percent loaded. Keep in mind that you need to have a dynamic text field named textPercent.

Ben Horne
-------------------------
I don't want to sound like I haven't made any mistakes. I'm confident I have.

Most likely using FireFox and concocting my next Macromedia Flash project
Snibworks Forums Moderator

Welcome to the New Age









Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.