Best Way To Preload Or Not Load Something
I have a completely flash site that has a bunch of pictures on it in a certain area of the site. I don't want those pictures to load until the user accesses that area.
What is the best way to handle that?
Should I make the pictures part a new scene with a preloader with it?
I pretty much what to know how you control what loads and what doesn't and the best way between the two.
Below is the site so you can see what I'm talking about.
Click on "Residentail and Comercial Examples"
Thanks!!!
FlashKit > Flash Help > Flash MX
Posted on: 12-03-2002, 09:32 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Load / Preload Question....
I have a main movie....
the buttons each on release load their own external .swf
now,...when the external .swf plays (we'll call it content1.swf),... in the timeline (frame action) I have the command to load another exernal .swf (underneath it actually)..is there a way I can keep the the preloader in "content1.swf" looping until that "EXTERNAL".swf is loaded?
Is there way to see if a external.swf is preloaded?...and also keep it checking for bytes loaded in the SAME timeline that the preloader is on as well?
Or can you TellTarget from a frame action?
I hope I am not confusing..lol
Maybe one of the gurus will check out my work..I will send it to ya...just dont wanna put it up yet as its not done..
-whispers-
Problem With Load And Preload
I read Flashkit tutorials about loading and preloading
but they do not work.
It means that I followed their procedure to make preloader and load
the movies,but the percent always shows 0% or 100%
I never seen percents between 0 and 100!
whats the matter?
Load.SWF Question (preload A SWF)
Hello All
I have created a presentation in Flash that is about 20 SWF files long. Each SWF file is a new section of the presentation. Right now I have a loadMovie command in the last frame of each SWF file to load the next section into a MovieClip.
The code I have used follows:
loadMovie("swf/slide10.swf", "_root.targetClip");
The problem is that each file is a fair size and I get a quick flicker to a white background between each SWF file before the next file begins playing.
My question is: Is there a way to preload the next SWF file so that it is ready (already loaded) when the last frame of the current SWF is finished playing. I would like to be able to get rid of the flicker between sections.
Can't Load Movie After Preload
Hi all,
I got problem with my preloader. As progress bar finish (100%), nothing happened (the movie not load). The movie i load about 500kb. Here is the code :
bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
_root.loadBar._width = getPercent*100;
_root.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
_root.loadMovieNum("product.swf",0);
}
many thanks
Preload A Load Movie
Hello,
Basically I am creating a small image gallery which allows the user to flick through images.
The images i have are orientated in different ways, some are landscape and some are portrait. Some are larger or smaller than others as well. Because of the differences in the size and layout i am wanting to be able to handle each size differently, depending on its "_height" and "_width" properties.
At the moment when i detect the height or width properties of the image_mc movieclip using either:
trace(image_mc._height);
or
trace(image_mc._width);
I am not getting any properties for the first image and when the second image loads the properties from the first image are fed back to me.
I understand that the properties are probably not going to be available as the code moves on quicker than the image loads.
What i am wondering is, is there a way of preloading an image into a movie clip using the loadMovie function and then making the code hang up until the image has loaded into the movie clip which i have named "image_mc"? so that i can get the height and width properties, so i can position and display the currently loaded image correctly.
If this cannot be done with loadMovie, would it be possible for you to suggest a better alternative for me please?
There is only one thing i need to keep. the images must be loaded from an external file.
Thanks, i have attached my current code, its very basic but it might help you understand what i have tried to explain.
thank you and any help will be greatly appreciated
thank you
Lee
PS. I am using AS2.0
Attach Code
var image:Number = 1;
loadImage();
function loadImage() {
image_mc.loadMovie("images/"+image+".jpg");
}
right_btn.onRelease = function() {
image++;
loadImage();
}
left_btn.onRelease = function() {
image--;
loadImage();
}
Edited: 06/25/2007 at 04:02:36 AM by leej_w
Top Load Or Preload Swf Files
Hi - I have another AS2 question as Im not very good and can't seem to get it cracked. I have a flash site (main.swf) that has 2 stage intro's (intro.swf & enter.swf), because of the file sizes I need to preload or topload them as the previous one plays. eg. after intro.swf has loaded and starts playing I need enter.swf to load and pause until intro.swf has played out and when enter.swf is playing I need main.swf to load - so to achieve an almost seamless animation through the intros to the main site but still keeping the quality of the animations (large file size 3d animations).
Is this possible - I've had a look at some samples on flashkit.com but none seem to have the desired effect.
Thanx in advance for any input.
Cheers
D
Load External .swf's With Preload Bar
Hey everyone here,
I got a question... can someone help me with preloading external .swf's into my movie.
here is my setup.
I have a MC on _root called holder, which was created using
_root.createEmptyMovieClip("holder",10);
in which everything is loaded into and it all works great, but i want to know how to preload the content... you get what i am saying? And i want to have a progress bar that shows how much has loaded and to dissapear once the movie is loaded and go to the nextframe.
I am really sorry if that sounds really specific, All i really want is a regular preloader to load external swfs. any Ideas???????
Thanks in advance, Nugget.
Preload Images Load With Loadmovie
I have a loader where I load an image. Because it's a large image (filesize) I want to indicate to the user the percentage of loaded bytes. I use the following code but is doesnt work. any suggestions ??
tnx
code at frame 1
================================================
loader.loadMovieNum('soul.jpg',0)
================================================
code of preloaderMC at frame 2
================================================
onClipEvent (load) {
total = loader.loader.getBytesTotal() + " bytes";
}
onClipEvent (enterFrame) {
percent = parseInt(loader.getBytesLoaded()/loader.getBytesTotal()*100)+"%";
bar._xscale=parseInt(loader.getBytesLoaded()/loader.getBytesTotal()*100)
if (percent == "100%") {
_parent.gotoAndPlay(_currentframe+1);
}
}
Load Multiple Movies In Preload
Hey guys (and gals), this is my first post and i was wondering if anyone could help me. i've got a website that loads several swf files into new windows (it actually loads the html files in specifically sized windows with javascript, but that's not really important.) My question is, can i load all of these swfs at the begining of my movie (where the preloader is) instead of having a separate preloader for each one?Many thanks for all your help.
Preload Multiple Load-movie's
Hey, question...
I've got a main movie which loads about 5 movies with a load movie command. Is it possible to create a preloader for this main movie that will make the other movies load when they are fully preloaded?
Can anyone help me?
Thanks,
WWAAZZAA
Preload Multiple Load-movie's
Hey, question...
I've got a main movie which loads about 5 movies with a load movie command. Is it possible to create a preloader for this main movie that will make the other movies load when they are fully preloaded?
Can anyone help me?
Thanks,
WWAAZZAA
Another Load (preload) Externam .swf Problem
Dear all,
I'm sure i have came across similar issues in this forum before, but now don't seem to find them in threads.
Anyhow, please post any suggestions to the following problem:
i have a main swf and a MC(that holds external swf) inside another animated MC. Loads fine,but when i try to use animated preloader (preloader script assigned to MC which hosts extermal swf) the playhead gets stuck at the "opening" labled frame and does not advance no matter what i try.
Is anyone arware of standards when preloading swf's two levels down from root?
Thank you.
Xml Photo Album Load/preload
I am using a loyalty free xml photo album. I couldn't load it into my swf using external container movie clip. I have such little knowledge on action script =( Instead I put it in a html file with dreamweaver and everything seems to work out fine. But it either takes a lot of time to load (approximately 6 MB of images total) or it doesn't load at all.
Here is the link to it
Xml Photo Album
If the loading is ok, does anyone know if it is possible to add a percentage loader on the file? (I have the .fla file)
thanks in advance
How To Preload And Then Wait To Load The Movie
I'm looking for a way to have a preloader with progress bar, and then once it gets to 100%, play a little in between movie and then load the movie that was preloaded. The problem is that the final movie has to load all over again like it's not in the cache. Is there any way to keep it in the background and call it up in that 3rd frame?
Thanks,
Brandon
Which Is Faster Overall? Preload Or Dynamic Load?
I'm having a discussion with a fellow flasher about this and i'd welcome other's opinions.
Lets say you have a movie that is about 15 seconds long, with one HOG of a jpeg that comes in at about 4.5 seconds. Would I be better off halting the movie just prior to the file being downloaded, at the expense of that file being ~87k in addition to the 27k movie...or should I preload the entire thing, and then with Flash's internal compression the total file size = 79k
IMO, 79k and smooth play is better than 114k and possible choppy playback?
Preload Multiple Movies Using One Load Bar?
Hi -
This is for Flash 5.
I was wondering if anyone knew how or if it is possible to load multiple swf files into one main movie and only use one percentage/load bar graphic to show the overall loading of all 30 movies?
Basically, I need to preload all 30 of my swf files in one big movie before the presentation begins because the client does not want to see loading screens before every individual page. I'd like there to be one loading bar that shows the progress of the loading of all of the movies.
I know how to load external swfs so they each have their own preload bars but I don't want to do this. I'd like there to just be one load bar.
Even if anyone knows a tutorial for this scenario they can point me to would be great!
Thanks in advance!
-daring.
Preload Multiple Swfs With One Load Bar?
Hi -
This is for Flash 5.
I was wondering if anyone knew how or if it is possible to load multiple swf files into one main movie and only use one percentage/load bar graphic to show the overall loading of all 30 movies?
Basically, I need to preload all 30 of my swf files in one big movie before the presentation begins because the client does not want to see loading screens before every individual page. I'd like there to be one loading bar that shows the progress of the loading of all of the movies.
I know how to load external swfs so they each have their own preload bars but I don't want to do this. I'd like there to just be one load bar.
Even if anyone knows a tutorial for this scenario they can point me to would be great!
Thanks in advance!
-daring.
Preload Multiple Swfs With One Load Bar?
Hi -
This is for Flash 5.
I was wondering if anyone knew how or if it is possible to load multiple swf files into one main movie and only use one percentage/load bar graphic to show the overall loading of all 30 movies?
Basically, I need to preload all 30 of my swf files in one big movie before the presentation begins because the client does not want to see loading screens before every individual page. I'd like there to be one loading bar that shows the progress of the loading of all of the movies.
I know how to load external swfs so they each have their own preload bars but I don't want to do this. I'd like there to just be one load bar.
Even if anyone knows a tutorial for this scenario they can point me to would be great!
Thanks in advance!
-daring.
3d Carousel Load Externall SWF Preload
Hi I got a copy of 3d Carousel that when you click the icons it loads a swf in to an empty movieclip but I can not for the life of me fidure out how to link the progress bar component to link to the empty_mc so that when you click and I con it shows the status of the external SWF tahts loading in, every icon loads a different SWF, so I want the preloader to work on anmything that is loaded in to the empty_mc HELP HELP
Load Preload Include Baked Beans...?
so i have a home.swf that has a simple loop script that loads image1.swf, image2,swf in sequential order. how do i create a preloader.swf that attaches itself to those swf files. so image1.swf would have some sort of include .. actually i think i just answered half my question. i could use _root.loadmovie("preloader.swf", 2); on the image swfs, but then how does the preloader know what swf to load? madness?
HELP Preloader Doesn't Preload Mc's That Will Load Music,AS Etc..
i have about 10 mcs in the stage that will load music in volume0 cause i'm gonna start them later..
my preloader used to work well before i add those mcs and some other stuff that will load in stage (swfs etc)
now i can see the preloader just in 99% and then the movie starts!
i tried a lot of preloaders with no luck ,the same thing happens
i'm sure that is because of the mcs with the music and the AS that calls swfs to load on the stage
so the preloader doesn't see a lot of stuff in the main movie timeline (where the preloader goes) and get confused...
what to do??
it was a well made preloader with mask but right now i don;t care much ,i need something to preload the 600kb content..the visitor will see just a blank movie (as it loads) and will go
i had a tricky program in the past (swf lock&load) that does external preloaders
it worked,preloaded the main movie BUT ALL the sounds that supposed to load in mcs disappeared
so i'm sure that the problem is there..
what should i do?
[F8] Creating Preload Type Load Up With Variable
Hello kind people of Flashkit,
I modified code from a circular preloader for graphs on my site (sorta like a tachometer). When the swf loads I push a variable to it and the needle on the tach goes to the corresponding number out of 100. Code:
x = myVar;
y = 100;
w = Math.ceil((x/y)*247)-132;
radian = Math.PI/2*(w);
stop();
I'm wondering how to get this to spin up, that is start the needle at zero and play through myVar. TIA, I'm somewhat lost on this one.
Please Help MeHow To Load A Swf File Into An Empty MC And Preload It?
Hi!
I got this code here at Kirupa.com and I use it to load the main page when a user first enters my web site.What if I wanted to use a preloader to preload each external swf File?How would I do it?How would I load a swf file into another empty movie clip?
can I make a class with this preload code so I can use it for any swf file or main movie?How?
The Code:
Code:
var request:URLRequest = new URLRequest("content.swf");
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loadProgress);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);
function loadProgress(event:ProgressEvent):void {
var percentLoaded:Number = event.bytesLoaded/event.bytesTotal;
percentLoaded = Math.round(percentLoaded * 100);
trace("Loading: "+percentLoaded+"%");
}
function loadComplete(event:Event):void {
trace("Complete");
}
loader.load(request);
addChild(loader);
ODD Q: How To Make A Preload Load SLOWER On Fast Connections? HELP
Hey everyone - I just searched through 16 pages here of preload questions. I'm FINE with preloading - it's great!
My odd request is:
I have an animation of a bar filling up from 1% to 100% based on the bytes loaded of an externally loading swf into a movie clip on the main movie
This looks GREAT on slow connection speeds - however on fast connections or when the swf is cached you don't see the progress bar animate at ALL! It just shoots straight to 100%
HOW do I SLOW THIS DOWN???
I want it to always animate - but be slightly faster on faster connections however still retain a true 'preloader' status by actually preloading the swf files.
So far - NO ONE I've asked - e-mailed - or looked at on these boards can answer this.
Can YOU???
I'd LOVE YA forever!!
Thanks!
// jayse
PS - here's and example of it tweened - I'd like it to load like this on fast connections - and then be a real preloader on slower connections:
http://www.cytekstudios.com/clients/saloneraji/
PreLoad Wont Load 'til Half Way Loaded... [errr.?]
I've read few of your forums regarding "preloading", but still I"m still confused. I had the same problem that JRSly had in one forum http://flashkit.com/board/showthread...hlight=preload -- It shows a white screen for few seconds before it starts showing the preload bar. I'm not a master of scripting, obviously... and I've went thru so many forums and Q&As here, but I'm still stuck. Help, please.
Here's my flash source that I uploaded, if you can please show me what I did wrong here. I appreciate ANY advice. Thank you!
www.dementress.com/home.fla
Mira
Load XML And Populate Array Before Preload Finishes - Not Working
During the preload of a file I want the XML to be loaded and various elements put into an array before moving on.
I have my standard preload code with additional checks to see if _global.XMLloaded and _global.ARRAYloaded are set to true before ending preload.
I start by initialising both of these to false.
I then stop(); and have my XML start loading and reading into the array.
In the my_xml.onLoad function I check to see it's the last xml file being loaded and if so set _global.XMLloaded to true at the end of the function.
In the function that's outputting the data into the array I have:
for (var i=0; i<pages.length; i++) {
//Code to output to array here
if( i == pages.length - 1)){
trace("ArrayLoaded");
_global.ARRAYloaded = true;
}
}
I hope this paints some kind of picture of what I'm trying to do. Basically it's not working and the traces are coming out but the swf is carrying on past the preloader before the entire array is loaded. I don't know much about asynchonicity so maybe it's something to do with this?
Any advice on this or how I can get round this?
Simple Preload/streaming Problem On Load Movie
Okay I have a simple structure
Level 0 frame which load content ontop of it, say Level 5, now the intro that loads into Level 5 is a simple frame by frame animation sequence, that contains sound set to stream (ie footsteps which wont sync on any other setting), now when I test the movie, all of the frames, barring the first 3 are below the red threshold for 56k modem, however when I test it with SIMULATE DOWNLOAD, the movie stops playing basically until the whole movie is loaded (ie green line extends full way!) then it plays.
Now if I wanted it to wait until it had fully loaded to play I would of been ecstatic at this preload that somehow worked its way in automatically.
What I want is the good old fashioned play frame by frame "streaming" that will stop on a frame if the next frame isn't loaded, but wont wait til the whole movie is loaded before proceeding!!!
Any idea, it's been so long since I've done timeline based things, I'm clueless.
Regards
Preload Movie In Percentage Preloader With Load Bar Tutorial?
I was reading this tutorial on kirupa and got it to work fine. I am now trying to switch it so instead of using the gotoAndPlay(); it will load a external swf file I have. I switched the gotoAndPlay() with _root.loadMovie("blah.swf"); and it's like the preloader doesn't work. It will do the loadbar fine then it will stop for like 2 minutes then resume with the loaded movie. Is there a way to fix this?
Preload Movie In Percentage Preloader With Load Bar Tutorial?
I was reading this tutorial on kirupa and got it to work fine. I am now trying to switch it so instead of using the gotoAndPlay(); it will load a external swf file I have. I switched the gotoAndPlay() with _root.loadMovie("blah.swf"); and it's like the preloader doesn't work. It will do the loadbar fine then it will stop for like 2 minutes then resume with the loaded movie. Is there a way to fix this?
Preload Multiple Swfs To Avoid Dead/load Time
Hello,
I have been searching for this topic and found many others asking the same question. The only thing is that no one has replied.
I have three swfs that I am loading dynamically. There are three because of the file sizes(they all have lengthy audio). The sizes are about 400k each. They load okay, but there is a blink as the frame goes to the next swf. If I have it already loaded into memory will that make the blink go away? I am using loadMovieNum(); on the first frame of my main movie and you can hear all three start to play. Is there a way to load but not use yet? Not sure if I should be using something totally different than loadMovieNum(); It would be ideal if while the first is playing the second is loading and then when the second is playing the third is loading.
Any thoughts would be helpful.
Thanks in advance.
Preload Random Images In Main Movie Every 10 Seconds After Load Complete
Hi there,
I am working on a flash web site and I have a hald decent code for it but there are some bugs i cant figure out.
www.fadlighting.com/test
The following is the concept:
Load a random image from the folder on the server. Build preloader that showes size of image and percent remaining to load image. Wait 10 seconds and load new random image.
So far I was able to do so with the expert help of the Bible for Flash.
The following is the code i scrached together, This portion is at frame 1 of main time line
function loadFile(){
images = 13;
directory = "http://www.fadlighting.com/test/random/image_";
image = directory add Math.ceil(Math.random()*images) add ".jpg"
intro_holder.loadMovie(image);
var loadObj = intro_holder;
var initObject = {
_x: intro_holder._x +590 ,
_y: intro_holder._y +240 ,
target: loadObj,
loadExit: null
};
_root.attachMovie("loader","loader",2, initObject);
updateAfterEvent();
setInterval(loadFile, 10000);
}
loadFile();
// setInterval(loadFile, 10000);
// intro_holder.unloadMovie();
// updateAfterEvent();
the following code is in a Movie Clip called intro_holder in the library on frame 1 of its timeline
function checkLoad(obj) {
var lBytes = target.getBytesLoaded();
var tBytes = target.getBytesTotal();
var percentLoaded = Math.floor((lBytes/tBytes)*100);
bar._xscale = percentLoaded;
percent.text = Math.floor(percentLoaded)+"% of "+Math.floor(tBytes/1024)+"KB loaded.";
if (lBytes>=tBytes && tBytes>0) {
if (count>=12) {
clearInterval(checkProgress);
_parent[loadExit]();
obj.removeMovieClip();
} else {
count++;
}
}
updateAfterEvent();
}
checkProgress = setInterval(checkLoad, 100, this);
stop();
the code works but it does not wait for the image to be loaded before starting countdown for 10 seconds... and in between loads something is off... uhmmmm I can email fla if interested to long to post.
Thanks!!!
Preload Random Images In Main Movie Every 10 Seconds After Load Complete
Hi there,
I am working on a flash web site and I have a half decent code for it but there are some bugs i cant figure out.
www.fadlighting.com/test
The following is the concept:
Load a random image from the folder on the server. Build preloader that showes size of image and percent remaining to load image. Wait 10 seconds and load new random image.
So far I was able to do so with the expert help of the Bible for Flash.
The following is the code i scrached together, This portion is at frame 1 of main time line
function loadFile() {
images = 13;
directory = "http://www.fadlighting.com/test/random/image_";
image = directory add Math.ceil(Math.random()*images) add ".jpg"
intro_holder.loadMovie(image);
var loadObj = intro_holder;
var initObject = {
_x: intro_holder._x +590 ,
_y: intro_holder._y +240 ,
target: loadObj,
loadExit: null
};
_root.attachMovie("loader","loader",2, initObject);
updateAfterEvent();
setInterval(loadFile, 10000);
}
loadFile();
// setInterval(loadFile, 10000);
// intro_holder.unloadMovie();
// updateAfterEvent();
the following code is in a Movie Clip called intro_holder in the library on frame 1 of its timeline
function checkLoad(obj) {
var lBytes = target.getBytesLoaded();
var tBytes = target.getBytesTotal();
var percentLoaded = Math.floor((lBytes/tBytes)*100);
bar._xscale = percentLoaded;
percent.text = Math.floor(percentLoaded)+"% of "+Math.floor(tBytes/1024)+"KB loaded.";
if (lBytes>=tBytes && tBytes>0) {
if (count>=12) {
clearInterval(checkProgress);
_parent[loadExit]();
obj.removeMovieClip();
} else {
count++;
}
}
updateAfterEvent();
}
checkProgress = setInterval(checkLoad, 100, this);
stop();
the code works but it does not wait for the image to be loaded before starting countdown for 10 seconds... and in between loads something is off... uhmmmm I can email fla if interested to long to post.
Thanks!!!
__________________
Anthony Palermo
aderium@bellsouth.net
http://www.aderium.com
Preloader Ignores Preload "load Movie" Action With More Than Swf.files Being Loaded?
Why does the "preloader" ignores preload "load movie" action with more than one swf.files being loaded?
I have a basic preloader (in frame one)
ifFrameLoaded ("main", 120) {
gotoAndPlay ("main", 1);
}
(in frame 10)
gotoAndPlay(1)
and the main scene is (120) frames.
In the main scene, I placed a "call" action in the a keyframe to to my scripts MC label with a load action:
loadMovie ("lb.swf", lb);
loadMovie ("rb.swf", rb);
loadMovie ("tls.swf", tls);
loadMovie ("rc.swf", rc);
loadMovie ("tb.swf", tb);
When I test movie with streaming, proloader is not loading the movie. Why? But plays right ok.
Help?
Preload Madness - Preload Movies Clip In A Movie?
hey people... a brought up this subject here a while back but it didn't really go anywhere... now that this sections seems to be a bit more lively perhaps some of you flashers can help me out... I am going to break this down very simple... I haven’t even storyboarded this so this is an extremely rough draft of the idea
I am building a photo gallery
this gallery has eight images which range from 30k-75k (roughly) so I don't want the user to wait for a full load of 240k-600k
I want to first load the thumbnails for the images... and then begin to preload the first image directly after that... then display it
and then from that point when the user clicks a thumbnail the corresponding full image will preload and then display
basicially this is about preloading a movieclip in a movie... I jsut can't wrap my head this... so I will ask for help before I get too deep.... any input on the basics of this idea would be appreciated
thanx!
How To Preload Movie Which Is Loading Through The Load Movie Action?
I want to preload main movie and the movie, which is loaded later through the load movie action, with the same preloader. The movie which is loading through the load movie action is level 1.
What changes must I aply to the code of the preloader, to do this task right? Here the code of the preloader:
btload = _root.getBytesLoaded();
totbt = _root.getBytesTotal();
sclbar = btload*100/totbt;
sclbar = Math.round(sclbar);
setProperty (_root.orangebar, _xscale, sclbar);
barwid = getProperty(_root.orangebar, _width)
barwid = barwid + getProperty(_root.orangebar, _x)
setProperty (_root.ldper, _x, barwid);
//setProperty (this.ldbar, _xscale, sclbar);
//trace (sclbar);
// trace(bytloaded);
if (btload>=totbt) {
gotoAndPlay ("slide panel", 1);
// trace ("loading complete");
} else {
gotoAndPlay (1);
}
Hope you help!!!
Selectively Preload, Preload Rest While Playing
Hello,
I have updated a pre-bought flash template for a photographer. Long story short, the file is now 4M's -mostly from images- and he wants it to load faster. Right now it is all in one swf, no load movies. So the large jpg's are embedded. (I could make them all movies and load them as needed, but am trying to avoid that.)
I would like to know if it is possible to selectively preload. For instance load everything except the large images mc. This way the movie would play its long intro and the viewer would have to go to the thumbnail gallery before getting to the large images gallery. Meanwhile the large images mc could load in the background?
Any thoughts?
The site is here:
www.crphotography.com
Any help is greatly appreciated.
Preload, Finish Preload Anim, And Then Play
Hello!
I have a preloader with a mc that plays while it loads. I want the movie to preload the whole show, then finish playing the section of animation that it is in, and then play the main movie.
For example:
A ball goes from the right corner to the left (section 1) and then reverses back to the right (section 2). While the show loads the ball just goes back and forth. But once loaded, I want the ball mc to finish going to either corner and then _root.gotoAndPlay(5);
I am thinking of something like this (try not to giggle at me):
if (loaded == total) {
_root.ball_mc.gotoAndPlay(until the next frame label);
then
_root.gotoAndPlay(5);
}
This is my preloader code which works great but cuts of my ball mc abruptly:
onClipEvent (load) {
total = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = int(loaded/total*100);
text = percent+"%";
gotoAndStop(percent);
if (loaded == total) {
_root.gotoAndPlay(5);
}
}
Thanks so much!
Preload Code Help - Holding Content During Preload
First off, the current code works fine in terms of function but I want to see if someone has a code fix for me. When the preloader starts, I want the current image to "hold" inplace instead of being unloaded from the "container" MC. I want the bar to load, covering up the current image and then when the preload is complete, load the next image in and display it. Does anyone have an idea on how I might rearrange or change the code? I know I have seen this same technique on several web pages, I just havn't been able to figure out how to execute it.
click on btn1 or btn2 to load an image.
Here's the current SWF
http://josephryannasipak.com/test.html
Here's the code:
stop();
bar._visible = false;
my_mc = new MovieClipLoader();
preload = new Object();
my_mc.addListener(preload);
preload.onLoadStart = function(targetMC) {
trace("started loading "+targetMC);
container._visible = false;
bar._visible = true;
}
preload.onLoadProgress = function(targetMC, lBytes, tBytes) {
bar._width = (lBytes/tBytes)*550;
pText.text = "% "+Math.round((lBytes/tBytes)*100);
};
preload.onLoadComplete = function(targetMC) {
container._visible = true;
bar._visible = false;
trace(targetMC+" finished");
};
my_mc.loadClip("sunset.jpg", "container");
btn1.onPress = function () {
my_mc.loadClip("bluest.jpg", "container");
}
btn2.onPress = function () {
my_mc.loadClip("church.jpg", "container");
}
and the FLA file:
http://josephryannasipak.com/test.fla
Preload Scene DOESN'T PRELOAD
ok, so i have this file, full of images, it's huge. i have a preload scene, the actionscript is as follows:
setProperty ("loadBar", _xscale, "((_root.getBytesLoaded() /_root.getBytesTotal() )*100)");
ifFrameLoaded ("Scene 1", "End") {
gotoAndPlay ("Scene 1", "Start");
}
so basically, it SHOULD increase the width of the preload bar as the movies progressively loads, and it SHOULN'T start playing the main scene(Scene1)until the whole scene is finished loading.
It doesn't do this!
i haven't done much actionscripting b4, so any help would be appreciated.
you can see the extremely CRAP movie at: http://www.angelfire.com/ca/adamstuff/paragon3.html
Preload Several Swfs With One Preload.swf
how can i preload several swfs with one preload swf?
i just have a main swf and some loadmovie swfs which are loaded in the main swf and i dont want to preload them with scenes.
An Effect Without Preload & With Preload
I created a simple rotating efect:
1) without preload:
a) result: http://www.freewebtown.com/ihtus/fla...er_cursor.html
b) source: http://www.freewebtown.com/ihtus/fla...ter_cursor.fla
c)square.onEnterFrame=function(){
square._rotation=square._rotation+0.2;
_root.square._x = _root._xmouse;
_root.square._y = _root._ymouse;
_root.txt._x = _root._xmouse+2;
_root.txt._y = _root._ymouse-10;
}
2) with preload:
a) result: http://www.freewebtown.com/ihtus/fla...h_preload.html
b) source: http://www.freewebtown.com/ihtus/fla...th_preload.fla
There is a difference of the quality, for the case with preload I only added some layers and code for preload efect, and the quality of the rotating object becomes lower... , the question is: how to create preload efect without making the quality of the rotation lower?
Thanks!
Preload (PAUSE) And Then Preload Some More
Hey Guys,
I am working on a pretty big project and I am trying to work out a way of having some of the movie load then stopping (to allow other things on the page to load) then starting again.
It will have 4 movies (3 external) and what I want to do is load the first one normal then wait like 2 seconds and load the second one.. etc etc
I just cant think of a way to do this?
Any help?
Cheers guys
Preload Help
Hello. I have just started on flash (Newbie:-)
and i want to know how i preload..
How do i do this????
Preload Bar...help?
I just need to make a simple little progress bar for my preloader. Can someone tell me how to do this or send me a link to a good tutorial for a progress bar in Flash 4? I've got my preloader already set up, but I just need to add a progress bar so that people can tell the site is not stuck. You can check ou what I've got already at http://www.hholzhauer.com
Thanks!
Preload Help
i'm still very confuse about the preload on my movie, i made my movie in flash 5 with only one layer, but the question is how do you put the preload in the movies, or is it stand alone, please help with this, of how to do so, just plain instruction 1,2,3.
|