Preloading Scenes
erm how can i make my preloader load diffrent scenes and not load the whole site
heres my script
loadedBytes = _root.getBytesLoaded();
totalBytes = _root.getBytesTotal();
if (loadedBytes<totalBytes) {
percentageOutput = int((loadedBytes/totalBytes)*100);
_root.loader._xscale = percentageOutput;
gotoAndPlay("load");
} else {
gotoAndPlay("start");
}
im gussing it would be something like this
loadedBytes = scene1/_root.getBytesLoaded();
totalBytes = scene1/_root.getBytesTotal();
if (loadedBytes<totalBytes) {
percentageOutput = int((loadedBytes/totalBytes)*100);
_root.loader._xscale = percentageOutput;
gotoAndPlay("load");
} else {
gotoAndPlay("start");
}
there is no good and evil there is only newgrounds and those too stupid to want it
or would my script only load the scene its in?
FlashKit > Flash Help > Flash ActionScript
Posted on: 08-08-2004, 09:38 AM
View Complete Forum Thread with Replies
Sponsored Links:
Preloading Scenes... Please Help
Hi, I have a movie, with 12 or so different scenes. In each scene is a loadmovie action, loading a seperate .swf file inside the content area. My question is does anyone know of a preloader that I can put on the seperate .swf's, so that it preloads it, then gets displayed in that content area? And also, can I load a seperate text file within the .swf file, thats already being loaded into another .swf file? I had the text file working in the main swf, but when I put it into the .swf file being loaded into the other one, it doesn't come up? Any help? Thanks a ton, Oscar2
View Replies !
View Related
Preloading Different Scenes
Does anybody know how to preload one scene at a time in a flash movie. I'm creating a full website in flash, but the filesize get's pretty large quick. So I would like to preload every section (scene) on demand. That is, if it's needed.
My problem is just that whenever i create a preloader for the main scene it preloads the whole movie, and that's not what I want - pls help me :-)
View Replies !
View Related
Preloading Scenes
hi guys ,
i have a real problem, c i am having 25 scenes in my movie and the first 22 scenes have text matter in it which means they each have occupied 5 frames as an average, now the last 3 scenes have occupied 200, 165, 105 respectively frames. coz they have animation in it, and the site has become very slow.
can v preload scenes?????
can nebody help me out in loading this site as fast possible.
pls help.
View Replies !
View Related
Preloading Scenes
Hi All!
I was wondering if someone could help me, I have a VERY large movie (about 900k) - (the client insists on the high res stuff). All of the different 'pages' are seperate scenes. Due to the large filesize, I would like to be able to preload a scene only when someone actually decides they want to visit that 'page'.
Any help is much appreciated,
Baphomet
View Replies !
View Related
Preloading All Scenes
Probably a stupid question:
Why does my simple preloader not preload the complete movie?
All I put in the actionscript of frame 1 of the first scene ("main")is:
ifFrameLoaded ("contact", 10) {
gotoAndPlay ("main", 2);
}
The scene "contact" is according to the swf-report the last scene that is loaded, and it has 11 frames. It seems to preload a bit but not all of the movie. Can anyone help me on this?
View Replies !
View Related
Preloading Scenes
i currently have a preloader that preloads the entire site. but i want it to load all the scenes except the "photo" scene, and then load the photo scene seperatly when you get to it, thanks in advance
View Replies !
View Related
Preloading Scenes
hey,
i want to preload each scene instead of the whole movie.
this is the code i use:
--------------------------------------
total = this.getBytesTotal();
loaded = this.getBytesLoaded();
loadBar._width = 75.5*(loaded/total);
if (loaded>=total) {
gotoAndStop("scene2", "first");
}
--------------------------------------
it shows a progress bar, which is important.
so, how can i get that code to work for each individual scene?
thanks.
View Replies !
View Related
Preloading Scenes
Please help me i am trying to make my preloader only load certain scenes not the hole movie lets say my first scene is menu i want it just to load menu then when they click on portfolio another preloader will come and load only portfolio.
View Replies !
View Related
Preloading 2 Scenes?
Hi,
I'm having some trouble preloading two scenes.
I made a working preloader (in a scene called "Preloader") for a scene called "Main". The preloader was pretty simple, basically something like
ifFrameLoaded("Main", "endOfMain")
{ goToAndPlay("Main", 1); }
Later, I decided to stick a new scene between "Preloader" and "Main", called "Sub", and I want the preloader to start playing the "Sub" scene (and then the "Main" scene at the end of "Sub") only after both the "Sub" and "Main" scenes have been loaded.
I've tried sticking in various AS stuff but nothing seems to work right. Any advice?
View Replies !
View Related
Preloading Scenes Can It Be Done?
Hi
I have been given a large flash file with many scenes which I would like to preload individually, with a percentage preloader. All of the code that other people use seems to only load a whole flash file. this is what I have used in the past when preloading individual movies into a level of a base movie:
onClipEvent (enterFrame) {
// preloader functions
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
with (_root) {
play();
}
} else {
_root.percentage = (Math.floor(100/(_root.getBytesTotal()/_root.getBytesLoaded())))+"%";
}
}
...but this only works on loading ina whole movie and not a SCENE. Can it be done?!?
many thanks
Dan Marsden
View Replies !
View Related
Preloading Scenes
I have a flash movie with about 20 scenes and would like to preloading the other scenes in the backkground while the first scene is being used!
Hows the best way to go about this, any ideas??
Cheers
Jemes
View Replies !
View Related
Preloading Scenes
i've got a fla from a designer that used several scenes each of which i need to add a preloader since i need to wait for images and stuff to load before displaying the scene, is this going to be a pain in the butt to do? i'm looking for some suggestions on the best way to approach this problem. is it possible to detect if a scenes components have finished loading?
View Replies !
View Related
Preloading Different Scenes
Hey All
A Flash Newbie here having a bit of trouble. I'm designing a site which has a large intro so I've got a preloader at the start. Once the intro finishes it goes to my "Home" scene. Now thats sweet but I've made scenes for each of the parts of my site and lets take one of them "Contact" for example. Because my contact page to takes up a bit of memory I want it to load seperatly (ie when the user clicks on the contact button". Now I put the same preloader in at the start of the "contact" scene but it all just loads up at the the start and takes ages and when I click on the contact button It has already loaded and goes straight through.
Is there a simple way to fix this problem or do I have to create a new preloader for each section?
Cheers to anyone who can take the time to help me.
Hobbonz
View Replies !
View Related
Preloading Scenes
Hello:
I am just getting started w/ Flash MX 2004 and am still trying to create my first successful preloader. I've gone through many tutorials and those seem to go OK, but I have yet to get them to work with my own files!
Specifically, I have a large movie (fla) file that has two Scenes: scene1 & scene2. Scene2 has dozens of layers and sound files interacting together; it is the movie I want to ultimately play. I thought it would be cleaner to create a scene1 where the preloader would live and have it play the scene2 when the loading is complete. I cannot seem to find/understand the coding syntax needed to reference the scene2 files. Does anyone have a tutorial that covers seperate scenes using preloaders?
Thanks in advance!
-Cactus Bob
View Replies !
View Related
Preloading SCENES ?
I was wondering if it's possible to preload a SCENE ? I mean for example we have 3 scenes... The 1st SCENE has the loading bar and stuff, and i want to Preload only SCENE2... When SCENE 2 is preloaded then ( in scene 2 ) i would start preloading SCENE 3... Is this possible ?
Or is it possible to preload only a ceretain number of frames... Like the 1st 3 frames of a movie... ?
Thanks
View Replies !
View Related
PreLoading Scenes (PRELOADING)
Hi everyone. Ive had my website running for a while now www.coriolis-effect.co.uk Its nearly done all but preloading really. I want visitors to be shown that something is happening rather then just waiting. This has caused a fair percent of people to leave the site straight away especially those with crap connections. Anyway Ive had a look around on the forum a bit for help and I can't see anything about Scenes and preloading them. Maybe there is a way to just preload so many frames? Any help appreciated Lewis
http://www.purgeme.co.uk/lewis/Corio...lis-Effect.fla
View Replies !
View Related
Preloading Single Scenes?
Having used Flash5 much and now having switched to MX, I'm perplexed with why ifFrameLoaded is now in the "deprecated" list. The problem this leaves me with is this:
I have a 7 scene movie that is fairly large, and I want to have a preloader in the first few frames every scene (actually IN the scene due to the fact that each one has to be a little different) that checks to see if ALL of that scene has been loaded yet. Hopefully, but the time someone reaches scene 3 and beyond, the file will have loaded.
With ifFrameLoaded I could do this with no problem, but have had no luck with any attempts to use _frameloaded (can a scene have an instance name, and if so, where do you enter that?) or getBytesLoaded/getBytesTotal (only checks to see if ALL 7 have been loaded, not each one.)
I have a feeling that I'm missing something crucial here, because I can't believe they would make something that USED to be so simple so durn complex now! Any help/code snippets would be GREATLY appreciated.
Hugs!
View Replies !
View Related
Preloading Seperate Scenes. Please Help
i have a movie with 4 scenes, a splash then three others.
after clicking on from the slash i would like the first scene only to load.
i know that mx doesnt like dealing with scenes and more with lables but i have no idea how to get this to work.
do i ask it to load the last lable in that scene?
id be obliged if any help was given as i have no idea how to code it.
thanks.
View Replies !
View Related
Please Help With Preloading Seperate Scenes
i have 3 seperate scenes. what scripting do i use so that the 1st scene only loads? i know mx doesnt like scenes names and much preferes labels, but the scene im want to load has loads of labels. pleeeeese help with the coding, ive been stuck on this for ages and nobodys been able to help.
thanks
View Replies !
View Related
Preloading Individual Scenes In MX
I'm new at Flash and have looked through the messages to try and solve my preloader problem, but most of them are talking about previous versions of Flash. I want to only load a scene at a time as my movie is too big to load all at once. I kinda converted the code I found hoping to make it work in MX, but it appears to be loading the whole movie still.
if (_framesloaded >= "Portfolio", 13) {
gotoAndPlay("Portfolio", 1);
}
Thanks
View Replies !
View Related
Preloading Scenes Question
Hello,
I'm rather new at flash, so bear with me...
I know I can preload a movie, but can I also preload a particular scene?
There are so many tutorials and movies concerning preloaders,can somebody point me to a real good one please.
I would like to have a bar and kb loaded in it!
View Replies !
View Related
Preloading Individual Scenes
Hello,
I have built a web site in one whole .swf. It is split into scenes and there is a preloader for each scene. This works great.
The preloader used is one that displays the percentage of the loaded file in the form of a bar.
The problem is that when pre viewing the site, it will not play untill the ENTIRE site is loaded. This means that it takes a while for the site to load.
I would like to know if it is at all possible to load each scene individually while still showing the user how much of the page is loading.
For example - loading scene 1, then when loaded playing scene 1, while the rest of the site loads.
If you get me?
Can anyone help?
View Replies !
View Related
Preloading Individual Scenes
Hey,
Could anyone help me out with my preloading issue.
Basically, Ive created a site that is pretty small in file size but when I add my animation scene, the sites loading slows right down.
I currently have a preloader to load the whole site in one go but would prefer to just preload the animation page.
www.alexdunford.com
Any help would be great.
View Replies !
View Related
Preloading Over Multiple Scenes
Hello!
I have a swf that is built with 3 scenes. The 1st scene is actually the prealoader for the movie.
Now, in the last scene i load an external picture (picture.loadMovie(...)). I want to load the picture in the first scene,as i need it allready loaded when displaying it in scene 3. to avoid the loading delay.
Can this be done?
thanks!
View Replies !
View Related
Preloading Scenes Individually
Does anyone know how to preload a scene individually? I have 12 scenes in my forthcoming flash internet catalogue and I want the movie to preload each scene as it comes. The reasons for this are....
The target audience (the motor/mechanics trade) are mostly still on dial up connections so I have to account for low bandwidths.
I am using scenes because its the easiest way to order the work. I would gladly use 12 different swf files instead and go via LoadMovie but this comes to an unsatisfactory 289k in total instead of a nice and tidy 80k I have just using scenes.
Anybody if you have a solution that'd be nice.
Ads.
View Replies !
View Related
Preloading Scenes Seperately?
I used Glenn 's great tutorial to create my preloader.
The preloader is in the first frame of all my scenes, but the problem is that it doesn't preload my scenes seperately. Instead it preloads the ENTIRE movie in the first scene. Now that I 've added pictures to my site (www.snowvibes.be) it 's quite a pain in the *** cause it takes too long to load.
Can anyone tell me how to solve this or how to preload scenes seperately? I prefer not to use multiple SWF 's but if I don't have any other choice I will.
Thx in advance.
View Replies !
View Related
Preloading Scenes Individually.
Hi everyone.
I've got a website - its a website catalogue that is coming online very shortly. I know scenes suck but it happens to suit my needs at the moment. It was either use 10 scenes totaling 82kb for the entire swf or a total of 10 swf's making a grand total byte size of over 300kb! Suffice to say I chose the 80 kb version using scenes.
Does anyone know how to preload each invidual scene?
Thank you very much for any help you can supply.
View Replies !
View Related
Help With Preloading Sound/complex Scenes
okay, here's the situation: i have a movie with 5 scenes, all containing their own unique sound file with the animation synced to the sound. i need an effecient way to preload the entire movie so that the sound and animation all stay synced together. i have literally tried about 100 different ways. i'm not very proficient with actionscript so basically i read tutorial after tutorial on preloaders. i have yet to find one that will solve this problem. someone please help!! oh yeah...there's no stopping in between scenes, the movie is supposed to play seamlessly from beginning to end. Thanks in advance to anyone that helps!
View Replies !
View Related
Multiple Movie Preloading - Behind The Scenes
I am putting together a wedding photography gallery and I want to offer little montage photo movies of each wedding for the user to view. For instance:
Sally and Tom
Joe and Cindy
Mike and Becky
Each of these I will load using LoadMovie and they will each be separate swf's loaded into one main menu interface. Since they have a lot of images each swf is about 1 - 1 and a half mb's in size, making the load time a little longer than I want.
So what I want to do is have the main menu show up and then have the swfs preloading in the background while the user is browsing. The user can be looking at "Sally and Tom's" movie while the others are loading. This way when/if they decide to go to "Joe and Cindy" next, there will be no load time at all (or at least shorter). I would like it to be where the user doesn't even know what's going on.
I am just learning actionscript but I know enough to understand when I see the code. Can anyone tell me how best to do this or if it's possible? Any tutorials on it specifically? Or other methods that are better?
Thanks
View Replies !
View Related
Sound Across Scenes & Changing Volume In Certain Scenes..
OK, this is kind of hard for me to explain but i'll try...
I want to have a continuous sound loop over various scenes, but I want the volume to increase (i.e. fade up - and i would like it to fade rather than just suddenly turn up) during one of the scenes.. and decrease (i.e. fade out) to 0 during another scene.
On top of that, I'd like the sound loop to stop altogether when they play another audio file on the movie - then the loop resume when they return to scene 1.
Anyone able to help me here - i know it's sounds complicated but I am sure someone knows how i can do this.
Any help would be much appreciated,
thanks,
Chris
View Replies !
View Related
Preloading .swf Before Preloading Main Movie
Ummm
Things are getting complicated lol
I have my main movie going ..AND I actually managed to get a pre-loader working ...
and it's all ok as long as you have adsl or cable connection - otherwise it is REALLY messy.
The main .swf uploads onto the web .. but the secondary swf have not yet loaded .. and so it is all out of synch .. if you wait a while and refresh you get it ... but argh it is horrible .....
so .. is it possible to block the preload of the main movie until it has preloaded its secondary swf's ??
I should imagine it's recoding the actions AGAIN .. can any one get me started please ..
Is this often a problem if you add swf to a main movie ???
tyyyy all
julia
View Replies !
View Related
Help Required Progress Indicator Bars. NOT PRELOADING BARS AND NOT A PRELOADING QUE
Help required ! progress indicator bars. NOT PRELOADING BARS AND NOT A PRELOADING QUESTION!
OK I have a swf called audio.swf which just contains a 15 minute streaming audio file that it just dragged along the time line.
I want to have some visual indicators in the swf, so that the user has some info of what is going on:
What I require within the swf are the following:
1.Progress Bar: How much of the movie has been played. This will obviously go up as the timeline for the swf progresses.
2.Streaming bar: Giving the user an indication of the amount of swf that has currently been downloaded.
3.Time (minutes and seconds) that the movie clip has been playing for
4.Elaped time (time remaining)
As you can see I have attached no fla, as I am sure that these 4 visual indicators are all fairly simple to code of any of you action script daddies out there.
Any help on one or all the 4 things I require would be brilliant.
If anyone could help me this would be more than appreciated.
Cheers
View Replies !
View Related
PRELOADING (dynamic Preloading?)
dear all
i hope someone could give me tips how to do this:
i have one main scene and 7 navigation-points. each of the 7 scenes are external movies which should be loaded.
but can they load in the background too, even if the user didnt select a point yet? and when he does, the progress bar would automaticly fill up as much as the movie is loaded already. and it should continue loading all the scenes in the background, while he is in one section.
i hope you know what i mean, excuse my english.
looking forward for a help asap. thanks a lot in advance!
View Replies !
View Related
Get The _x & _y Of Two Different MC In Two Different Scenes
hi guys,
i've got this problem.
I've got an MC "handpalm" in the scene 'pre'.
And a MC "automatic" in the scene 'auto'.
The MC has a complicated timeline, that creates a interaction with the user (question - answer). The MC itself can be dragged over the stage.
(it can be dropped everywhere; and be used anytime during the interaction).
At one point the movie had to jump to the next scene (this is controlled in the MC - timeline.
But the MC "auto" must be starting at the same spot where the MC "handpalm" in the first scene had been dropped.
I tried to read the _x & _y value in the last frame in the "handpalm"-timeline, and give these values to the MC "auto".
BUT IT DIDN't work !!!
I'm desperate...
Can someone help me !!!
thanx in advance
kgp
View Replies !
View Related
Scenes...
Hi
I have a button inside a movie clip within my main movie. When you press the button i want it to go to scene 2..
How do i do this?
Thanks
zerodonor
View Replies !
View Related
Using 2 Scenes 1->2->3.....
hi friends& gurus,
i hav created new flash movie in the first scene i hav used almost 10 movieclips ,i gave link to 1 by one ..in the first scene ...when i play the movie its working absolutely perfect...when i getting the problem is ...when i created
2(new)scene ...the movie is blinking and its not playing ...if i give the timeline to scene ...still its not fuctioning...plzzzz help me ...
thanks in advance
ramm
sx_m22@yahoo.com.
View Replies !
View Related
Scenes Or Swf's?
What is the most efficient way to organize flow of an entire flash site? with scenes or separate swf's? If the answer is swf's -- how do you pre-load all the different swf's?
View Replies !
View Related
Changes In All Scenes
hi.. got a prob with a button in a movie clip..
In mc1 I have a button that changes the color of a movieclip(mc2) on the main stage.
I also have the same mc2 in scene2. Right now i've managed to make mc2 in the stage to change but when i go to scene 2 mc2 is still the original color. I'd like it be that once i've changed it.. it changes in every scene.
i used this on the button:
on (release) {
_root.mc2Color = new Color("_root.mc2");
_root.mc2Color.setRGB(0x663300);
i already tried naming mc2 as a different instance name in scene 2 but it doesnt seem to work.
View Replies !
View Related
Using Scenes
How many scenes are a norm in a movie and why do I need another scene? I come from a authoring tool that uses chapters and pages. We are switching to MX!
View Replies !
View Related
Know Anything About Scenes?
thanks for having a look. Ive got a serious problem!!!!!
I am working with an mc that is the button control for the main scene. I am attempting to create an else if statement for a Button within the mc that says for eg. If on frame "topview1" then go to frame "topview3".
Here is what my code looks like for the button in the mc that controls the main scene:
on (release) {
_root.gotoAndPlay("topview2");
}
Any Help?
View Replies !
View Related
Know Anything About Scenes?
thanks for having a look. Ive got a serious problem!!!!!
I am working with an mc that is the button control for the main scene. I am attempting to create an else if statement for a Button within the mc that says for eg. If on frame "topview1" then go to frame "topview3".
Here is what my code looks like for the button in the mc that controls the main scene:
on (release) {
_root.gotoAndPlay("topview2");
}
Any Help?
View Replies !
View Related
Please Help With Scenes
ok, i have 2 scenes , preloader and site
preloader then goes to site. site has an mc called menu.
in scene site, i have 4 pages. in menu i have 4 buttons.
now testing movie the preloader works and goes to site. now when i use the menu it doesnt load the frame 1-4 of site instead it goes to the preloader scene and stops on the frame.
ive tried _root. _level1. _level0. and _parent.
can anyone help?
View Replies !
View Related
Using Scenes ?
Does anyone know if I can use the same scene in several different swfs. For example: I have a preloader in the first scene, and I wan't to put it into every external.swf to load in. Or does anyone know a better way to reuse preloaders easily? I'm learning still.
matt
View Replies !
View Related
Scenes?
New to Flash, is it a good idea to avoid the use of scenes when constructing a Flash site? I am currently reading Flash MX Saavy and they are using scenes to jump around the project, but I have been told that you should not use scenes???? Any help on this is appreciated.
What are the pros/cons of using scenes? Thanx
View Replies !
View Related
|