Need Loader Into Loadmovie
on (release) {this._parent.gotoAndPlay("p1");this._parent.loadPhoto.loadMovie("swf/lakeandrock.jpg");}How do I put a loader into the loadmovie?Thanks
Adobe > Flash General Discussion
Posted on: 08/28/2007 06:35:53 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Loader Insid Other Loader,how Loadmovie?
Hello
on the stage i have a loader* that shows a movie,in this movie there is a loader# too. in second loader# there is a button that by clicking it, the movie shown in first loader* must be changed.
please tell me how can i doing this with actionscript.........
cheers
Loader For Loadmovie
i use a percent loader from a tutorial for my site
when i put this same percentloader, in the wovie wich will be loaded with loadmovie, then it doesnt work anymore
does someone has a nice preloader with % wich can be used in a loadmovie swf?
thx
% Loader For Loadmovie?
has anyone got an example of how to display the progress
(in percent) of a loading swf/jpeg?
thanks....
LoadMovie And Loader
I am using a container to load a swf into a scene of my movie when a button is clicked.
For some reason I cannot get this to work!
I have the following code in a button:
PHP Code:
on (release) {
this._parent.container.loadMovie("book/book.swf");
_parent.gotoAndStop("book");
}
When they click on the button, I want them to be taken to the "book" scene and have "book.swf" played. It ~somewhat~ works, but not in the way I wanted it to. When a user clicks on the button, it takes them to the "book" scene, but the "book.swf" file doesn't start. If they click on the button again, then "book.swf" will start.
I have the container on the stage at frame 1.
Can anybody help?
Thanks,
Todds
Pre Loader For LoadMovie: Help Needed
I have a main swf with (10) button icons. Click the icon, it does a unload level20, load new Movie into level 20.
Some of these movies are big enough to warrant a preloader to let the user know that something IS happening while the thing loads.
I'm losing hair over this. I've seen it done on a New York Times photogallery, where they have a number of galleries available in one Flash, but to keep the size down the gallery doesn't load until you select it. You get a 'loading' MC as it loads.
My problem is that I cannot get the preloader to work. I have taken a very basic bytesLoaded preloader and changed the relevant code to _level20.bytesLoaded, etc., but with no joy.
The problem with available preloaders is that they pretty much all assume that you're going to do the preloading before your Flash really starts (frame1). Here, I'm already into frame 40.
What I can't figure out is the order of execution of the commands. For instance, click icon1 :
on (release) {
unloadMovieNum (20); (clears any previous loaded movies)
gotoAndPlay ("movie1_label");
loadMovieNum ("movie1.swf", 20);
}
The content of the 'movie1_label' frame is a MC named DropIn. DropIn has a 'loading >>' image in Frame 1 with the actions:
bytesLoaded = (_level20.getBytesLoaded());
bytesTotal = (_level20.getBytesTotal());
if (bytesLoaded == bytesTotal) {
_level20.gotoAndPlay (1);
}
I have previously tried _root.Play(0), but it didn't work.
Frame 2 has no image, but has actions:
if (bytesLoaded < bytesTotal) {
_root.DropIn.gotoAndPlay (1);
}
So the MC should loop until level20 is loaded.
What happens is that the MC looks like it is completely irrelevant - it looks like Flash is executing the loadMovie first, and by the time it gets to executing the preloader MC actions, the movie has already loaded.
Anyone out there done this before successfully?
TIA,
Nick
Pre-loader Problem With .loadMovie Function
Hi all, I would really appreciate some help with this.
I've created a flash with 6, 7 frames. The first couple of frames are selection queries, each will set up values for variables in root. The last frame has 2 main loop in it; using the selection made in the previous frames, it search through an xml file and create an array. It than uses the array to load various flash files on to the stage (using instance.loadMovie).
Here is my problem, when the flash is search through the xml file and loading other flashs on the stage it freezes. The clock froze until everything get loaded and it jumps to the correct time again, you can't click on any of the buttons...etc. I'm considering to add a pre-loader in the flash but, I'm not sure it'll help if that last frame freezes while is loading anyway. Can anybody explain to me how this happen and if there is anyway of going around this.
Here is some extra info:
1st frame ~ 100K
2nd frame ~ 10K
3rd frame ~ 8K
4th frame ~ 30K
5th frame ~ 8K
6th frame ~ 5K
7th frame ~ 8K
XML file ~ 14K
external flashs ~ 90K to 150K each
Percent Loader For LoadMovie: Help Needed
Here's the skinny:
I have a main swf with (10) button icons. Click the icon, it does a unload level20, load new Movie into level 20.
Some of these movies are big enough to warrant a percent preloader to let the user know that something IS happening while the thing loads.
Q1 - Does the percent preloader go in main.swf or in each of the movies to be loaded? My guess is in main, but I can't get it to work.
Q2 - Any source or tutorials out there that show me how to do this?
TIA
Nick
MX - Loader Movie And LoadMovie Problem
Hi,
I have a website www.lizz.info where I load external swf files into an empty movieclip when clicking a menu button (for instance the audio).
The Audio button will jump in the timeline and load the mp3player.swf into the mp3player dummy clip. While loading a loader2 movieclip is playing. I run an onEnterFrame loop to see when the swf has loaded completely and then remove the loader2 clip from stage.
However, the loader2 in removed correctly, but it takes a few seconds to display the loaded movie....
Does anyone know why?
Setting Up A Loader For LoadMovie JPEGS?
Sorry if the thread title is a little confusing. Here's what I'm looking for help with...
I've been using loadMovie for smaller jpeg images that are used repeatedly throughout different SWF's for a site that I'm working on. I'm doing this for a few reasons... Namely so that it only needs to load once, and then will be instantly referenced between the different SWF files.
This works fine for smaller jpeg images, but I got to wondering; Is it possible to setup a progress bar or some other form of preloader for larger jpeg images. If so, I could see this being an incredibly valuable developmental asset. It would make updating certain sections as easy as swapping out a static image in a directory.
Any insight on my dilemma would be marvelous!
regards,
mike
Double Loader & One Instance Level Loader
Just sharing what I figured out.(which wasn't much but hey figured I'd post it anyway)
TASK1
I needed a preloader to load two seperate MC's into levels 1&2. Level 2 contains the interface which would change the MC on level 1.
TASK2
Once these two initial movies were loaded I then needed a single instance of a preloader that I could call upon for each subsequently loaded movie on level 1.
All the MC's have linkages so standard loaders would not start until 30%-40% of the MC was loaded.
I used a couple of files from oldnewbie.
http://odin.prohosting.com/~oldnew/f...ng/preload.zip
For TASK 1 I used the code from the above file but modified it a little.
I simply duplicated every line that referred to containerMC and called it containerMC2.Then at the end of the script instead of loading a single movie into level 0, I loaded the 2 MC's I had previously loaded into the containers onto levels 1 & 2. There's probably a much better way to do this - but it works
IF ANY OF YOU HAVE A BETTER SUGGESTION OR A WAY TO PRELOAD 2 MOVIES WITH LINKAGES INTO SEPERATE LEVELS WHERE THE PRELOADER MOVES FROM "Currently preloading movie 1" to "Currently preloading movie 2" WOULD BE AWESOME.
For TASK 2 I used another file from oldnewbie (though I can't recall which thread I found it in).
It's a One Instance Preloader for all subsequently loaded swf's.
The button code for loading a movie:
on(release) {
_root.preloader.gotoAndStop(2);
loadMovieNum("One.swf",1)
}
The preloader code:
FRAME 1
stop();
FRAME 2 (where the symbols are - same symbols as in the .zip file above)
this.onEnterFrame=function(){
//trace the percentage of the movie that has loaded
percent=(_level1.getBytesLoaded()/_level1.getBytesTotal())*100;
if(!isNan(percent)){
//trace(Math.ceil(percent)+"% loaded");
if (percent == 0) {
percent_display = "";
} else {
percent_display = Math.ceil(percent) + "% LOADED.";
}
this.loadbar._visible = true;
this.loadbar._xscale = percent;
if (percent > 1) {
this.reelmc._visible = true;
}
_level1.stop();
}
if(percent == 100){
this.gotoAndStop(1);
delete this.onEnterFrame;
this.reelmc._visible = false;
percent_display = "";
this.loadbar._visible = false;
_level1.play();
}
}
stop();
That's it. If you can use it, great.
Simple Loader Fails When Loading In An .swf Containing The Loader.
Sorry for the complicated topic. I got a .swf that loads in other .swfs. Rather than figuring out how to make a loader for loading .swfs I thought I'd just use a simple loader in the .swf I'm loading.
However, it doesn't work. It starts fully loaded but doesn't finish. Heres the AS:
ActionScript Code:
_root.stop();
PercentLoaded = _root.getBytesLoaded()/_root.getBytesTotal()*100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
_root.play();
}
Anyone got a clue? Or would anyone be willing to point me in the direction for a very simple .swf loader.
thanks!
Simple Loader Fails When Loading In An .swf Containing The Loader.
Sorry for the complicated topic. I got a .swf that loads in other .swfs. Rather than figuring out how to make a loader for loading .swfs I thought I'd just use a simple loader in the .swf I'm loading.
However, it doesn't work. It starts fully loaded but doesn't finish. Heres the AS:
ActionScript Code:
_root.stop();PercentLoaded = _root.getBytesLoaded()/_root.getBytesTotal()*100;if (PercentLoaded != 100) { bar._xscale = PercentLoaded;} else { _root.play();}
Anyone got a clue? Or would anyone be willing to point me in the direction for a very simple .swf loader.
thanks!
Loader Page - Web Site Starts Behind The Loader
Hey Everyone...
i ran into a very odd problem... to loader page on this site:
http://www.onefortheditch.com/new/loader.html
works fine, except the fact that it doesnt stop the web site from playing while its loading. the web site plays the splash page in the background while its loading...
Any ideas what would be causing this? I use this same feature on my personal site, and it works fine, so i compared codes, and i cant see anything wrong.
Heres the native files if anyone wanted to check it out:
http://www.onefortheditch.com/loader.zip
Thanxs in advnace!! :)
Random Flv Loader + Radom Swf Loader
so i am making a flv player with an flv ad at the beginning, the main flv in the middle, and a swf ad at the end. the issue i have is that the flv ad at the beginning has to be randomly selected from a short list of flv ads in a network folder and the swf ad at the end is a click-able flash animation that has to correspond with the flv ad at the beginning.
so for example:
i have a video flv and swf ad pair for a window company, a restaurant, and a shoe store. when someone loads the video player, the shoe store flv ad is randomly loaded, the main video plays, and at the end, the click-able swf shoe store ad loads.
does that make sense?
THANKS!
Loader.unload() Not Available When Loader Is Not On Displaylist?
HI
I have a preloader swf file that loads in different swf-s using the same Loader instance.
However before loading in the next swf, I'm trying to call Loader.unload()
But it fails since the Loader object is not on the displaylist...
What happens to the data that is loaded with Loader? Is it replaced when Loader.load() is called next time?
ActionScript Code:
public function contentloaded(event:Event):void{
TweenLite.to(loading_mc, .5, {alpha:0})
cont = event.target.content
addChild(cont)
}
public function loadnew():void{
loader.unload() // Error #2025: The supplied DisplayObject must be a child of the caller.
if(cont){
removeChild(cont)
cont = null
}
showloader()
loader.load(new URLRequest(file))
}
Loader Or Loader Context Problem
I have two swf files, each one almost with the same classes, the most important one is a Singleton class, each swf does "singleton.getInstance()" . The diference is that one swf is like a container and the other one is like a module.
So when the container loads the module from an absolute path like loader.load("file://c:/modules/module.swf") or loader.load("
Using Stage Properties When Loader From A Loader
im doing a preloader that creates a var of the type loader and then loads another swf and add it to the stage with addChild, the problem is that the loaded swf cannot access stage properties and if i try to use them i get a #1009 runtime error, heres the code
----------PRELOADER-----------
var l:Loader = new Loader();
l.contentLoaderInfo.addEventListener(Event.COMPLET E, done);
l.load(new URLRequest("test.swf"));
function done(e:Event)
{
addChild(l);
}
--------------------------------
and heres the test swf that is very simple
--------- test.swf -------------
var N:Number = stage.stageWidth;
trace(N);
--------------------------------
Hope someone can help this is killing me x.x
URL Loader & Loader LIMIT?
I'm trying to create photo gallerys and have run into a problem.
I have about 30 thumbnails that i wanted to load but the loader only loads 18 and the rest give me URL not found errors?
SO my question is does anybody know if there are size limits for the loaders??
Thanks
[loader] Load Jpg With Loader?
Hi, I making my website and trying to load jpg into a movieCLip which will holds all of my loaded jpg images.
I have a MovieClip called "holder"
and I want to load img into this clip. so I wrote
ActionScript Code:
holder.loadMovie("myPic.jpg");
this part I had no problem, but the thing is that How do I apply a preloader to this? I mean if this image is IN the movie, then I can have a preloader in the first frame and load this pic, but the thing is that I'm now loading this images directly from folder, how do I have a preloader for this?...
I tried this
Frame 1 preloader
Frame 2 load Image code...
just...you know what I mean?...when you load a image directly from folder, can you apply a preloader for that?...I stood up so late only because of this question..makes me so awake...HELP!!! I wanna sleep...
How To Loadmovie The Place Iwant? I Have Loadmovie But It Just Take All The Screen
i load a swf and it just take all the space
and my buttoms and others are all been covered
here is how i do it
onClipEvent (enterFrame) {
ifFrameLoaded (1) {
loadMovieNum ("first.swf", 0);
}
}
i put this in the layer called middle where i have put a instance of a w700 h270 movieclip so i can try to loadmovie the same size of it but it just failed
did i miss anything else? i know i did
please tell me~~~~~~~~~~~~~~~~~~~~~
LoadMovie Target Vs. LoadMovie Level
can someone please explain to me why when I load an external movie as a target, the action scripting in the loadedmovie doesn't work.
But if i load the movie into a level it works fine. I want to load into a target beacuse I want it positioned in a specific co-ordinate.
thanks
LoadMovie Calling MC With LoadMovie Problem
I am loading a movie clip into a target MC on my timeline and it works fine, but the movie clip that I'm loading in is also using loadMovie to load a movie into a MC on it's own timeline. For some reason, the MC that is getting loaded doesn't load the MC it is calling on it's own timeline. It works fine when I test it out on it's own, but as soon as I load it in using the first MC, the loaded MC doesn't call the movie clip it's supposed to load.
Any suggestions?
-k
(I said "load" way too many times!)
LoadMovie/loadMovie From Loaded Movie?
I know I know .. messed up heading .. but ..
I have a button that loads a swf into an empty mc (sliderContainerMC)
(release) {
_root.sliderContainerMC.loadMovie("http://www.justinsteiger.com/flash/anims/sliderOpen.swf");
}
That works as advertised. The difficulty comes when I tell the button on that swf to load a new swf into the same MC (sliderClose.swf). Since the swf in the MC (sliderOpen.swf) isn't the same swf (loading into a MC in justinsflashsite.swf) do I need to change the path? Say to include something telling it to load the swf into the parent swf?
Eventually the swf that's called into the empty MC is going to have buttons that are supposed to call up other swf's that load in other empty MC's around the site. HELP?!
Thanks,
Justin
http://www.justinsteiger.com/flash/justinsflashsite.fla (Is the parent swf)
Loadmovie Inside Loadmovie Problem?
Hi,
I have a main movie which use's the loadmovie function to load up an external SWF. But then inside that SWF there is another loadmovie function to load another external SWF into that.
But the problem is that when the first movie is loaded all of its loadmovie commands are disabled.
Is there something i could do to rectify this?
Thanks,
T
Local Loadmovie Ok / Online Loadmovie Bad
I'm at my wit's end with this one. I have an swf that's loading fine locally but refuses to be loaded online. Here's the script. It's in the first frame of the root mc ....
code:
_root.createEmptyMovieClip("slideshow", this.getNextHighestDepth());
_root.slideshow.createEmptyMovieClip("container_mc ", 0);
slideshow_btn.onRelease = function() {
this._visible = 0;
this.gotoAndStop(1);
_root.slideshow.container_mc.loadMovie("temp.swf") ;
};
Loads no problem locally. Nothing when I upload it. I have lockroot set to true in the same frame as the above script. I also tried a simple test with ....
code:
_root.slideshow.loadMovie("temp.swf");
.... in a simple mc containing only a 'slideshow' mc. Works if I access the URL directly, doesn't if I put it in an html page. What mistake could I be making?
thanks
mark
[F8] Need To Change A Variable In A LoadMovie Mc While In Another LoadMovie Mc
So I have a shell mc that has 2 mc's loaded into it with loadMovie (let's call them project1 and project2). While I'm in project1...how do I change a variable in project2 to be true instead of false?
I thought I could do it like this (in Project1...):
myBtn.onPress = function()
{
_parent.dropZone_project2.myVar = false;
}
Nothing seems to be working. Any insight would be greatly appreciated.
Resize LoadMovie Container, Not LoadMovie?
I've searched and searched but haven't found what I'm looking for.
I'm wanting to load different sized .swf into the same field and I want the field to adjust (preferably some smooth transitions for the size change) to fit the size of each different .swf loaded. I've seen it done on quite a few sites but I haven't been able to find a tutorial of any kind addressing this specifically. Can anyone help?
I'm keeping it simple, i.e. thumbnails with titles above or off to the side; click one; the field where the .swf will play adjusts itself; .swf loads and plays. When completed, user can click another thumbnail and the previous .swf will "unload" then the field adjusts for the new .swf and the new one loads. Follow me? Just any tutorial you guys may know of would be great.
Here's the closest example I could find... cool site too. http://www.pollenation.org
Loadmovie Over Prev Loadmovie And Positioning Jpg
Hello, a little question and i have the feeling i am very close.
i use loadmovie to load an image into an movieclip.
that movieclip goes to the position x and y of the movieclip - the loaded image width/2
my problem is that when i load a new image the position is not correct.
my code:
--------------------------------------------------------------------------------------------------------------------
function nextImage1()
{
if (p < total - 1)
{
++p;
if (loaded == filesize)
{
trace(p);
trace("x van inst0"+litlimg_instance.ltlimgmc_instance0._x);
trace("y van inst0"+litlimg_instance.ltlimgmc_instance0._y);
litlimg_instance.ltlimgmc_instance0._alpha = 0;
litlimg_instance.ltlimgmc_instance0.holder.loadMovie(image[p], 1);
var maxWidth = 250;
var maxHeight = 200;
var myWidth = litlimg_instance.ltlimgmc_instance0._width;
var myHeight = litlimg_instance.ltlimgmc_instance0._height;
// Calculate percentage by which image will need to change to fit
if (myWidth > maxWidth){
var xscalePercent = (myWidth*100)/maxWidth;
}
if (myHeight > maxHeight){
var yscalePercent = (myHeight*100)/maxHeight;
}
// Multiply both height and width by the bigger percentage
if (xscalePercent>yscalePercent) {
litlimg_instance.ltlimgmc_instance0._width /= (xscalePercent/100);
litlimg_instance.ltlimgmc_instance0._height /= (xscalePercent/100);
} else {
litlimg_instance.ltlimgmc_instance0._width /= (yscalePercent/100);
litlimg_instance.ltlimgmc_instance0._height /= (yscalePercent/100);
}
var test=litlimg_instance._x-(litlimg_instance.ltlimgmc_instance0._width/2);
trace("width img:"+litlimg_instance.ltlimgmc_instance0._width);
trace("width:2 :"+litlimg_instance.ltlimgmc_instance0._width/2);
trace("x position must be:"+test);
trace("x position is:"+litlimg_instance.ltlimgmc_instance0._x);
trace("----------------------------------------------------");
litlimg_instance.ltlimgmc_instance0._x=litlimg_instance._x-(litlimg_instance.ltlimgmc_instance0._width/2);
litlimg_instance.ltlimgmc_instance0._y=litlimg_instance._y-(litlimg_instance.ltlimgmc_instance0._height/2);
slideshow();
} // end if
} // end if
} // End of the function
function slideshow()
{
function pause_slideshow()
{
clearInterval(myInterval);
if (p == total - 1)
{
p = 0;
firstImage1();
}
else
{
nextImage1();
} // end else if
} // End of the function
myInterval = setInterval(pause_slideshow, 4000);
} // End of the function
p = 0;
--------------------------------------------------------------------------------------------------------------------
what i do is i have an array with the image links.
on a interval i load an image. and if p has reached the number of loaded images i start over again.
i traced the following while testing a bunch of images:
-------
1
x van inst0-125
y van inst0-93.55
width img:250
width:2 :125
x position must be:-125
x position is:-125
----------------------------------------------------
2
x van inst0-125
y van inst0-93.55
width img:258.05
width :2 :129.025
x position must be:-129.025
x position is:-125
----------------------------------------------------
3
x van inst0-129
y van inst0-93.55
width img:140.3
width :2 :70.15
x position must be:-70.15
x position is:-129
----------------------------------------------------
4
x van inst0-70.15
y van inst0-93.55
width img:243.2
width :2 :121.6
x position must be:-121.6
x position is:-70.15
----------------------------------------------------
1
x van inst0-125
y van inst0-93.55
width img:250
width :2 :125
x position must be:-125
x position is:-125
----------------------------------------------------
It looks like he takes the position of the prev image or something like that.
Please some help here.
Greetz. Jacob
Ps: this was some code i posted.. i would like to know how you put it into such a nice code block on the forum so it becomes more readable.
Set LoadMovie Time, UnloadMovie, LoadMovie
in that order-
Put simply-
can anyone guide me to any resources that would explain how to do this?
1. Load 2 swf's into empty mc's (this part is already done)
2. Have those 2 swf's be on the stage for 3 seconds.
3. Unload those 2 swf's.
4. Then load a completely new swf once those have been unloaded.
LoadMovie Talks To Other LoadMovie
ok this is baffling me!
i'm using loadmovie (target movieclip) alot
*main.swf
contains
**buttons.swf
i need button.swf to tell main.swf to loadMovie "contents.swf" into another movieclip.
i thought it would be as easy as:
[this script on button in button.swf]
on(release) {
loadmovie("contents.swf", _root.contents)
}
but of course this loads "contents.swf" into level0 of the current .swf (buttons.swf)
do i use globals or something?
set up ALL scripts in main.swf...
LoadMovie In LoadMovie Won't Work...
So I've been trying to get this loadMovie within an loadMovie to work...with no luck at all...
// This code is in my main 'shell' swf file
myBtn.onPress = function()
{
dropZone.loadMovie("projects/project1.swf");
}
// This code is in the first frame of my project1 swf file in the 'projects' folder
dropZone2.loadMovie("content/contentPage.swf");
Anybody have any insight on this?
LoadMovie Inside LoadMovie
im trying to make a movie clip that loads another swf that in turn loads a movie;
I created A.swf, which contains a movieclip; inside it has a shortshort animation and then loads an image:
loadMovie("image.jpg",_root.Image.PlayerScreen);
//_root.Image is the movieclip
then i created B.swf, wich loads A.swf;
loadMovie("A.swf", _root.PlayerScreen);
the problem is that B.swf loads with no prob, it loads the animation in A.swf, but instead of getting the image, i get a purple square...
any idea what's wrong?
thnx!
LOADER HELP, PLEASE...
I have made a preloader based on the tutorial "advanced flash preloader" by Cathode. It works well except for one problem. When the file finishes loading it jumps to the last scene in the movie, rather than the first
...why?
The action command for the true statement is:
nextScene()
I tried putting a " _root.gotoAndPlay() " in there instead, but it still jumps the gun.
I need to resolve this muchas quickus, any help would be greatly appritiated.
_thanks.
Pre Loader
hi all...
i was wondering how i could use the pre loader from http://www.flashkit.com/movies/Anima...01/index.shtml on a site i was playing arround wif. Plz tell me in detail as i am new to flash thank you
sooner or later i have to learn to make them too
Pre-loader
I have incorporated a preloader into the site and it works fine but....... I have a looping background movie and everytime the background movie goes for another loop the pre-loader kicks in again...any suggestions?
Pre Loader
I am a complete n00b to flash 5. I made my first flash presentation and ist up and running on http://www.csnb.cjb.net adn i want to make a preloader for it so it loads it up b4 it plays it, but i have no idea how to do it. Ne help would be nice
Thx
MC Loader
how does one preload MCs also....If I want to show a loading sequence for a Movieclip....ie a loader bar for a MC how do I do that.Can this be done if the movie clip is directly taken from library rather than placing it on the stage
thanks
Loader Help
does anyone one know a link to a site that tells how to make a loader? I've been having troubles with this for awhile!
Loader
can anyone help me with my code:
this is the code of my "menu" MC:
if(loading){
if ( _root.film.getBytesLoaded() == _root.film.getBytesTotal() ){upperMenu = true;}
else{_root.menu.upperMenu=false;}
_root.createEmptyMovieClip("loader",2);
with(_root.loader){
beginFill(0x000000);
lineStyle(1,0x000000);
moveTo(614,340);
lineTo(614,360);
lineTo(700,360);
lineTo(700,340);
lineTo(614,340);
}
}
if(upperMenu){
if(this._y>=hb){this._y-=5;loading=false;removeMovieClip(_root.loader);}
else{upperMenu=false;loading=false;}
}
AND THIS OF FUNTION laden(activated by a button):
MovieClip.prototype.laden=function(knop){
film.unloadMovie();
switch(knop){
case "info":loadMovie("info.swf",film);break;
case "event":loadMovie("event.swf",film);break;
case "fotos":loadMovie("fotos.swf",film);break;
case "label":loadMovie("label.swf",film);break;
case "forum":loadMovie("forum.swf",film);break;
case "contact":loadMovie("contact.swf",film);break;
}
_level0.menu.loading=true;
}
what I want is to load a one swf for each button. and to make a preloader in actionscript. what the problem is, is that the if(upperMenu){... plays, while it is not supposed to. this means if I click a button, an swf starts loading, but I don't see the "loader" MC (black square), and the Menu Mc jumps up by 5.
I don't know If the problem is clear, but I could sure use some help.
Pre Loader
i hate actionscripts,
can some one please send me a really precice tutorial on how to make a preloader that contains :
loading bar
percentage
total kilobytes loaded and left
please, i really want it
thanx
ps. i use flash 5
Loader
I made a loader and it loads fine, but when I test it out, it doesn't show the loader, which tells bytes loaded and bytes total, until it reaches like 30%! why?
Pre-loader
how do i make a preloader with the persons connection
Loader
for some reason it just goes in a loop?
this part is in the first frame,
txtPercentage = Math.round((_root.getBytesLoaded()/_root.getBytesTotal())*100) add "% loaded";
tellTarget ("loader") {
gotoAndPlay (Math.round((_root.getBytesLoaded()/_root.getBytesTotal())*100));}
this part second frame,
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
nextScene ();
} else {
gotoAndPlay (1);
}
and the % text does'nt show.
can u help!
http://www.digitdan.co.uk
check it out
Pre Loader
how do i make preloaders and how do i get them into my movie. are they seperate movies in themselves?
Loader,
how can i do a loader bar.??
thanks
Loader For Swf
Is there a way to make a loader for an swf you are going to "load movie"? And I mean by not putting it directly in the swf you are loading.
Pre-Loader?
How do I Create a pre-loader that says the % anda has a bar to tell the progres of the movie download???
|