Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Preloading Load Movie Problem


Morning all

I have a peloader for my movie which is shown below. My question is:
Can I alter it to be a preloader for my load movies? When this is on
the loaded movies it only works when they're played individually. When they load into my main movie they don't work!!!!

Frame 1:

Code:
loadpercent = "0%";
loadBytes = "0 of "+Math.round((_root.getBytesTotal()/1024)*1000)/1000+" Kb";
Frame 2:

Code:
loadPercent = (Math.floor(_root.getBytesLoaded()/_root.getBytesTotal()*100)+"%");
loadBytes = (Math.round((_root.getBytesLoaded()/1024)*1000)/1000+" Kb of "+Math.round((_root.getBytesTotal()/1024)*1000)/1000+" Kb total Loaded.");
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
loadPercent = "100%";
loadBytes = (Math.round((_root.getBytesLoaded()/1024)*1000)/1000+" Kb of "+Math.round((_root.getBytesTotal()/1024)*1000)/1000+" Kb total Loaded.");
gotoAndStop("main", 1);
}
Frame 3:

Code:
gotoAndPlay(2);
Your help is much appreciated

Regards
Sy




ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 08-16-2004, 09:01 AM


View Complete Forum Thread with Replies

Sponsored Links:

Preloading Movie Load
Hi All,

I have a button with AS telling it to load an external SWF, it takes a minute to load, I was wondering how I can make a percent preloading on the status of the external movie load.

Thanks in advanced!

View Replies !    View Related
Preloading Movie Load
Hi All,

I have a button with AS telling it to load an external SWF, it takes a minute to load, I was wondering how I can make a percent preloading on the status of the external movie load.

Thanks in advanced!

View Replies !    View Related
Load A Movie Clip While Preloading Another Clip
I'm trying to ceate an animation movie clip and preloading a video while the animation plays. once the animation finishes, it would play the video. How do i do that?

View Replies !    View Related
Preloading .swf Before Preloading Main Movie
Ummm

Things are getting complicated lol

I have my main movie going ..AND I actually managed to get a pre-loader working ...

and it's all ok as long as you have adsl or cable connection - otherwise it is REALLY messy.

The main .swf uploads onto the web .. but the secondary swf have not yet loaded .. and so it is all out of synch .. if you wait a while and refresh you get it ... but argh it is horrible .....

so .. is it possible to block the preload of the main movie until it has preloaded its secondary swf's ??

I should imagine it's recoding the actions AGAIN .. can any one get me started please ..

Is this often a problem if you add swf to a main movie ???

tyyyy all

julia

View Replies !    View Related
Preloading Load Movies
I have a few swf's that I'm loading into certain targets at different stages throughout a movie. The load movies take a few seconds to load up. I was wondering if its possible in these few seconds could I have a preloader or something to make the screen a bit more interesting rather than just a black part of the screen showing and how to do this. Anyone???

View Replies !    View Related
Preloading Sections With A Load - Bar?
Hey guys,

I've created a large site with about 12 scenes in it, and I wanted to have a preloader percentage bar that shows the percentage of loading a particular scene.

In this instance, due to size and other reasons, loading the entire site in one hit is not preferable.

So how can I show the percentage loaded of a single scene, or a few scenes? Showing a percentage loaded is my main concern.

An example site :

Preloader 1
Home scene 25k
Theories 32k
Downloads 15k
Contact 5k
Folio Button (opens next scene, starts Preloader 2)

Preloader 2 (shows percentage of 200k folio scene created)
Folio 200k

Preloader 3 (same as preloader 2...)
Illustration 150k

Preloader 4 ...
Photography 200k

And so on...

gatorage





[Edited by gatorage on 07-09-2002 at 02:11 AM]

View Replies !    View Related
Preloading .swf Files That Load Into An Empty Mc
hello,

i just made a flash site using this tutorial


http://www.kirupa.com/developer/mx/full_site.htm
and basically i have an empty mc that loads external .swf files. However they are quite big and my site suffers from it ..

I have seen all the tutorials on preloader for the if frameloads .. etc.. obviously that wont work for me here..

can anyone point me to a tutorial that will show me how to make a preloader that will preload while all the swfs are downloaded so that you dont have to wait to download them when you click on the button?

