Preloader For Movie Within Mc
hi I would like to know how can I make a preloader for a swf,I want that swf loads into a blank mc that is inside of a mc how can I do that.
thanks in advance
FlashKit > Flash Help > Flash ActionScript
Posted on: 03-05-2006, 01:43 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Loading Movie With Preloader In Movie With Preloader - Problem
I have problem this problem:
I have main MC (SWF) with preloader.
I load in this MC another MC1(SWF) and this MC1 have preloader too.
During preloading blinks the main MC and MC1 => nothing is loaded.
If i remove from MC1 preloader all works without problem, but i must use preloader for MC1 too.
How can i solve it?
I think the problem is, that i use the same code for both MCs and preloader goes in some loop.
I use this preloader:
Code:
onClipEvent (enterFrame) {
_root.preloader.bar._xscale = siteLoaded;
siteLoaded = int((loaded_bytes/total_bytes)*100);
// bytes
total_bytes = _root.getBytesTotal();
loaded_bytes = _root.getBytesLoaded();
remaining_bytes = total_bytes-loaded_bytes;
// frames
frame_loaded = _root._framesloaded;
frame_total = _root._totalframes;
// kilo bytes
totalkb = int(total_bytes/1024) add "KB";
loadedkb = int(loaded_bytes/1024) add "KB";
remaining_kb = int(remaining_bytes/1024);
remainingkb = int(remaining_kb) add "KB";
percent_done = int((loaded_bytes/total_bytes)*100) add "%";
// time
time = getTimer()/1000;
// speed
speed = loaded_bytes/time;
bits = speed/1024;
Kbps = Math.round(bits*10)/10 add "KB/S";
// time remaining
kbyteCounter = (total_bytes-loaded_bytes)/1024;
loadRate = (loaded_bytes/1024)/time;
timeCounter = kbyteCounter/loadRate;
minutes = Math.floor(timeCounter/60);
seconds = Math.round((timeCounter/60-minutes)*60);
time_remaining = minutes+" min "+seconds+" sec";
// timeelapsed
minute = Math.floor(time/60);
second = Math.round((time/60-minute)*60);
time_elapsed = minute+" min "+second+" sec";
if (total_bytes == loaded_bytes)
{
_root.gotoAndStop (2);
}
}
How should i set preloader for MC1, which is inside of main movie MC?
I load MC1 (extertal SWF) in empty MC2 in _leve0 of main movie MC.
Thanks Jan
Large Movie Preloader /External Preloader Question...
I have a fairly large movie (about 380KB) with a status bar preloader in the first frame. The problem is that I load a few of the MC's in the movie into ScrollPanes and then don't work unless I export them on the first frame (these MCs make up about 200KB). Therefore, there is no flash shown until it has loaded up about half way.
I tried to use an External Preloader, but that loaded the MC on level 1, and no buttons or functions within the entire movie worked properly.
My question is, is there a way to either use the external preloader and swap (or reload) the movie on level 0, or does anyone know a way to load the MCs on another frame other than 1, but before they load to the Scroll Pane? Any other ideas would also be appreciated.
Thanks!
Preloader For Another Movie In Current Preloader
say i have a preloader, for the first movie. in the first movie, at the end of the movie, i put up an action script in which it will load another movie call second movie
see, if the first movie got 30 frames, and at frame 30 the second movie is loaded (loadMovie method), the preloader is utterly useless cause users still need to wait at frame 30 of first movie for second movie to load.
so what i'm trying to ask here is can first movie preloader check or make second movie load then show it at frame 30.
to make things clearer, heres my source code for preloader
ifFrameLoaded ("main", 30) {
gotoAndPlay ("main", 1);
}
well looks simple, but doesnt check and see if the second movie is loaded onto frame 30
any help?
Scene Preloader Vs Movie Preloader
hi
I have a movie with about six scenes. Each scene begins with a simple preloader...
if (_root.getBytesLoaded()>=_root.getBytesTotal()) {
gotoAndPlay(4);
}
The trouble is that I think that this script only works on the first scene because it is loading the whole movie rather than just the scene to which it belongs.
does anyone know how i alter the script so that it only gets the BytesLoaded and BytesTotal of the current scene rather than the whole movie?
thanks very much for your time.
Load Movie In Empty Movie Clip...Display Preloader In Another
I have two empty movie clips. One that will hold the current menu and the other will display the preloader/current page. How can I get the page that is being loaded to send the preloader information to the other movie clip? I've made simple preloaders, but this is a little more complicated. This is the only thing left to really solve on my web page, I would appreciate any help.
Possible To Add Preloader To Movie Using Shared Lib Items Without Nesting Movie?
My problem is this. I have designed a movie which makes extensive use of exportable library items to build menus etc. using the attachMovie() method. The movie itself is only about 120Kb with 100Kb made up of exportable symbols.
Using a conventional progress-bar preloader, the graphic appears late in the load owing to the priority loading of the shared library items whereas I want it there from the start.
I've looked at a number of solutions/tutes which use a stub preloader movie (which loads movies with shared libraries into a target clip within the stub) to overcome this. Problem is, my main movie makes substantial use of _root relative targeting and I'd really like to avoid having to retarget everything to something like '_root.containerClip.[instance/property]'.
Is there a way I can keep my main movie largely as is? Can I re-use the same preloader on additional clips I'd like to load into my main movie?
n.b: the main tute I was looking at was Colin Moock's preloader manager v1.01 from http://www.moock.org
Really appreciate anyone's help with this.
Matt
Loading A Movie Inside A Movie W/preloader?
I just came from a website where after the movie was loaded and your in the main interface. . as you click on buttons to view certain things, smaller movies appear with their own preloaders which then load and you can view. . .(example: http://members.tripod.com/betathree/ )
I want to create a similar effect in my masterpeice to optimize the bulk of the movie.
Can I get a lending hand from the gurus of the board?
Thanks alot
[Edited by Apollo Becate on 07-10-2002 at 09:00 PM]
Preloader Movie Loading Real Movie
Because of components in my movie I cannot make real preloader in it, so I am trying to make a movie which would load real movie.
I have some troubles doing that..
i tried putting this in first frame of preloader movie (which has 20 or so frames)
target.loadMovie("home.swf");
target.stop(); ->here i was trying to achieve that target movie stops so it doesnt play over preloader but obviously i am doing something very wrong
now I am trying to make a simple preloader it would show xx% of xx KB loaded (i know how o make that, i tried to adapt preloader from normal movie) but it just doesnt work
later i tried with this load check:
if (target.getBytesLoaded() == target.getBytesTotal()) {
gotoAndPlay (21);
} else {
___gotoAndPlay (19);
}
but i dont think it works either
please help how do i control that movie which is loading?
Preloader Of Movie Going Blank When Movie Is Loaded
(Sorry for repeating this question but I'm still struggling with it)
This question is regarding the following website: www.aniphase.com
I'm having difficulties with a site. The structure of it is such that when pressing a button another section loads with the loadmovie script. Each section has a preloader scene that leads to a main scene. The script in the last frame of the preloader movie is as follows:
if (_root.percentLoaded == 100) {
gotoAndPlay("Environments", 1);
} else {
gotoAndPlay(1);
}
Now the problem is most of the time the viewer goes into any of the sections for the second time it tends to go blank or play funny, example: the profile section).
Can anybody take a look at the site and maybe diagnose what's going on?
Thanks
iam2001
Preloader Of Movie Going Blank When Movie Is Loaded
(Sorry for repeating this question but I'm still struggling with it)
This question is regarding the following website: www.aniphase.com
I'm having difficulties with a site. The structure of it is such that when pressing a button another section loads with the loadmovie script. Each section has a preloader scene that leads to a main scene. The script in the last frame of the preloader movie is as follows:
if (_root.percentLoaded == 100) {
gotoAndPlay("Environments", 1);
} else {
gotoAndPlay(1);
}
Now the problem is most of the time the viewer goes into any of the sections for the second time it tends to go blank or play funny, example: the profile section).
Can anybody take a look at the site and maybe diagnose what's going on?
Thanks
iam2001
Preloader Trouble - Loading A Movie Within A Movie
Hello,
The page I am working on is
http://www.prestigeinteractive.com/mcgibbys2/tips.html
What I have done is constructed a preloader that works on the first movie, however, when I select the link to open the second movie, the preloader refreshes my screen. The link works until I simulate the download, then the refreshing process occurs.
I've included a link to download the files in zip format. I would find it far too difficult to explain what I've done thus far.
http://www.prestigeinteractive.com/m...le/trouble.zip
I believe the trouble lies within the last line of my movie's code (swing1).
Take a look, I'm sure you could figure it out in a matter of minutes.
Later and Thanks in advance,
Greg
ps. you can email the files directly at gwhite@prestigeinteractive.com
pss. I would love to know what you did, if you don't mind writing me a note or two.
Complicated Preloader Problem (movie Within A Movie)
I am using Flash 8 with AS 2.0
I have a 2 scene movie
scene 1 is preloader
scene 2 is main movie
scene 2 has a MC on the mains stage in frame 1. This MC loads another .swf in frame 40 using hte loadmovie command
I want my preloader to determine when the loadmovie mc in sceen 2 is loaded or perhaps just load it in scene 1 but into the MC that holds it in sceen 2.
I can't figure out how to reference the MC that holds my loaded movie in sceen 2 from scene 1 or how to detect when the loadmovie in frame 40 of my MC is loaded.
Any advice would be appreciated.
Peace,
Rickard
Preloader For A Movie Inside A Big Movie
hey,
i used to have a really big intro, but then i broke it down to 4 smallers one's and had them load into my main movie using the loadMovie ("1.swf", 1); code. And i have a preloader at the begining of the movie, but i think that preloader only loads the fist small movie. How can i load my second movie while my first one is playing, i don't need a %preloader i guess.
Movie With Preloader Inside The Movie?
I'm building a website based in flash movie and it's only small website. I have created a separate movie file of photos (a bit like slideshow) with preloader in it (it is working when tested) and imported it into website but the problem is when i click button in website to run photo movie, only loading logo came flashing constantly and nothing comes on afterward so i know i'm doing something wrong.
What has caused this problem and how can i sort it out?
Thanks
Preloader For Another Movie?
Can I have a preloader in movie 1 that prevents movie 1 from continuing until movie 2 is fully loaded (from a loadMovie action)?
Movie Preloader
I'm having a hard time finding a good how-to, or just a nice .fla that demonstrates how to lood an swf. I've made kind of a big project, and I don't have the time to change all "linkings" by inserting a couple of frames in the beginning of my movie.
Any good ideas anyone?
Is It My Preloader Or My Movie?
ok, I have created my flash site, and used the tutorial from http://www.flashkit.com/tutorials/Ac...12/index.shtml to make my preloader.
Now when it works fine offline, but as soon as I view it online, the loader gets to 99% and freezes, whilst the loading bar on the actual browser has only loaded about 1 quarter of the way. The movie itself is only about 120KB, but it does feature extrenal SWF's for each section within it.
I would be really greatful if any one can offer any help or advice on this.
thanks,
Movie Preloader
Everytime I use the LoadMovie command, it automatically shows up what I just loaded.
Is there a way to delay when a movie shows up after loading it w/ the LoadMovie command?
Ideally, what I'd like to do is have a screen for a user filling out options. As the user is working, I'd like to use the LoadMovie command. When the user clicks the submit button, the new Movie loaded would then show up. This way a user wouldn't have to wait from the start to load in a whole movie after they click a button.
Preloader Movie
can some one please put a preload code up that uses bytesloaded etc...? Im using a mac and every example movie I dl it doesnt work. any help would be much appreciated,
J
Movie In Preloader
Is there any way that I can play an external .swf during the preloader? My preloader looks like this:
1st frame:
_root.loading.loadMovie("loading.swf");
totalBytes = Math.round(getBytesTotal() / 1024);
loadedBytes = Math.round(getBytesLoaded() / 1024);
percentDone = Math.round((loadedBytes / totalBytes) * 100);
if (_root._framesloaded >= _root._totalframes) {
gotoAndPlay(3);
}
2nd frame:
gotoAndPlay(1);
All I simply want is for a movie to loop while the preloader is doing it's thing, is this possible? Thanks
The Preloader Scr*wed My Movie
Hi. I had my swf intro in a dreamweaver document. It worked perfect.
Then i modified my fla file to generate a new swf... this time it had a preloader.
I replaced it for the old one and when i tryed the movie, it just stayed blank.
So i changed the preloader for another one. A new tutorial. But it happens the same thing. If i put the old swf (with no preloader) it works well again.
¿¿¿¿????
After Preloader, Then Movie?
Hi!
I was wondering if some of u could help me with "the movie after the preloader with a play button"!
Well... i've made the Preloader, tested it out! But the only thing i can make it load is a picture! Well... that i want is;
- A play button which comes in sight when the preloader is finish with loading a movie or something!
- And when u press on the play button, the movie starts!
I really cant figure how i do that!
So please help me!
How To Use A Movie As A Preloader
Hey all ! just a quick question about preloding a movie. I have my preloader on two frames using get.bytes. Instead of using a boring x corodinate for a loading bar I want to use a movie clip. Lets say for example a glass of water filling up, and its 100 frames. Is there a way to have the bytes loaded equal the point at which the movie is at. So if its at 30% the movie will be at the 30th frame ? Hope you guys can help, thanks !!
Sharpedge
Movie And Preloader
The question goes something like this .
An ultra simple preloader without a graphical interface or even a getBytesTotal looks something like this.
if (_framesloaded>=_totalframes) {
gotoAndPlay (2);
} else {
gotoAndPlay (1);
}
What i'm trying to do is to load a movie into an empty movie clip let's call it Preloader (since that's what it is) and that it plays the preloader completely then only the frames 40-70 of the preloader (I don't know if it can be done but).
Then after the movie is completely loaded it continues to play frame 2 and on.
Is there a simple way of doing this?
[F8] Movie In Preloader
Hi!
Could anyone help me how could roll movie at the begining of flash site.
Like, when someone finds my site(exp.: google), and clicks it should first play movie, which is long about 30 sec, and then load the flash site, i have used Gravity template from flash village, but i just dont know how to first run the movie clip, and then when the movie is over it should load index swf, or i put it index.swf . I would be very thankfull for your help
In Movie Preloader
Not sure if this is the right forum to post in, but;
I'm having trouble figureing out how to make a preloader within a movie. What i'm wanting is for a pre loader that pre loads images before they are displayed.. so i can save the user from waiting from the whole lot to load once the click onto the site..
here is an example of what i'm after : http://www.igloo.com.au
if anyone could point me in the right direction i'd be much apreactive.. i'm still a novice with actionscripting but learning quickly
thank you all
Preloader For CD Movie?
I have made preloaders for the web and they work fine but will NOT work on a CD. I have two rather large movies on CD and access them through a menu.exe on the CD. When I click the menu, the screen goes black while the movie loads...(preloader and movie)...then after about 10 seconds, I see the preloader for about a quarter of a second and into the movie. It apprently wants to load both scenes at once. There MUST be a way to let people know a movie is loading.
IonaMick
Movie Pop Up With Preloader
So I have a quicktime movie (.mov) loading into a java pop up window attached to a button and I want to add a preloader bar. I already made a percentage preloader but the movie does not have it's own page so right now the preloader (in it's own scene) actually plays as the whole website loads.
Here is the java for the pop up window:
on (release) {
// customize the window that gets opened
// 0 equals NO.
// 1 equals YES.
address = "reel2004_low.mov";
target_winName = "reel";
width = 360;
height = 243;
toolbar = 0;
location = 0;
directories = 0;
status = 0;
menubar = 0;
scrollbars = 1;
resizable = 0;
// sends data back to the function
openWinCentre(address, target_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);
}
Could someone help me add the preloader to this window to let the viewer know something is happening because my movie takes about 3 minutes to load, which is another problem on it's own. If anyone has a suggestion for having the movie start loading right as the website is opened so that it's ready by the time they click to view it that would be awesome.
thanks so much
A
Preloader With .swf Movie
So i finally made a preloader with a flash movie but that actual preloader bar doesnt fill up while the percentage is going up. it just stays there like an image. And once the percentage is up to 100% it doesnt play the movie.
heres the .fla file if anyone know what im talking about: http://www.sendspace.com/file/cc375y
thanks very much if anyone replies
bump: please help someone!
Edited: 08/09/2007 at 01:21:07 PM by Ahmed_7
Using 2.0 Preloader For 3.0 Movie?
Hi,
I want to use a preloader that was created in Actionscript 2.0 (because I couldn't figure out how to do it in 3.0) - but the splash page and website are in 3.0. Is there a way to segue from the preloader to the splash page? The preloader uses Actionscript to call Scene 2, but I would like it to call an external .swf file if possible. Can anyone tell me how I could do this? -- Or a better way, that does not involve redoing the loader ;)
Thanks so much!!
Preloader Using A Movie?
Can't fine any info on this, sorry.
How do you use a movie on a timeline as a preloader?
So a movie is placed on the stage and is played 1 - 100 frames like a preloader does.
Here's the code I have now:
ActionScript Code:
bytes_loaded = Math.round(this.getBytesLoaded());bytes_total = Math.round(this.getBytesTotal());getPercent = bytes_loaded/bytes_total;this.loadBarFill._width = getPercent*100;this.loadText = Math.round(getPercent*100)+"%";if (bytes_loaded == bytes_total) { this.gotoAndPlay(7);}
Thanks
Movie With Preloader
first of all i am a newbie.
i have an animation on the intro page with a sound of a man talking and some flashing text, after the whole animation is over, it redirects to the main page of my website.
i want to make a preloader to this intro so that my visitors know how much there are still to load.
i tried to make it the same as described in the tutorial on this site and i was able to do it perfectly. but i didnt know where to add my intro movie. should i make the preloader and the movie in the same file ?? or seperately ??
here is a sketch of the intro animation:
-flashing text while the man talks, with a small skip button that sends the visitor to the main page and skip the intro.
-when man is over talking, the flashing text change to a static text saying that it will be redirected to the main page soon. (here the skip button is gone).
-after 3 seconds of displaying this static text, the main page opens.
sorry this is long, but can someone help me step by step ????
Preloader 4 Every Movie
Hi,
Please can anyone tell me where can I find a tutorial for using preloader for every movie......I mean a way to create a preloader for every loaded swf file >>> exactly like this website
http://www.webfeatsdesign.com/wf5/v5f.html
thank you...
Nora
Preloader For MCs Within Another Movie
Preloader for MCs within another movie...How do you do it!!
I have a movie with 4 swf coming from 4 buttons. How do you make a preloader for all sepearte movies.
Preloader For FLV Movie
Can some one tell me how I can build a simple preloader for an flv file? I am using flash 8 professional and the flv file will be streaming from my website. Thanks.
Preloader Using A Movie?
Can't fine any info on this, sorry.
How do you use a movie on a timeline as a preloader?
So a movie is placed on the stage and is played 1 - 100 frames like a preloader does.
Here's the code I have now:
ActionScript Code:
bytes_loaded = Math.round(this.getBytesLoaded());bytes_total = Math.round(this.getBytesTotal());getPercent = bytes_loaded/bytes_total;this.loadBarFill._width = getPercent*100;this.loadText = Math.round(getPercent*100)+"%";if (bytes_loaded == bytes_total) { this.gotoAndPlay(7);}
Thanks
Old Movie Preloader
I have an idea for a preloader, and I need your help. Instead of making a bar that tells how much info is loaded, I am making one of those old movie intros(you know where there are lines and dots flashing around everywhere). Then when the movie is loaded, I want it to do the little count down from 3 thing and then load the movie. Can someone tell me how I make it just keep bleeping around until the movie is loaded, and then when it is finally loaded, to start the countdown and go to the movie?
Also, what size is too long for a flash site? I dont want my users to be sitting around for 20 seconds just watching blips on a screen.
Thanks fellas
Preloader 4 Every Movie
Hi,
Please can anyone tell me where can I find a tutorial for using preloader for every movie......I mean a way to create a preloader for every loaded swf file >>> exactly like this website
http://www.webfeatsdesign.com/wf5/v5f.html
thank you...
Nora
Load Movie Preloader
ok i am trying to make a jukebox and basically i need to give the user something to watch while a horrendously huge MP3 is loading... i put a preloader in the to-be-loaded swf with the MP3 but it doesn't show... does anyone know the best way of loading a large swf into the current swf? Is there some secret flash technique i can't seem to find anywhere? Someone please help!
Dave
Load .swf Into Movie With Preloader
Hi everyone,
Here's a problem that I'm struggling with.
I'm loading a .swf file into a target mc called 'content' in my main movie.
What I'm trying to do (and having problems with) is to have a 'loading' message display while the .swf is loading.
So far I've tried several varients of the following (including using '.getbytesloaded instead of the '_framesloaded' method), ...
...Setting up the .swf to be loaded with two frame labels, 'hide' and 'show', with a stop action on each.
On the main movie timeline - a loop consisting of:
if (content._framesloaded == content._totalframes) {
content.gotoAndPlay ("show");
gotoAndStop (1);
}
Preloader From Parent Movie
I have a MC on the main timeline which i load other swf's into. I want to know, can i make a preloader in the main movie. Can i say "wait until the movie in the MC has loaded before going to the next frame in main movie."
In other words, i want the script to be in the main movie, not in the external movie.
Multiple Movie Preloader
I am using a PC and it has terrible RAM allocation. I have a presentation that had to be created on 3 seperate FLA's because there is not enough RAM (I have a GIG) to work with all three parts on 1 file. I successfully got all three movies to play consecutively, but there is loading time in between each movie. Can anyone tell me how to create either a preloader or what the action script would be to make each SWF load while the previouse one is playing? Keep in mind that this is 3 consecutive SWF files. I'm basically trying to get rid of the gaps between them.
Preloader With Attach Movie
In my first frame of my flash movie I have some actionscript attaching several instances of the same movie.
The flash file is 13k, and I was just fooling around with making a preloader for my flash movie.
I usually have had no problem creating the preloader, but I am having trouble making the preloader show up in my movie, and I think it has to do with the attachMovie code.
so right now, regardless of if I put a preloader in a new scene and place that infront of the scene1, it will not show up the new preloader scene till the whole flash movie has loaded about 90%.
The same thing happens if i set up a preloader on the same scene just in the beginning to continue to loop until everything is loaded.
can anybody help me with this?
dduck1934
How Do You Make In Movie Preloader?
How do I create a in movie loader like that in http://www.2advanced.com when you click on a menu item? Something that will make sure the next scene or movie clip is loaded before it attempts to play it...etc? Something like the transition shutters from http://www.alientrick.com is what I'm looking for
Can it simply be done with a "If frame is loaded" script command?
any help would be great..thx!
[Edited by k0matoz on 11-24-2001 at 03:15 PM]
Why Does My Preloader Screw W/ My Movie?
I just got done with a simple flash site & put in a typical preloader that converts the byteLoaded/frames ratio to a percentage of 100.
But alas, it messes up everyhting, the clips that contain onClipEvent(enterFrame) for use in animation don't work (strangely enough, all onClipEvent(load) & onClipEvent(data) in the clips do work), & the content clip - which slides from one end to another stays totally frozen.
Should I try loading things by level? I'm really confused.
If anyone's got any input or (dare I say) a different type of preloader lying round their hardrive, could you hit me back?
|