Preloader Issues
I'm confused!!! Do I make a separate movie for my preloader or is it a part of my main movie?
FlashKit > Flash Help > Flash Newbies
Posted on: 08-25-2002, 09:57 PM
View Complete Forum Thread with Replies
Sponsored Links:
My Preloader Has Issues
Yeeellowww,
I hope you all are doing great. Well, when i test my movie and go to show streaming, i can't see any of my preloader graphics till about 36% of the movie has loaded, i think it load the sound files first or something, what can i do to prevent this head ache.
Thanks a billion.
View Replies !
View Related
Preloader Issues
I have a preloader that, well kinda works.
What it does is it loads a background, the main SWF file, and a Background Audio file. (these are all seperate SWF files BTW)
What I want to do is launch them all at the same time. Right now I have is basic load commands so it does work, just not how I need it to. Here is what I have.
loadMovieNum ("main-back.swf", 0); <-- is the animated Background
loadMovieNum ("mainpg.swf", 1); <--is the main Flash File
loadMovieNum ("LoopAudio.swf", 2); <-- The Audio
www.mnr.ca/vidal/siteload.com is the address is you want to check it out
View Replies !
View Related
Preloader Issues
Hello all, a wee problem here.
In my portfolio I have a main flash movie of opening and closing doors. This main movie is supposed to load other flash movies (resume.swf, contact.swf, ect) under these doors.
When going from section to section, the doors close, then open on a new section. The problem is, my preloader isn't working. The doors don't wait until the swf under them is loaded, and open prematurely. You can see what I mean at
www.threeplusone.ca/scott/
Here is my code for the preloader frame one
// This loads the movie "MyResume.swf" into a movie clip called "Contentclip"
loadMovie(MyResume.swf, "ContentClip");
// This pauses (or it SHOULD) everything until MyResume.swf is fully loaded
if (ContentClip._framesloaded = 8) {
gotoAndPlay(3);
}
Here is my code for the preloader frame two
gotoAndPlay(1);
Can anyone tell me why this isn't working?
View Replies !
View Related
Preloader Issues
ok, currently I am using a random image flash header on my site.
basically just a .swf that will randomly load another swf (containing an image or flash movie). the color of my page is a dark grey, so I made the background of both swf's the same.
the problem comes when a user hits a button that will change the header, the .swf goes completely white till the new .swf is loaded in (a few seconds, but still kind of annoying). I put a preloader on the movie being loaded in. I made a new scene, and set it to play first, and then put this code in the first frame:
////////////////////////
loadedbytes=getBytesLoaded();
totalbytes=getBytesTotal();
if (loadedbytes == totalbytes) {
nextScene ();
}
///////////////
Then on frame three I had it loop back to this.
Am I doing something wrong? The flash movie shouldn't go all white when it's trying to load in the other swf should it? both backgrounds are set to the grey background of the html page... i've seen other sites with flash headers and they don't have this issue...
anyone have any ideas?
thanks in advance
-tyler
View Replies !
View Related
Preloader Issues...
My problem is that I'm starting to learn how-to use preloaders, I got the coding and everything, but my real problem is the fact that I have these pre-made flash mx movies, that don't have preloaders, and in essence, I don't know how-to move my animation ahead in the maiin timeline, so that I have sufficient room for a preloader anim & coding, etc, anyone run into this same sort of problem, or is it just me ?!?
P.S: Im currently developing swift 3d anims, which range around 15-20 frame animations, the thing is, I just need to know how move them ahead, but on the same respective layers. Any help would be appreaciated
View Replies !
View Related
Preloader Issues
hi ALL,
Basically this is my hassel...
I have created a site where the user can enter one of 2 sections of the site via the "splash page".[splash page is html, and the rest is flash]
Both sections of the site are identical [different products] and consist of a SWF file that sits on "Level 0" and the remaining SWF's are loaded and unloaded on different levels.
Generally these WSF's are about 30-40k and when running of a dail up connection stalls each time a SWF is loaded.
WHAT WOULD BE THE BEST WAY TO BUILD A PRELOADER? OR STREAM IT WHILE THE MOVIE RUNS?
I realise there are tutorials, but I don't know if they are relivant due to the SWF's running on different levels?
Thankz, hope someone can point us in the right direction
CONZ
View Replies !
View Related
Preloader Issues
two scenes, the first being the preloader
the preloader has 23 layers, the action script, bar, and percentage text..
my issue is calling the second scene to play
if (loadedbytes == totalbytes) {
nextScene ();
} else {
gotoAndPlay (1);
}
this forwards it to the next scene and stops it, you have to right click play to go ahead... if i put anything in those brackets (ie: nextScene (playthedamnmovie); it will play it, but with an error...
stating:
**Error** Scene=preloader, layer=Actions, frame=2:Line 2: Wrong number of parameters; nextScene requires exactly 0.
nextScene (playthedamnmovie);
Total ActionScript Errors: 1 Reported Errors: 1
what does exactly zero mean?
View Replies !
View Related
Serious Preloader Issues...someone Plz Help
ok sorry for the caps but thi sis getting out of hand...i have been at this for over a week now and for some reason my files STILL lag after they have been preloaded...i just don't get it...the home.swf is just a placeholder file where i loadMovies on levels (for some reason targets don't work on my action script-heavy files??) anyways if you click the link at the bottom, you will see what am talking about...especially if you refresh the page and when you browse through the news calendar it lags reeeeaaalll bad...if anyone has any advice plz let me know i am willing to let anyone take a look at my files if they are feeling cheritable...i don't want to give up, but i am spent on angles to approach this from...thx
new site build [click me]
View Replies !
View Related
Preloader Issues
hi all.
i'm having problems with my preloaders recently.
during download simulation tests, the preloader won't appear until around 65% of the loading animation.
in flash, this leaves the screen blank with the document background colour until about 65%, but even worse, online it leaves a blank white space in the browser, as if the swf cannot be found.
this is happening with TWO different preloaders (similar setup -animated loadbar and dynamic "% loaded" text- but different coding and graphics)
anyone else have this problem?
are my loading animations possibly so big that they need a preloader of their own? they seemed to work fine before this week.... and i always tend to use the same code/graphics.
if you want an example, click here
oh, also!
the swf is only about 95Kb, but the preloader seems to think that it's 209Kb or so, and the animation only appears/starts about 160Kb
i'm sure this is something stupid, but even after drinking 2 pints of coffee, i'm clearly missing the issue.
View Replies !
View Related
Preloader Issues
I've put this code into Flash MX 2004 pro and I get an error and I don't know what the error means.
progress = Math.floor(kBytesLoaded) + ‘ of ’
+ Math.floor(kBytesTotal) + ‘ kBytes loaded’;
This is the error I get.
**Error** Symbol=preloader, layer=script, frame=2:Line 6: Operator '+' must be followed by an operand
progress = Math.floor(kBytesLoaded) + ‘ of ’
**Error** Symbol=preloader, layer=script, frame=2:Line 7: Operator '+' must be followed by an operand
+ Math.floor(kBytesTotal) + ‘ kBytes loaded’;
Total ActionScript Errors: 2 Reported Errors: 2
If anybody can point me in the right direction that would be great!
Thanks!
View Replies !
View Related
Preloader Issues
I have gotten my preloaders to work fine in huge flash files that have minimal amounts of frames.
BUT...
i cannot get my preloader to properly preload the current movie i am working on which is aprrox 1300 frames.
according to my bandwith profiler the movie is automatically playing when it his 222 frames...
the scripting i am using is the following :
stop();
myInterval = setInterval(preloader, 10);
function preloader() {
if (getBytesLoaded()>=getBytesTotal()) {
play();
clearInterval(myInterval);
}
bar._xscale = (getBytesLoaded()/getBytesTotal())*100;
}
am i missing something that i need to change a setting in flash to have it not put that 22fram limit on there and to keep it from auto playing when the loading is not finished?
HELP!
View Replies !
View Related
Preloader Issues
Hi,
I have put a very simple preloader in the first frame of my movie. I know it works because in Flash I Ctrl+Enter twice and I see the bytes loaded / total bytes.
The swf file when uploaded is about 200k so I know it is big enough over 56kb dialup to have to kick in.
However, the preloader doesn't kick in, the screen just freezes until the movie has fully loaded.
Has anyone else come across this before?
Thanks in advance, Justin
View Replies !
View Related
Preloader Issues
I'm sure this is a very simple problem, but I'm not terribly well-versed in preloaders.
The preloader I have on my site right now works perfectly on the main page, but not on my portfolio page. I broke down my site into 2 parts because the portfolio is large.
Basically, on the first site, it loads 100% before moving on. On the portfolio, it loads about 45kb and then bounces you right into the following frames.
The Details
The preloader is a one-frame movie clip in frame 1 of my first scene. I looked at the actions on the 3 layers inside it - text, bar, background.
On the preloader's "background":
onClipEvent (enterFrame) {
if (_parent.doneLoading == 760) {
total = _parent._parent.getBytesTotal();
isloaded = _parent._parent.getBytesLoaded();
p = 100*(isLoaded/total);
_parent.bytes = int(isloaded/1000) add " KB of " add int(total/1000) add " KB";
_parent.percent = int(p) add "% LOADED";
_parent.bar._xscale = p;
if (Number(p)>Number(95)) {
_parent._parent.gotoAndPlay(Number(2));
_parent.gotoAndStop("off")
_parent.doneLoading = 1;
} else {
_parent._parent.gotoAndPlay(Number(1));
}
}
}
On the preloader's "text":
doneLoading = 0
stop()
To see it in perfect action, check out:
http://www.daramoss.com
To see it #*$& up every time it preloads, check out:
http://www.daramoss.com/portfolio.html
THANKS SO MUCH!
View Replies !
View Related
Preloader Issues
hi
i have a simpe preloader using the simple actionscript as following
ifFrameLoaded ("end") {
gotoAndPlay ("start");
}
he preload works well but then the flash movie followng become all sow an glichy, if i take teh preloader out , it works fine again.
Does anyone has any idea??
thanks
ollivier
View Replies !
View Related
Preloader Issues (sorry) HELP
You can see the site at www.denovodigital.com/demo2
I have an fla containing 4 scenes;
"main_preload"
"main"
"portfolio_preload"
"portfolio"
The first preload scene shows my preload animation until the last frame of the "portfolio_preload" is loaded, then goes to frame 1 on "main".
Upon clicking the button on the "main" scene to go to the portfolio, you are taken to "portfolio_preload", which checks to see if the last frame of "portfolio" has been loaded and will either show the loading animation or take you to frame 1 of "portfolio".
The problem is, if "portfolio_preload" has to show the loading animation it gets stuck and will never go to "portfolio". If the "portfolio" has already finished loading upon clicking the button, however, it works fine.
Any ideas what I'm doing wrong? The actionscript for my "portfolio_preload" is as follows;
FRAME 3;
ifFrameLoaded ("portfolio", 18) {
gotoAndPlay (5);
}
FRAME 4;
gotoAndPlay(3);
FRAME 5;
gotoAndStop("portfolio", 1);
View Replies !
View Related
Preloader Issues. -.-
Well.. I'm having troubles. I have this site I'm working on for a class project.
http://joshmoyers.com/dump/flash/test.html (I know.. Javascript needs work)
That is how I need the page to show up. Notice that it completely skips the preloader..
http://joshmoyers.com/dump/flash/home_page.swf
That page is loaded in the first movie with loadMovie, but the preloader works this time..
I used this tutorial for the preloader:
http://www.bestflashanimationsite.com/tutorials/3/
View Replies !
View Related
Preloader Issues
Hi
I built an external movie called "PreloaderIntro.swf". It's a swf that has 100 frames with a stop(); action on the first frame, and loads on level 300. For testing reasons it's just a blue bar that move from frame1 to frame 100.
What it's supposed to do:
The preloader is supposed to keep track of multiples loading external movies and move its play head to the frame equivalent to the combined loading percent of all the movies. And all the loading movies should only play in synchronization once all levels are fully loaded.
What it's doing:
The blue bar is playing back and forth like it's moving its play head to the individual percent of each movie being loaded, rather than the combined percent of all of them, and it's even moving its play head as some of the smaller movies are already fully loaded and start playing on the background.
This is the code I'm using for the preloader:
Code:
MasterListener2.onLoadProgress = function(target_mc2, loadedBytes, totalBytes) {
//_level300._visible = true;
var preloadPercent:Number = Math.round((loadedBytes/totalBytes)*100);
_level300.gotoAndStop(preloadPercent); //stop on the preload percent
}
This is my full code: (I removed a lot of actions from buttons and other movie clips interactions that will happen after all levels are loaded to keep things simple in the thread)
//=============================<Creating var Masterloader, 2 and 3>====================================\
var MasterLoader:MovieClipLoader = new MovieClipLoader();
var MasterLoader2:MovieClipLoader = new MovieClipLoader();
//================================================== =====\
//==============<Creating a variable "MasterListener" (Object) That will check loading swf>============\
var MasterListener:Object = new Object();
var MasterListener2:Object = new Object();
//================================================== =====\
MasterLoader.addListener(MasterListener);
MasterLoader2.addListener(MasterListener2);
//===================<when the movie starts loading, stop it, and hide it>==============================\
MasterListener.onLoadStart = function(target_mc:MovieClip) {
target_mc.stop();
};
//================================================== =====\
//========================<when the movie starts loading, stop it, and hide it>=========================\
MasterListener2.onLoadStart = function(target_mc2:MovieClip) {
target_mc2.gotoAndStop(1);
};
//================================================== ====\
Code:
//=========================================<Preloader>=====\
MasterListener2.onLoadProgress = function(target_mc2, loadedBytes, totalBytes) {
//_level300._visible = true;
var preloadPercent:Number = Math.round((loadedBytes/totalBytes)*100);
_level300.gotoAndStop(preloadPercent);
}
//=======================================================\
//|||||||||||||<=======================<MasterListen er2.onLoadInit = function>==============>||||||||||||||\
MasterListener2.onLoadInit = function(target_mc2:MovieClip) {
//_level300._visible = false;
_level300.gotoAndStop("PLI_Off"); //Hide Preloader by playing an off frame
target_mc2.gotoAndPlay(1);
_level198.gotoAndStop(2);
//|||||||||||||<=======================</MasterListener2.onLoadInit = function>==============>||||||||||||||\
}
//=======================<when the firsts movies have loaded, play and show it>========================\
MasterListener.onLoadInit = function(target_mc:MovieClip) {
target_mc.gotoAndPlay(1);
//the first two movies are fully Loaded and playing, load the second group of movies
MasterLoader2.loadClip("IntroText_McAngelo.swf", 200);
MasterLoader2.loadClip("IntroText_McAngeloName.swf ", 199);
MasterLoader2.loadClip("Alexcreative_Intro.swf", 198);
MasterLoader2.loadClip("Alexcreative_3MiddleWindow s.swf", 12);
MasterLoader2.loadClip("Alexcreative_MainTicker.sw f", 11);
MasterLoader2.loadClip("Alexcreative_LastElement.s wf", 10);
MasterLoader2.loadClip("Alexcreative_MainWindow.sw f", 5);
MasterLoader2.loadClip("Alexcreative_Menu.swf", 4);
MasterLoader2.loadClip("Alexcreative_LastWindow.sw f", 3);
MasterLoader2.loadClip("Alexcreative_Backgroud.swf ", 1);
};
//========================</MasterListener.onLoadInit = function>========================================= ==\
//===================================<Loading first two externals swf>==========================================\
MasterLoader.loadClip("Alexcreative_PreloaderIntro .swf", 300);
MasterLoader.loadClip("Alexcreative_SketchMask.swf ", 197);
//================================================== =====\
here is the Link of what is happening
Any ideas why the preloader is not moving it's play head smoothly from 1 to 100 frames as the combined percent of all the external movies load?
thanks a lot
Alex
View Replies !
View Related
Preloader Issues
Hi all,
I was hoping someone could help me make my preloader work. I am not sure what I have done wrong. I just want it to load the bar it is thin and long and than go to home to start the rest of my movie. Can someone look over my AS to see what I am doing wrong!!
Thanks,
View Replies !
View Related
Preloader Issues
Hi all,
I was hoping someone could help me make my preloader work. I am not sure what I have done wrong. I just want it to load the bar it is thin and long and than go to home to start the rest of my movie. Can someone look over my AS to see what I am doing wrong!!
Thanks,
View Replies !
View Related
Preloader Issues
I'm trying to make a preloader for a scene that has bitmaps exported for actionscript on the first frame (therefore I can't create the preloader in the same swf, or else it will wait for those bitmaps to load before starting the preloader). I'm creating a new swf to load the scene into.
I used this code to load the scene:
loadMovieNum("myscene.swf", 1);
Here's the code on the loading bar:
onClipEvent (enterFrame) {
if (_level1.getBytesLoaded()>=_level1.getBytesTotal() ) {
_root.gotoAndPlay(3);
} else {
this.gotoAndStop(Math.floor((_level1.getBytesLoade d()/_level1.getBytesTotal())*this._totalframes));
}
}
where the 3rd frame on the root is a button that tells _level1 to gotoAndPlay the next frame (the very first frame is a blank frame with a stop action on it, so that it's hidden while it's loading)
but what ends up happening is it spends no time on the loadbar, and goes right to the button. then of course the button won't work until I've finished loading the bitmaps in myscene.
help?
View Replies !
View Related
[F8] Preloader Issues
Hey guys. I am still somewhat new to the Flash scene, but I am trying to advance as fast as I can.
Here is what is going on. I have the preloader and the content separated into different files. What I need to do is have the preloader load ALL of the bytes in the content file BEFORE the content file even starts.
What is happening right now is that the preloader is getting to about 50% and then the content file starts. The preloader text is still going till the load percentage hits 100%. So, obviously, I am having some overlap where I do not want it.
Here is my code for my preloader:
PHP Code:
var oneMCL:MovieClipLoader = new MovieClipLoader();
var oneListener:Object = new Object();
oneMCL.addListener(oneListener);
oneListener.onLoadProgress = function(target_mc:MovieClip, loadedBytes:Number, totalBytes:Number)
{
var loaded:Number = Math.round((loadedBytes/ totalBytes) * 100);
preloadInfo1.text = loaded + " % loaded";
preloadInfo2.text = Math.round(loadedBytes/1000) + " k loaded / " + Math.round(totalBytes/1000) + " k total";
}
oneListener.onLoadInit = function(target_mc:MovieClip)
{
progressBar._visible = false;
preloadInfo1._visible = false;
preloadInfo2._visible = false;
}
oneListener.onLoadStart = function(target_mc:MovieClip)
{
progressBar._visible = true;
preloadInfo1._visible = true;
preloadInfo2._visible = true;
}
oneMCL.loadClip("vbboxflash.swf", "container");
Any help would be appreciated.
View Replies !
View Related
Preloader Issues
OK, here's what I'm trying to do...I'm trying to preload my main movie as well as my externally loaded movies by taking this approach, this is generalized by the way:
Code:
_root.createEmptyMovieClip("aInstance", 1);
_root.createEmptyMovieClip("bInstance", 2);
_root.createEmptyMovieClip("cInstance", 3);
aInstance.loadMovie("a.swf");
bInstance.loadMovie("b.swf");
cInstance.loadMovie("c.swf");
var totalBytes = aInstance.getBytesTotal() + bInstance.getBytesTotal() + cInstance.getBytesTotal() + _root.getBytesTotal();
var totalBytesLoaded = aInstance.getBytesLoaded() + bInstance.getBytesLoaded() + cInstance.getBytesLoaded() + _root.getBytesLoaded();
...and then doing the appropriate arithmetic (ie. multiply by 100) to get percentage, once percentage == 100, _root.gotoAndPlay("start"); My preloader is on frame 1 of main and on frame 2 all I have is a gotoAndPlay(1); command, and frame 3 is labeled "start"....On frame 1 of all my loaded swfs is a stop() command and frame 2 is labeled "start" on every loaded movie.
So on frame 3 of main, I say:
Code:
aInstance.gotoAndPlay("start");
bInstance.gotoAndPlay("start");
cInstance.gotoAndPlay("start");
According to my understanding, this should work! All of my externally loaded swfs should be FULLY loaded by the time my main movie starts! But I'm having issues where the dynamic text (using loadVariables) in my externally loaded movies, is still NOT LOADED by the time the main movie starts!!!!
is there something I'm not understanding regarding preloaders, or loading external swfs with "loadVariables" functions? PLZ HELP! thx!
View Replies !
View Related
[mx]preloader Issues
I am in a class that requires me to build a flash interface. I have built a pretty good interface but am having problems with the preloader's actionscript.
does anyone see any problems with the actionscript?
Code:
menu_mc.stop();
var section:String = new String();
var menu:MovieClip = menu_mc;
var startSection:MovieClip = content_mc.homecontent_mc;
var externalSections:MovieClip = content_mc.placeholder_mc;
var percentageDisplay:MovieClip = menu_mc.loadinfo_mc;
percentageDisplay._visible = false;
var loader:MovieClipLoader = new MovieClipLoader();
loader.addListener(this);
function onLoadInit(externalSections:MovieClip) {
menu.stop();
percentageDisplay._visible = false;
}
function onLoadProgress(externalSections:MovieClip, loaded:Number, total:Number) {
if (section != "home") {
externalSections._visible = true;
startSection._visible = false;
percentageDisplay._visible = true;
menu.play();
var percent:Number = Math.floor(loaded/total*100);
percentageDisplay.infodisplay_txt.text = "LOADING: "+percent+"%";
}
}
menu.home_btn.onPress = function() {
menu.stop();
percentageDisplay._visible = false;
section = "home";
startSection._visible = true;
externalSections._visible = false;
};
menu.music_btn.onPress = function() {
section = "music.swf";
loader.loadClip(section, externalSections);
};
menu.products_btn.onPress = function() {
section = "pictures.swf";
loader.loadClip(section, externalSections);
};
menu.contact_btn.onPress = function() {
section = "contact.swf";
loader.loadClip(section, externalSections);
};
View Replies !
View Related
[F8] Preloader Issues
For a working game I made called PowerPong.swf I'm trying to create either an internal or an external preloader, but am running into problems for both.
The external preloader, called pongloader.swf, works fine graphically and loads fine, but when the main file (PowerPong.swf) has been loaded, it won't start the actionscript, and thus the game doesn't work. I've used the following code:
Code:
pongLoader = new MovieClipLoader();
thisListener = new Object();
thisListener.onLoadProgress = function(mc, bytesLoaded, bytesTotal) {
progress_bar._x = -145+bytesLoaded/bytesTotal*360;
}
thisListener.onLoadComplete = function(mc) {
progress_bar._visible = false;
part_1._visible = false;
part_2._visible = false;
part_3._visible = false;
movieclipholder.play();
}
pongLoader.addListener(thisListener);
pongLoader.loadClip("PowerPong.swf", "movieclipholder");
I've tried making an internal preloader instead by adding an extra scene, placing it in front, unchecking 'export in frame 1' for the sounds, and loading them in a seperate place in the timeline of the movie so they are still loaded. However, this doens't seem to work; the sounds aren't loaded OR played at all.
Can anyone please assist!?
View Replies !
View Related
PRELOADER Issues
anyone have had this ?
the preloader works fine on the computer, but off the server it's not loading things properly.
I'm loading external files and when it's on the server it's not adding the getBytesTotal() and getBytesLoaded() properly for the files.
it works on my hard drive though.
any ideas
View Replies !
View Related
Preloader Issues
OK, here's what I'm trying to do...I'm trying to preload my main movie as well as my externally loaded movies by taking this approach, this is generalized by the way:
Code:
_root.createEmptyMovieClip("aInstance", 1);
_root.createEmptyMovieClip("bInstance", 2);
_root.createEmptyMovieClip("cInstance", 3);
aInstance.loadMovie("a.swf");
bInstance.loadMovie("b.swf");
cInstance.loadMovie("c.swf");
var totalBytes = aInstance.getBytesTotal() + bInstance.getBytesTotal() + cInstance.getBytesTotal() + _root.getBytesTotal();
var totalBytesLoaded = aInstance.getBytesLoaded() + bInstance.getBytesLoaded() + cInstance.getBytesLoaded() + _root.getBytesLoaded();
...and then doing the appropriate arithmetic (ie. multiply by 100) to get percentage, once percentage == 100, _root.gotoAndPlay("start"); My preloader is on frame 1 of main and on frame 2 all I have is a gotoAndPlay(1); command, and frame 3 is labeled "start"....On frame 1 of all my loaded swfs is a stop() command and frame 2 is labeled "start" on every loaded movie.
So on frame 3 of main, I say:
Code:
aInstance.gotoAndPlay("start");
bInstance.gotoAndPlay("start");
cInstance.gotoAndPlay("start");
According to my understanding, this should work! All of my externally loaded swfs should be FULLY loaded by the time my main movie starts! But I'm having issues where the dynamic text (using loadVariables) in my externally loaded movies, is still NOT LOADED by the time the main movie starts!!!!
is there something I'm not understanding regarding preloaders, or loading external swfs with "loadVariables" functions? PLZ HELP! thx!
View Replies !
View Related
Preloader Issues
Hey guys, I'm a bit of an empty vessel when it comes to preloaders - I must admit. Though I've been banging my head against what I'm sure must be easily achievable for a couple of days and really need some help. This is where you come in
The basic structure of my app is as such:
Main Movie > (loadMovie) Section > (loadMovie x 5) Content
What I need to do is only allow the Main Movie to play the Section moving into view once the Content movies have completed loading - at current they pop into view.
is there a preloading method which will wait for loadMovies with loadMovies, is the solution to pass a variable from Content to Main Movie to tell it's done loading? Am I really just a massive idiot who's missing the obvious?
Any clues would be appreciated, I suspect I'm causing myself too many problems by trying to be too clever with how everything is structured and may have some restructuring to do unless I can fix this. Happy to provide flash files/swf's of the app with the issue if it will help.
Cheers,
Matt
View Replies !
View Related
Preloader Issues
My project is a .swf with an embedded .FLV in it. The .swf plays as soon as it's loaded. In a separate .FLA, I have the following code for the preloader:
var myRequest:URLRequest = new URLRequest("schilsky_endGoal.swf");
var myLoader:Loader = new Loader();
myLoader.load(myRequest);
myLoader.contentLoaderInfo.addEventListener(Event.OPEN,showPreloader);
myLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,showProgress);
myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,showContent);
var myPreloader:Preloader = new Preloader();
function showPreloader(event:Event):void {
addChild(myPreloader);
myPreloader.x = stage.stageWidth/2;
myPreloader.y = stage.stageHeight/2;
}
function showProgress(event:ProgressEvent):void {
var percentLoaded:Number = event.bytesLoaded/event.bytesTotal;
myPreloader.loading_txt.text = "Loading " + Math.round(percentLoaded * 100) + " %";
myPreloader.bar_mc.width = 198 * percentLoaded;
}
function showContent(event:Event):void {
removeChild(myPreloader);
addChild(myLoader);
}
Now, the preloader appears to work. However, once the progress bar gets to 14%, the main .swf starts playing, even while the progress bar and loading text are on the screen. Obviously, I need the .swf to be completely downloaded before it starts playing. I haven't been able to find a way to fix this. Please help.
View Replies !
View Related
Preloader Issues
I'm trying to create a preloader for a website banner. I created a rectangle then converted it to a movie. Double clicked the movie then deleted the rectangle and added five layers. In each layer was a image that transistioned through different alpha states.
However, when I add the preloader actionscript I'm faced the results of a movie that doesn't work at all - all I see is the background color or I see preloader graphic, but with no preloading action. I've gotten it to a point where I see the preloader working and keeps replaying without loading the movie. And even the movie starts to load indifferent to the status of the preloader and both keep repeating.
Any suggestion? I'm trying to get this cleared up before thursday when I have to present the website for approval.
- 29459ds
View Replies !
View Related
Preloader Issues
Hi
I have an issue that maybe doesn't concern only me.
The issue is how to make an effective preloader when I have an accordion component on stage ( as navigation on frame 2). When using the accordion I have to export the file in AS2 maybe this is the problem why this preloader doesn`t work(view the fla. of the preloader) when is placed on frame 1
Can you refer to any usefull link or fla. would help a lot.
thanks
goctala
View Replies !
View Related
Issues With Preloader
Hey awesome Flashers,
I've got an issue with inserting a preloader. My main blank movie clip on my stage loads all of my external swf files. When I go into those external files, I move the animation over one keyframe and paste the preloader into that first keyframe. When I test the scene, the preloader shows up in my movie, but it doesn't disappear. Anyone have good tips on how to solve the problem? Website is www.milittisales.com if that helps.
Thanks I appreciate any response,
Nebraska girl
View Replies !
View Related
Preloader Issues, Not Quite There.
Hello.
I'm currently working on a site.
I have the intro sorted and the preloader works for that, and then i link the main part of the site to another html page containing the flash file. Trouble is, the second part of the site contains a large mp3 embedded in it. When loading it, it appears as white and then the preloader appears already about 75% loaded.
Is there anyway to use a different method to get the second part of the page to load. Maybe a small flash file that uses the loadMovie command?
You can find the site at http://osiris.sunderland.ac.uk/~cc2dgr/intro.htm
any other suggestions, hints would be very much appreciated
View Replies !
View Related
Preloader Issues
Hiya
In the process of doing my new site, have everything else working fine except my preloader.
For some unknown reason, I just can't get it to work.
I've been advised that I need the preloader as an external .swf, which in turn loads up the mc.
Code:
myBytesLoaded = this.container.getBytesLoaded();
myBytesTotal = this.container.getBytesTotal();
//trace(myBytesLoaded)
//trace(myBytesTotal)
if (myBytesLoaded >= myBytesTotal && myBytesTotal > 10) {
stop();
} else {
percentOutput = "LOADING... "+int((myBytesLoaded/myBytesTotal)*100)+"%";
setProperty("loadbar", _xscale, (myBytesLoaded/myBytesTotal)*100);
play();
}
Any ideas?
View Replies !
View Related
Preloader Issues
I am using this code for my preloader. It is located in the first frame of my flash file. I don't see any progress bar display until about 90%. There are several movieClips in my flash file that are linked, do these have a bearing on the progress bar showing up?
ActionScript Code:
total_bytes = _root.getBytesTotal();loaded_bytes = _root.getBytesLoaded();remaining_bytes = total_bytes-loaded_bytes;percent_done = int((loaded_bytes/total_bytes)*100);bar.gotoAndStop(percent_done);ifFrameLoaded (50) { gotoAndPlay(5);}
View Replies !
View Related
Preloader Issues
ok having trouble in test mode which of course will carry on to the site if I post it this way. I built my preloader and it works but then the movie starts to play and then stops waiting for more to load. This would ot be a problem except that everything is down to the beat and rythm of the music any suggestions.
here is the code for the preloader.
totalBytes = this.getBytesTotal();
loadedBytes = this.getBytesLoaded();
remainingBytes = totalBytes - loadedBytes
percentDone = int((loadedBytes/totalBytes)*100);
bar.gotoAndStop(percentDone);
if (_framesloaded = _totalframes) {
gotoAndPlay(3);
}
By the way this is a LARGE movie over 800 frames and 18 layers/
View Replies !
View Related
Preloader Issues Please Help
I need some assistance on creating a preloader with just a loading bar, no percentage to an animation. The flash animation movie has 5 layers that are all on frame1!! How would I work a preloader into these layers and work properly without screwing up the animation? Any and all assistance will be greatly appreciated. Thanks again.
View Replies !
View Related
Preloader Issues
i followed instructions from thsi tutorial: http://www.kirupa.com/developer/flash5/preloader.htm
on how to make a basic pre-loader and i have to admit, i was impressed (having never been able to make a successful one since flash 4)
HOWEVER
my main site pre-loads, then loads, i have a container which other pages/swf files are loaded into.
These also have pre-loaders.
Alone, all pages pre-load fine, however when they load into the container, i get a black window with no pre-loader.
Any ideas why?
I figured it may be because each 'page' was using the same command as the main page, so there may be a conflict, but even after changing layer names etc, it still doesnt work.
View Replies !
View Related
Preloader Issues
Well I am trying to create a preloader and it worked in theory but when I attempt to implement it is won't work.
I think it has to do with my AS but am not sure
Here is th as:
Code:
function preLoader(loadIt) {
if (getBytesLoaded()>4 && getBytesLoaded() == getBytesTotal()) {
gotoAndPlay("start");
}
else {
pct = int(getBytesLoaded()/getBytesTotal()*100);
for(i=prevPct;i<pct;i++){
loadBar.pct.attachMovie("percentage", "p"+i, _root.loadBar.pct.getNextHighestDepth(), {_x:0, _y:0, percent:i});
prevPct = pct;
trace("Percent: " +pct+ " Previous: " +prevPct);
}
gotoAndPlay("load");
}
}
audio = new Sound();
audio.loadSound('sounds/OrdonTheme.mp3', false);
audio.volume =100;
audio.start();
_root.attachMovie('preLoader', 'loadBar', _root.getNextHighestDepth(), {_x:((550-200)/2), _y:((400-20)/2)});
preLoader(_root);
The preLoader(_root); is for something that I was attempting and didn't turn out to work so I am going to come back to it.
The issue is that it moves on to the start frame before loading all (or any) of the percentages into loadBar (as it is supposed to) I am not sure what is wrong here but any help would be great.
If you want me to attach the whole file just ask.
View Replies !
View Related
Preloader Issues
I am working on a website right now and when I go to the html version of it, all it does is just sit there. A blank white screen for maybe a minute and hwen it finally loads the preloader only comes up for a half a second.
Here check it out for yourself
http://ratedpgdesign.com/New%20Website.html
View Replies !
View Related
Preloader Issues
I'm trying to create a preloader for a website banner. I created a rectangle then converted it to a movie. Double clicked the movie then deleted the rectangle and added five layers. In each layer was a image that transistioned through different alpha states.
However, when I add the preloader actionscript I'm faced the results of a movie that doesn't work at all - all I see is the background color or I see preloader graphic, but with no preloading action. I've gotten it to a point where I see the preloader working and keeps replaying without loading the movie. And even the movie starts to load indifferent to the status of the preloader and both keep repeating.
Any suggestion? I'm trying to get this cleared up before thursday when I have to present the website for approval.
- 29459ds
View Replies !
View Related
Preloader Issues
Hi
I have an issue that maybe doesn't concern only me.
The issue is how to make an effective preloader when I have an accordion component on stage ( as navigation on frame 2). When using the accordion I have to export the file in AS2 maybe this is the problem why this preloader doesn`t work(view the fla. of the preloader) when is placed on frame 1
Can you refer to any usefull link or fla. would help a lot.
thanks
goctala
View Replies !
View Related
PreLoader And Movie Issues
I seem to have my preloader working, except it when i click a button in Scene 1, Scene 2 (the loader) plays again
What am i doing wrong? And how do i get the loader to read and load the data for my main movie?
Thanks for your help.
View Replies !
View Related
Issues With Preloader Components
I am using components as preloaders in my Flash movie. I have been told the reason why when my page first loads, its blank, until the forst 20% is loaded is becuase of components. Is this true? How much size can a component take up?
View Replies !
View Related
Funny Preloader Issues....
Hi there,
Could someone please help me with this, I am going crazy I think!
I downloaded a tutorial from here :
http://www.worms3d.net/ezekiel/TACTI.../preloader.htm
- for a preloader.
The preloader works fine if I just test the file that you can download. There are two problems however.
1 - If I try to use this in an existing file it will not work. It takes until about 84% of the Flash file to load before the preloader starts to show! huh??
2 - If I copy the frames from the exisiting file into the preloader that was downloaded it all works fine and the size of the file is actually much smaller than my original!!!
I have found that if I create a brand new file using this preloader technique that the files will actually come out a lot smaller and work every time. My problem is that I don't want to have to go through loads of files copying and pasting the contents into another file just to get it to work.
I really can't see why it goes wrong though. If anyone can help then I would be exceptionally greatful. Also another thing when I use it in a Version 6 AS 1.0 file the speed per second variable works but when published as a Version 7 AS 2.0 (or 1.0) it doesn't.
If anyone could have a look at these two links and see what I mean :
http://www.kingfishergraphics.com/us...oaderv6as1.swf
http://www.kingfishergraphics.com/us...oaderv7as2.swf
and see if you can figure out why? I am guessing it is something to do with the Actionscript involved in the .fla file which I have attached here if anyone would be kind enough to take a look. I checked the syntax by using Apple T and Flash said there were no errors but I am guessing that there must be for it to not work properly.
If anyone can help with any part of or the whole of this then I would be exceptionally greatful.
Regards,
Mark Bowen
View Replies !
View Related
Preloader/portfolio Issues
I saw this script here on Flashkit, but now i can't get it to work when i apply it to my site.
My preloader, for the portfolio section, acts like it's working but it then it will pop real fast to the portfolio, then pop back to the index page.
Also, i can't get my pictures to loop in the portfolio. They can go up and down, but after the last one, instead of looping back to the first one for continuous looping, it will start blinking.
I'm new to these forums, so not sure exactly how they work. Can I attach my .fla file here so someone could help me w/ these issues? It isn' t currently online anywhere.
thx
View Replies !
View Related
Preloader Issues Flash 7
beta site
My preloader either does not show up, or comes in way to late. Here is how my site is designed..
I have the application.swf that loads basic.swf. basic.swf goes from scene to scene, and on each scene it loads in scene1.swf, scene2.swf ect ect.
All of them loading into a movieclip (_root.basic.loadscene)
The way my preloader works is on the scene swf files.
1st frame
Code:
if (_totalframes eq _framesloaded) {
gotoAndPlay (3);
}
total = getBytesTotal();
loaded = getBytesLoaded();
percent = int(loaded/total*100);
tempo = int(getTimer()/1000);
conn33K = int(total/2800)+" seconds";
conn56K = int(total/4200)+" seconds";
isdn64K = int(total/6400)+" seconds";
acarregar.barra._width = int(loaded/total*100);
frame 2
Code:
gotoAndPlay (1);
This preloader works fine when im loading a movie into a movieclip, but not into a movie clip into a movie clip.
any ideas?
View Replies !
View Related
|