to see what I mean go to
http://www.granronde.com

any help would be greatly appreciated ! thanks

View Replies !    View Related
[F8] Preloading Preventing FLV To Load. Urgent Help Please
Hi everybody,

I have a problem with a FLV file. There is a FLV playing at frame number 90.

With a help of a cue point, when the video reaches at a certain second, main timeline continues to play from frame number 91.

Everything was working properly until I made a preloader for my whole flash file.

After the preloader, when I test movie with ctrl+enter, everything stops. Whenever I hit ctrl+enter again everything begins to work fine.

Please help. I have a little time to finish this.

You can find the file at the following link:

http://www.aysecelemdesign.com/clients/ccz/Site.zip

View Replies !    View Related
After Preloading Jpg, LoadMovie Still Slow To Load Jpg
I have made four or five jpg and swf preloaders successfully so I can get through the code but I'm not aware of all of the little problems. In my most recent preloader, I watch the progress bar move along but when the main movie opens and I click on a button to load a JPG, the jpg takes a second or two to download again before it is displays. Here is the code I use for the preloader:

else {
loader.loadClip(pagesVars.path+pagesVars.code+"_"+ ipic+"_0.jpg", "holder");
loader.loadClip(pagesVars.path+pagesVars.code+"_"+ ipic+"_1.jpg", "holder");

and the button to load the movie does this:

image_base.image_load_into_3.loadMovie(pagesVars.p ath+pagesVars.code+"_"+target+"_3.jpg");

image_base.image_load_into_2.loadMovie(pagesVars.p ath+pagesVars.code+"_"+target+"_2.jpg");

during my troubleshooting, I replaced my preloader and loaded a jpg using loadMovie to a visible clip in the main movie so I could see that the correct jpg was preloaded. Even while looking right at the loaded jpg, when I clicked on its corresponding button it took a second or two to download and display in another area. The 2nd time I click that button, the JPG loads instantaneously. Am I missing something obvious here?

Kevin

View Replies !    View Related
Preloading Wont Load File
Ive read a lot of stuff on the preloaders, but obviously not enough because the one type I want to work doesn't. Its for a website. I want to load the new swf from inside a symbol on the timeline, as it does an animation. So I made an empty MC on the main movie timeline and put it on frame 6 so theres nothing else on it. Ive tried a variety of codes.


ActionScript Code:
_root.holder.loadMovie("index3_4E.swf");

My empty clip on frame 6 is called holder, so why doesn't it play it? If I move the empty clip to frame 1 it plays the clip, but not all of it and it has the main movie behind it and I dont want to show that page, thats the whole point in using the empty mc's isnt it? I feel I have tried tons of variations but am missing something important. I tried it without a movie clip, but it doesnt align properly even though the movie was the exact same size.

View Replies !    View Related
Controlling & Preloading Load Movies
Oh, I am so stuck on this. How can I make load movies talk to each other? I've worked out how to have a main movie telling other swf's what to do, but is it possible to have these loaded swf's talk back to the main movie? What I've done is load the movies into blank movie clips with instance names. This way I can use tell target to target them with my actions. What I'd love to be able to do is have the 'loaded' swf's tell the main movie to perform an action. Is this possible?

And is it possible to control loaded movies with actions when they are on different levels and not targets. For example, can you say tell target "level 3" goto frame 4. And can a movie on level 3 tell a movie on level 0 to perform an action.

Perhaps I'm going about this the wrong way. What I'm trying to do is have a preloader for my site that doesn't proceed until the loaded movies are 100% loaded into cache. I tried in one of the load movies an action along the lines of:

"if last frame of this loaded movie is loaded, tell target ../ (main movie) to goto and play rest of site"

the reason I thought that ../ would work is because the swf is loaded into a symbol with an instance name. Normally when inside a movie clip you can use ../ to target the main timeline of the site.

If anyone could help me out, i'd appreciate it.

thanks.

View Replies !    View Related
Preloader Not Accurately Preloading...huge Lag Time While Browser Tries To Load
i'm using a preloader that I have used many times before...and has always worked. However for some reason, it's not workng properly now. When i load the url in my browser, I get a completely black screen (blk is my background color) for quite some time, until eventually my preloader pops up for a second and then the main part of my movie appears. (then loads in 1st external swf with home page content).
I assume that the long lag time i am seeing is the time it takes for the file to load into the browser....isn't that what a preloader is for?? So at least there is some indication of what you are waiting for?
One last thing: my main swf file is HUGE!! I can't seem to figure out why. My swf is 2.4 MB. MY SWF!!!! the FLA is 5.4 MB. To me...that seems rather large, and there really is nothing to make it that big. I use external swf's for my content to keep file size down....i don't get it....
Can I get a little help from someone...anyone.... please?
thanks in advance....

Here is the code from my preloader scene, from here it goes to Scene 1. My preloader is 3 frames, my main movie (Scene 1) is one frame. I'm working in MX2004Pro on a G5:

Frame 1.)
code: fscommand("fullscreen", "false");
play();
//////////// 1st Sound /////////////
transForm = new Sound();
transForm.attachSound("transSound");
transFormVolume = 75;
transForm.setVolume(transFormVolume);
///////////// 2nd Sound ///////////
staticTV = new Sound();
staticTV.attachSound("static01");
staticTVVolume = 50;
staticTV.setVolume(staticTVVolume);
///////////// 3rd Sound ///////////
laser = new Sound();
laser.attachSound("laser01");
laserVolume = 50;
laser.setVolume(laserVolume);

Frame 2.)
code:
// percent_display is the name of dynamic text box showing percentage of movie loaded
percent_display = (int((_root.getBytesLoaded()/_root.getBytesTotal())*100)+"% loaded . . .");
// Check to see if the movie is loaded.
if (_root.getBytesLoaded() != _root.getBytesTotal()) {
// If not, loop to the previous frame.
prevFrame();
} else {
// If loaded, play movie
play();
}

Frame 3.)
code: stop();
gotoAndPlay("Scene 1");

My Progress Bar mc has this script inside it's 2 frames:
code:
// in frame 1
setProperty(this, _xscale, (_root.getBytesLoaded()/_root.getBytesTotal())*100);
play();

// in frame 2
prevFrame();

View Replies !    View Related
Can The Load Movie Action Be Used To Load A Specific Frame Of A Movie?
can the load movie action be used to load a specific frame in a movie?

View Replies !    View Related
Preloading A Movie But Not Playing It While Another Movie Is Running
I need a few tips on how I make sure some flash movies are preloadet while the first movie is played, so they can be ready to be played when chosen without having to wait for them to load then.

Got any ideas to get me started in the right direction please?

View Replies !    View Related
Preloading A Movie Being Called From A Main Movie
Hi,

I am running a main movie called home.swf which has buttons that call other SWF file say MOVIE1.SWF into an empty holder, called menu1_holder, then positions and displays it. This all works fine.

The problem I get is when I call that MOVIE1.swf it does not use the preloader that is in movie1.swf properly - it just hangs on a black screen then displays 100% for a bit then loads the actual movie. However, when I actually just call it stand alone in it's own HTML file, the pre-loader works just dandy.

This is the code for the pre-loader, which works a treat - Note, it uses frames not scenes as this home.swf movie calls all other movies into it as required.

onClipEvent (load) {
_xscale = 0;
}
onClipEvent (enterFrame) {
_xscale = 100*(_root.getBytesLoaded()/_root.getBytesTotal());
if (_root.getBytesLoaded()/_root.getBytesTotal() == 1) {
_root.nextFrame();
}
_root.percent = Math.floor(100*(_root.getBytesLoaded()/_root.getBytesTotal()))+"%";
}

Any help would be greatly appreciated.

Thanks

PJ

View Replies !    View Related
Does Load Movie LOAD Entire Movie, How Can I Stream It?
i have a load movie loading my music. I have a preloader at the front of my music, but i dont think the preloader is working on load movie. Does the load movie command download the whole movie into cache, or does it just start playing the movie.

IE.. if i have a 5 meg mp3 that i wanna dled and listen to, is it just downloading the whole thing, until the movie is loaded, and then playing, or is it streaming it in?

i tried to make a preloader for it, but it looks like the preloader just instantly zooms across... how can i show status of this movie loading?

thanks

View Replies !    View Related
External Movie Will Not Load, But Does Load When I Use 'test Movie'?
I had my external movies loading wonderfully then all of a sudden one of the externals (that I use 'loadmovie' on) will not load? The weird thing is that when I test my movie using 'test movie' in my main movie, it works fine, but when I go to my staging (test) site: www.gbebos.com/Liz/Hit.htm the one movie in 'Earth elements' page will not load, but the other movies i.e. 'Crystal Elegance' and 'Silver Essence' work fine. I made sure that the .swf and .html were transfered to the domain and they are both there.

Any help for this newbie would be greatly appreciated!

Thanks again to ya all at Flashkit!

gbebos

View Replies !    View Related
How Do I Stop My Second Movie Load Clearing My First Movie Load?
Hi,
Working on a home page where a swf movie loads and plays on the timeline.
The problem is when the second swf movie loads and plays further along the timeline the first swf movie disappears...I want it to remain on my stage!

Any ideas?

Cheere Jim

Here is the code I'm using to load the swf movies:

this.createEmptyMovieClip ("emptyClip",this.getNextHighestDepth());
emptyClip.LoadMovie(...swf");

View Replies !    View Related
Preloading MCs Into A Movie
k people, i really need some help..i'm tired, it's late and i need to get this done.

i have an interface which i am making. It has a preloader and loads fine, but when i try to load a MC into the movie, the preloader does not work properly. I have tried multiple differnt preloaders..some show the percentage load, but then the movie wont play, which others load the movie without the preloader, and once it has loaded it flies through the percentage and loads the movie. it u dont know what i mean u can take a look at http://www.inertiaweb.com.au/mark/oc...ctanesite.html
just try the home button at the moment..notice the long pause where the movie is loading itself, but not using the preloader?..how do i fix it?

my buttons are simple just
on (release) {
loadMovie("main.swf", _root.Main);
}


and the movie that is getting loaded in has the preloader-
in the first frame:

if (_root.getBytesLoaded()>=_root.getBytesTotal()) {
_root.gotoAndPlay("loaded");
}
percentLoaded = Math.round((_root.getBytesLoaded()/_root.getBytesTotal())*100);
loadingText = "Loading content..."+percentLoaded+"%";

and in the next frame:

_root.gotoAndPlay("check");


well, if you can help it would be greatly appreciated...

View Replies !    View Related
Preloading Movie
I'm developing interactive teaching movies to be run on local machines on campus. A lot of the PCs here are 233mhz and below and I'm finding that the movies take a few minutes to begin functioning.

What I would like is to put some kind of preloader script on the first keyframe, and I would want it not to proceed to the second keyframe until the entire movie is ready to play.

Also, it would be cool to have a little "loading..." animation playing while the movie loads.

Is that possible?

View Replies !    View Related
Preloading A Movie
On a simple preloader you can have a bit of scrip like:


Quote:




ifFrameLoaded ("End") {
gotoAndPlay ("Go");
}{




However, this only works if you are inside the movie that has the script on. Is it possible therefore to check if a frame is loaded on a seperate swf before performing an action.

For example, load this movie, ifframeloaded "end" gotoandplay frame 2 of the new movie, if it isnt, goto and play 1.

Can someone explain in plain english as im not great at actionscrip. thnx.

View Replies !    View Related
Preloading Movie?
In Firefox and IE my flash movie in a table on a page is all white until they load a large portion how do you get the loading screen to pop up immediatly were not talking about a large file. What I get right now is a black background and then a white table cell until the movie loads.

View Replies !    View Related
Help With Preloading A Movie
I am new to actionscript, but I have a very large swf file that I would like to play on a website. Right now since the file is so large it takes about 30-45 seconds before the page will even load.

I was told that it is possible to start playing the begining of the movie while the rest of it is still loading.

If anyone knows how this can work I will really appreciate the help and I am also open to any other ideas.

Thanks

View Replies !    View Related
Preloading Movie Swf One After Another
hi, i can't seem to find any tutourials in preloading several movie swf files one after another or preloading one swf to 30percent than another starts and another one start when 60percent is preloaded. I hope you guys understand what i am trying to say.
thanks in advance.

View Replies !    View Related
Preloading Movie In As3
How to preload a movie in as3? Is it just non-existing? Loading external files seems documented - but the old fashioned _root.getBytesLoaded etc, just can't find it anywhere. Anyone got a suggestion?

View Replies !    View Related
Preloading In A Movie
Greetings!!

I'm new here so hope everyone is totally in good health and enjoying yet another awesome day.

I got a problemo on a project that i'm doing. I forgot to make a preloader on a movie and did it after I completed a movie. I'm having trouble displaying it on the website for some reason as a result of that.

in my movie I cannot make it all layers into a single movie clip since i have a bunch of layers with motion tweens. I'm attaching my fla file and a little walkthrough to get to the preloader, its on the preloader layer, click on the logo_mc one while on the stage, and hit F9 to see the code.

I would totally appreciate your assistance.

View Replies !    View Related
Preloading A Movie?
Using the basic approach located here http://www.kirupa.com/forum/showthre...223798&page=24 to load a .swf, I'm left with property access errors in the .swf I'm loading. I have a published .swf with a document class that works fine on its own, but when loading it into another .swf, it doesn't work. I'm assuming it has something to do with the document classes in both files? Hopefully this made sense.

View Replies !    View Related
Preloading Movie Swf One After Another
hi, i can't seem to find any tutourials in preloading several movie swf files one after another or preloading one swf to 30percent than another starts and another one start when 60percent is preloaded. I hope you guys understand what i am trying to say.
thanks in advance.

View Replies !    View Related
Preloading More Than One Movie
Hello,

Is it possible to preload more than just the current movie in one preloader? I would like to also preload a few other movies, let's call them movie1.swf, movie2.swf and movie3.swf, at the same time, so that when the progress bar reaches 100% all those movies are loaded as well. Is there a way to do that?

here is my preloader script:

ActionScript Code:
onClipEvent(load){
 tF=getTimer()+1000
 bI=_parent.getBytesLoaded()
}
 
onClipEvent(enterFrame){
 porcentaje=int( _parent.getBytesLoaded() * 100 / _parent.getBytesTotal()) + "%"
 tA=getTimer()
 if( tA >= tF ){
  bA=_parent.getBytesLoaded()
  bT=(bA-bI)
  tR= int((_parent.getBytesTotal()-_parent.getBytesLoaded()) / bT)
  for(sR=tR; sR>=60; sR-=60 ){
   i++
  }
  for(mR=int(tR/60); mR>=60; mR-=60){
   i--
  }
   hR= int(tr/60/60)
 
  sR= (sR<10) ? "0"+sR : sR
  mR= (mR<10) ? "0"+mR : mR
  hR= (hR<10) ? "0"+hr : hR
 
  tR= hR+":"+mR+":"+sR
 
  tit=(bT<1000)?" bytes" : " kb"
  bT=(bT<1000)? bT : int(bT/100)/10
  tF=getTimer()+1000
  bI=_parent.getBytesLoaded()
 }
 //datos_esp= "porcentaje: " + porcentaje + "<br>descargado: " + int(_parent.getBytesLoaded()/1000) + "kb<br>kb total: " + int(_parent.getBytesTotal()/1000) + "kb<br>velocidad: " + bT + tit +"/segundo<br>tiempo restante aprox.: " + tR
 //datos_ing= "percentage: " + porcentaje + "<br>downloaded: " + int(_parent.getBytesLoaded()/1000) + "kb<br>total kb: " + int(_parent.getBytesTotal()/1000) + "kb<br>speed: " + bT + tit +"/second<br>time left: " + tR
 //datos=(_level0.idioma eq "esp") ? datos_esp : datos_ing
 if(ir<>1 && _parent.getBytesTotal() == _parent.getBytesLoaded()) {
    _parent.gotoAndPlay(2) ;
    ir=1}
}


Thanks!!

View Replies !    View Related
Preloading A Movie
Thanks you for your help Rollershade, here is something else for anybody.

1. My main page has a movie clip that loads my second page which has a second movie clip.

2. In the second page, the movie is to long so I wanted to preloaded because of an mp3 song.

3. This is what I have done now, I divided my movieclip of the second page into two scenes. The first scen has only one frame, it is an instance of a movieclip that simply says "loading...". And also that frame has an action property that is:

ifFrameLoaded ("scene 2","end") {
gotoAndPlay("Scene 2","start");

}

Now should this work??? What I want is the scene one will display "loading..."
until scene two is done and after that play scene2. Now what I find it does it stills shows the screen empty and it plays the movieclip afterwards without seeing scene 1 because it is only in one frame so you don't have time to see it. I don't mine not seeing my scene one as long as the animation is loaded instantly but not have the page loaded and wait there without seeing my scene1.

My question is as follows, is my scene1 one not loading because it is part of my movie so it also waits for it to be loaded? if that is the case then my solution is fairly simple. But I will not ask for it because maybe someone will tell me what did I do wrong. www.prideimage.com

You can view the animation there. First page calls the second page. Second page should have the "loading..." scene until scene 2 is complete but you just see nothing until the movie is ready. Any suggestions or answers

Thank you in advance. I appreciate it!!

View Replies !    View Related
Preloading A Movie Inside Another Movie.
I already sort of posed this question, but I think I can be more clear on where I am stuck.

I was given this piece of code as a better direction in which to try to solve my problem.

var movieLoader = _root.createEmptyMovieClip('mL',2);
movieLoader.onEnterFrame = function() {
percent = (_bytesLoaded/_bytesTotal)*100;
if(_bytesLoaded==_bytesTotal) {
delete this.onEnterFrame;
}
}
movieLoader.loadMovie('CorCapSm.swf');

This is all fine and good and the swf loads inside I suppose the "parent" movie. Problem is, how do I tell flash "this is the file I want to load, preload it first, and play it once it is totally loaded"

For some reason the if statement if(_bytesLoaded==_bytesTotal) {
isn't really keeping the movie from running before it is fully loaded...anyhow, if somebody knows a good tutorial or can shove me in the right direction, that would be great, thanks

Caden

View Replies !    View Related
Chromeless Windows That Open On Movie Load Or Load Of Html Page (Flash Ad Kit)
Hi guys,

I was wondering if someone could help me out in creating these flash ads that appear out of nowhere. I see them mostly on rediffmail, yahoo and about.com.
I know how to create a popup window on button click, but how you do that without a button.

There's another dimension of ads nowadays. They are the transparent ads. They really look cool. Could someone with this knowledge pleeeeeeeeese help me out. I urgently need to create these ads.

Regards,
designable

View Replies !    View Related
Chromeless Windows That Open On Movie Load Or Load Of Html Page (Flash Ad Kit)
Hi guys,

I was wondering if someone could help me out in creating these flash ads that appear out of nowhere. I see them mostly on rediffmail, yahoo and about.com.
I know how to create a popup window on button click, but how you do that without a button.

There's another dimension of ads nowadays. They are the transparent ads. They really look cool. Could someone with this knowledge pleeeeeeeeese help me out. I urgently need to create these ads.

Regards,
designable

View Replies !    View Related
Scrollpane - Load Swf - Load Movie Symbol Controled By Buttons And Variables?
Ok i have searched the board, and racked my brain and read hundreads of bit and pieces. So far 'not happy jan'. Anyhow I thought well I shall start a thread where first I ask a question of 'can it be done' then go away try and do it and if fail 'ask how to do it' or if suceed then say 'how i did it'. Of course all questions are going to relate back to this original post so no new threads need to be started. Anyhow onto my question!!

I have a website I want to make. so I started... called it 'site.swf'. now site.swf has a scrollpane in it called 'content'.

Now I have also created 'home.swf' which has 2 movie symbols in it. one called 'homein' the other 'homeout'.

'Homein' is located in frame1 of home.swf and 'homeout' is located in frame2.

When site.swf loads I want to load home.swf into 'content' and home.swf plays 'homein'.

When the user clicks on the first button (in site.swf) 'content' plays 'homeout' before loading 'button1.swf' into 'content' and playing 'button1in'

see the pattern forming. Now I am sure this has been asked thousands of times, but I haven't found it once. At least in a form that is easy to understand.

Now can this method be done, or do i need to go away and rethink it. (my main reason for loading external.swf's is because i wish to preload where needed).

If all this can be done tell me now... I am sure I need to use 2 variables.... 'loadedmovie' and 'tobeloaded' to communiticate with 'content' and to follow the users clicks of buttons.


Thanks for any help.

Trent

View Replies !    View Related
Movie Taking Long Time To Load, Needs To Load Faster
I am a loading several movies into level 2 of the main movie. The movie is taking up to 1.35secs to load. The issue is that the images are too big. Can I do something about the movie itself or do I need to compress the images more?

View Replies !    View Related
(mx) Transfering Actions Which Load With Movie To Load When Button Is Pressed
hi,

I have some code which draws a line when the mouse is pressed (to when it is released)

This code is within an object, loads when the movie starts and works fine:


Code:

// ***** Set some opening parameters
onClipEvent (load) {
// Make original line invisible
_root.line._visible = 0;
// Initiate some variables
number_lines = 0;
line_active = 0;
}
// ***** Every time the mouse button is released...
onClipEvent (mouseDown) {
// Get the position of the mouse
origin_x = _xmouse;
origin_y = _ymouse;
// Increase the number of lines by one
number_lines++;
// Generate a new line name
name = "line"+number_lines;
// Duplicate a new line
_root.line.duplicateMovieClip(name,number_lines);
// Position the line's end point at mouse position
_root[name]._x = origin_x;
_root[name]._y = origin_y;
// Update line length / orientation
_root[name]._xscale = _root._xmouse - origin_x;
_root[name]._yscale = _root._ymouse - origin_y;
// If this is the start of a new shape
if (!line_active) {
// Set the line tracking variable
line_active = 1;
// Set the start point of the new shape
start_x = origin_x;
start_y = origin_y;
}
}

onClipEvent (mouseUp) {
line_active = 0;
}

// ***** Every time the mouse is moved
onClipEvent (mouseMove) {
// If there's a line currently being drawn...
if (line_active) {
// Update line length / orientation
_root[name]._xscale = _root._xmouse - origin_x;
_root[name]._yscale = _root._ymouse - origin_y;
updateAfterEvent();
}
}
I want the user to press a button before this code is usable - just as with any drawing program.

How do i go about telling the code only to start when the button has been pressed?

thanks,

jeff

View Replies !    View Related
Load A Xml File That Contains Urls - Want 2 Load A Movie Instead Of Open URL Links
i'm just wondering how does one go about to load an xml / text file into a text box.. this text file - has url links.. or a href tags.. how do i change it such that the url links can call actionscripts instead of opening the window to a url..

does that make sense?? if it still doens't - go to www.praystation.com

if you click on the "news" section - his urls open/load movie clips how do i make something similar to that

thanks

View Replies !    View Related
Load Movie...Park/Play...Load A Button Into Level
Okay, I tried the Park/Play tutorial in order to load a movieclip and have a button on the stage that controls the main movie. Problem is that I have a background that covers up my button which is in level0. My movie clip is in level1. How do I bring that button out in front of the background? Do I load it into level2? If so, how do I do this?

Thanks alot,
Roger

View Replies !    View Related
Preloading Movie While Another Plays?
Hey. I have a main MC that is quite large. I created a separate .swf that holds my loading screen animation. Is there anyway to pre-load the main MC while the loading screen .swf plays, and then when the main MC is finished loading, to load the main MC on top of the loading screen .swf? I hope this makes sense... I've been trying to figure it out all night. Any help woul dbe greatly appreciated.

cheers
john

View Replies !    View Related
Preloading Music And Movie
How do I preload music w/ a movie? I looked for it in tutorials but it only showed me how to preload music. How do I integrate the music preload w/ the movie preload so they can preload together. Thanx in advance.

View Replies !    View Related
Preloading Movie Clips
How do preload a labeled frame within a movieclip? I have tried using Tell target but it doesn't allow me to use if frame loaded. I have also tried putting my preloader in the first frame of the movie clip I am loading but flash seems to load the whole clip in before playing, instead of streaming it.

View Replies !    View Related
Is Preloading Movie Specific?
can i preload the contents of one movie in a different movie? or is the content chached for each movie seperately?

Cheers,

Tom.

View Replies !    View Related
Preloading A Movie While Sending Var Using GET
Hello,

I have a perfect external preloader loading a movie into a target and after the whole thing is loaded we say loadMovieNum ("file.swf",0);

It works....BUT

I have some variables that I want to send to my "file.swf" and If I do something like this: loadMovieNum ("file.swf",0,"GET") the movie starts to download again after my preloader is finished!!!

This gives me 2 times the amount of lodingtime :-(


So, how do I pass there variables to the movie I'm preloading??


Regards

Godowsky

View Replies !    View Related
Preloading Flash Movie?
I'm trying to preload the content of my movie using If frame loaded but it's not working.
Is there a way to preload the movie within the movie. Instead of having to use an external .swf

View Replies !    View Related
Preloading Different Parts Of The Movie....
Hey this might be a really dumb question, i'm not sure, but anyways can someone tell me how to preload only the basic structure of the site at the start and then later when you click on the navigation buttons it takes you to another preloader and loads that section, so it's only loading the stuff needed? I've seen it done on like all the good sites i visit now, but i don't know how to do it myself, can someone plz help me???
Thanx

View Replies !    View Related
Preloading Screws Up My Movie
Alright, I've spent 4 hours trying to figure out why this is screwing up my movie. Basically, I'm using a getByesLoaded preloader, and it works fine. Then, I get to my movie, I click on a state, and it enlarges then disappears (it should enlarge, then shrink to the corner and load text). I've uploaded the movie to http://www.joltdesign.net/states/states.fla for you to look at, as I don't want to explain the whole movie =) Don't worry about the missing text files, they won't help you.

Oh, one last thing... the movie works fine without the preload scene, but once you place it back in the lineup it ruins it.

Help!

Trevor Smith

View Replies !    View Related
Preloading Different Sections Of Same Movie
hello you,

i have a 3 meg .swf file that contains 6 sections...

instead of preloading it all at once, which would take a while, i want to split it up so that each section preloads as you enter it.

how do i do that?

i'm guessing i have to create 6 different .swf files (one for each section) but then how do i link them together?

your help is appreciated.
thanks

View Replies !    View Related
Preloading Swf's Into Main Movie
Hello...I think this is a fairly simple one...but I can't get it to run properly....I have a main movie called movie4.swf and I have several swf's I want to preload in the main preloader, I have tried code like this and inserted it into a plain movie called "blank":

onClipEvent (load) {
loadMovieNum ("cottages.swf", 1);
loadMovieNum ("bungs.swf", 1);
loadMovieNum ("rates.swf", 1);
loadMovieNum ("rates2.swf", 1);
loadMovieNum ("specials.swf", 1);
loadMovieNum ("contact.swf", 1);
loadMovieNum ("links.swf", 1);
loadMovieNum ("motel.swf", 1);
loadMovieNum ("plain.swf", 1);
}

but it doesn't seem to load in anything...these movies are very small but almost take a minute to load in any help would be appreciated...sorry if I don't reply straight away but I am on the other side of the date line.

Thanking you in anticipation

View Replies !    View Related
Preloading Movie Clips?
Hey guys,
I am in desparate search of a way to create a preloader in a function that is declared on the main timeline, and to use that preloader to load all of the movie clips in my scene. Is this possible?
Thanks guys.
Don
Any help would be great appreciated.

View Replies !    View Related
Preloading Only A Part Of A Movie?
Hi all
I'm searching for a BAR PRELOADER that only preloads a part of a movie. I have a scene with 20 photos (472 KB) and I would like to preload, let's say, the first 3 photos with a bar preloader and have the rest preloaded using the ifFrameloaded action while the user is still busy seing the first 3 photos. In other words, to begin to show the movie before it is fully loaded. Is that possible? How?
I'm able to do this with ifFrameloaded but I'm completely lost at how to insert a bar preloader just for the frames I want to show initially.
Any help appreciated

View Replies !    View Related
Preloading Movie Problem
Hi All! I'm having problems with a preloader for a very big file. This file is for a CD project I've almost finished. The problem is that the file is huge (~90mb) and it hangs when I autorun it from the CD for quite a while. I'm trying to build a preloader that'll work, but I'm having some problems. How do you go about building a preloader for something like this?

I was thinking of making a small exe file that is the preloader and have it load the main movie. Can this be done? And how?

Thanks in advance!
HD

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved