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




Having Trouble Preloading Large .swf



I have created a flash movie, 2 scenes (Scene 1 the pre-loader and Scene 2 the main movie). Scene 2 contains three layers on one frame—background, content and actions. The content layer has 7 layers across 10 frames, six of the layers have numerous movie clips. The pre-loader keeps playing until the whole .swf has loaded, when the movie plays everything works as planned.

I want users to start viewing the movie after the bios layer on frame 2 in the content mc has loaded, but, I can't get it to work. I have spent many hours trying without success. I am self taught and have no one where I live to help me with this. I need to complete the site by tomorrow for a new job prospect, I would like it to work properly. I don't want users to have to wait until the whole thing has loaded.

Here is the actionScript for the pre-loader:

Actions Layer Frame 1 = ifFrameLoaded ("Scene 2", 1) {

gotoAndPlay("Scene 2", 1) }

Actions Layer Frame 60 = gotoAndPlay("Scene 1", 1);

The .swf is 1.8mb and the .fla is 4mb
Using Flash MX 2004

If someone could look at the .fla and help me out I will be grateful.

Thanks for your help...Colin



FlashKit > Flash Help > Flash ActionScript
Posted on: 12-08-2004, 07:12 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Preloading Large Swf Question
Hi everyone!

I have a question about preloading large files. We wish to preload large “swf” files (1 to 30 meg) videos with a stop in the first frame. If a preloader is created can it monitor the frames being loaded in the target movie then tell it to play after a certain amount of frames been loaded?

Mucho thanks!

Preloading Large .swfs
Hello all,

I have a main.swf file which has a variable that loads 6 quite large photo based transitions (approx 50kb) in and out of the movie.

They work fine and they look good on say a 4 meg line, but on a slower connection and if the internet is being a little slow they lag a bit. Once they are cached they run smoothly:

http://www.start-london.com/

As you can see from the link there is an intro page.

Is there a way that a I can preload the transitions while this intro page is showing? Or even on the first transition that loads into the main stage?

Or how do I display a loading graphic/movieClip between these transitions?

Ideally I guess I would have both a preloading function and a loading bar...

Thanks for any help in advance.

Henry

Preloading A Large File (i'm Getting An Hourglass)
Hi,

I'm creating an important flash CD, and I'm getting into some problems in the loadMovie area. Basically, what's happening is this: I am using a small projector file to load external swf files which contain embedded video (so file sizes ranging from 20MB to 80MB); when I use the loadMovie command, the movie eventually loads, but an hourglass is displayed and all animations that were going on stop until after the movie has finished loading. What I'm trying to do is create a preloader for these swf files, either inside the swf file, or in the projector. I've made many a preloader before, and here I've tried a simple two frame loader in the swf files, and many different actionscripting preloaders in the loading projector. But once the loadMovie command is called, the movie freezes until it is fully loaded; the first frame of the movie doesn't even show or get played, and neither does any call to a simple blinking "loading" text I have in the loader file.

Does anyone know how to get this to work? I kknow it can be done. I recently saw a band's enhanced CD (that uses Flash Player 6 projector file) that has a small loading projector file, and an 80MB external swf file. This file is loaded into the projector, but the projector doesn't stop playing a simple blinking "loading" animation.

Any help is greatly appreciated, and if you have other suggestions as to how to load the swf file, please tell. Thanks,

-Anand Anbalagan

Preloading A Large Text File
i have this problem,
i created an actionscript that searches a text file for a number and displays some data related to the number.
the problem i have is that it is a big file, takes too much time to load, when someone clicks the search button, one might think it's not working, because it takes time to load the whole text file and search thru it.

so,
is there a way to preload the text file at the begining of the movie to the cache(with the movie preloading) so that when someone searches data is displayed instantly??

thanks in advance for your help

Problem Preloading Large Swf Files
Hi All,

I am developing a CD presentation in Flash.
My flash presentation contains a lot of video files, and during some of the video files
I need actions to be performed during playback ( such as highlighting topics etc )
So I found that I had to embed my video files (mov) in swf files, and then load
the swf files into the main flash movie for playback.

I load the files using the loadClip function ( also tried the loadMovie function )

I need to preload these files as some of them are quite large ( 20 - 50 MB ).

The problem is that when I press "Load Movie" in the main flash movie,
the whole movie "freezes" or "hangs" until the whole movie is loaded, and it just plays
the preloader quickly ( Ive tried SO SO many preloaders with onEnterFrame actions, getBytesLoaded etc,
i ve tried having the preloader in one scene as the video and in the same, it just plays quickly thorugh the preloader)

Ive also tried the onLoadProgress function in movieClipLoader class, but it just dosent
do anything while the clip loades.

I've tried getting the loader object to work, but that too "freezes" when I try to load the movie,
and just skips right to 100% when the movie starts playing.

I;m starting to get lost for ideas here guys,
Anyone with some suggestions ??

Im am running Flash MX 2004 Pro

Cheers

Arve

Problem Preloading Large Swf Files
Hi All,

I am developing a CD presentation in Flash.
My flash presentation contains a lot of video files, and during some of the video files
I need actions to be performed during playback ( such as highlighting topics etc )
So I found that I had to embed my video files (mov) in swf files, and then load
the swf files into the main flash movie for playback.

I load the files using the loadClip function ( also tried the loadMovie function )

I need to preload these files as some of them are quite large ( 20 - 50 MB ).

The problem is that when I press "Load Movie" in the main flash movie,
the whole movie "freezes" or "hangs" until the whole movie is loaded, and it just plays
the preloader quickly ( Ive tried SO SO many preloaders with onEnterFrame actions, getBytesLoaded etc,
i ve tried having the preloader in one scene as the video and in the same, it just plays quickly thorugh the preloader)

Ive also tried the onLoadProgress function in movieClipLoader class, but it just dosent
do anything while the clip loades.

I've tried getting the loader object to work, but that too "freezes" when I try to load the movie,
and just skips right to 100% when the movie starts playing.

I;m starting to get lost for ideas here guys,
Anyone with some suggestions ??

Im am running Flash MX 2004 Pro

Cheers

Arve

Preloading A Large First Frame In A Movie
hello guys,
i was working on a website involving a few 200kB images. one of these images form a the first frame of the movie (thats excluding the preloader frame) because of which the preloader does not appear untill the full first frame has been laoded. also the rest of the frames form only another 50kB in size. so it kind of takes a long time to load the prelaoder progress bar or progress text.
so does any one have a solution to have the preloader do the intended job?
also using loadMovieNum or loadMovie or movieclip.loadmovie methods is it possible to load an external file inbetween two layers in the main movie ?

Trouble With Large Amount Of XML Data
hi here is the code i use in frame 1 to create, load, parse and display my xml file.

xml layout is this:
</techno>
<entry id="1">
<latest>0</latest>
<artist>Autechre</artist>
<album>Draft 7:30</album>
<label>Warp</label>
<year>2003</year>
<genre>0</genre>
</entry>
</techno>

actioscript is this:

function myOnLoad (success) {
if (success) {
dataxml = "";
list = new Array()
loadTxtBox();
}
}

function display(){
var n = 0;
// while (n < list.length){
while (n < 10){
dataxml = dataxml + list[n][1]+" - "+list[n][2]+" - "+list[n][3]+" - "+list[n][4]+"
"
n++
}
DisplayModule.listDisplay = dataXML;
}

function loadTxtBox () {
var i = 0;
var j = 0;
var k = 0;
var l = 0;
while (i < xml1.firstChild.childNodes.length) {
liste[l] = new Array()
if (xml1.firstChild.childNodes.attributes.id != null) {
j = 0;
k = 0;
while (j < xml1.firstChild.childNodes.childNodes.length ) {
if (xml1.firstChild.childNodes.childNodes[j].nodeName != null) {
list[l][k] = xml1.firstChild.childNodes.childNodes[j].toString();
k++;
}
j++;
}
l++;
}
i++;
}
display();
}

if (getTimer() < 100000) {
xml1 = new xml ();
DisplayModule.listDisplay = "Loading data...";
xml1.onLoad = myOnLoad;
xml1.load("techno.xml");
}

stop();


simple enough, everything works fine with 10 entries but i have 348 entries to parse and display. The infamous alert appears saying the script could render the application unresponsive.

Now tell me, are my methods efficient? Could they be the cause of my trouble or do i have to rearrange the xml file template? Maybe i should segment the file, if so whats the best way to do it? xml is great but is it for large file?

thanks

Preloading A Large Child Mc That Is Contained In 1 Frame Of Timeline
Hi,

I am wondering if anyone can help me, I have the following code for my preloader mc in flash mx,

onClipEvent (enterFrame) {
framesLoaded = (Math.ceil (( _parent._framesloaded / _parent._totalframes) * 100));
gotoAndStop (framesLoaded);
info.text = framesLoaded + "% completed";
if (framesLoaded >= 231) {
_root.gotoAndPlay (2);
}
}
This does not seem to work. I have in my second scene a mc clip named firefly which has 15 layers and 231 frames long , however it occupies only 1 frame of the timeline in scene 2 (a child mc?).

Is this where my problem lies? if so, how do I transfer the frames/layers of my firefly mc into the second scenes timeline so the loader will work.

any help would be appreciated.

Preloading Large (400+kb) Movies And Eliminating The Delay While Library Loads
I read something about this before, but can't quite remember, my problem is I am building some fairly large game applications, and when the preloader runs, under 56k speed, nothing is shown for 15 seconds while the library loads (65kb), then you see the first frame. I know I can use a loader swf and load my game swf into it and that would solve the problem, but is there anything else I can do.

Thanks

Preloading Trouble ?
Hi there..

I'm having trouble with my preloadong movie !
When I view the 'main' movie in flash using the 'show streaming' option the external file loads into the holder without preloading ??
I can't figure out why ??

Any help with solving this one would be great !

I've had to attach the main movie here and the second part below part below...

Preloading Trouble
Hi there..

I'm having trouble with my preloadong movie !
When I view the 'main' movie in flash using the 'show streaming' option the external file loads into the holder without preloading ??
I can't figure out why ??

Any help with solving this one would be great !

I've had to attach the main movie here and the second part below part below...

[F8] Trouble Preloading A Flv
Having trouble preloading a flv file with a preloader. Here's the following code, I have the main page main.swf and a home.swf that loads up in a loader once main.swf is finished loading. I've preloaded the home.swf file but cannot seem to preload the flv file as well. I am absolutely stumped, I'll paypal anyone however much if can help me with the problem. PM me...

-----

import mx.transitions.Tween;
import mx.transitions.easing.*;
stop();
var nc:NetConnection = new NetConnection();
nc.connect(null);
theVideo = vid.theVideo;
var ns:NetStream = new NetStream(nc);

theVideo.attachVideo(ns);
theVideo.smoothing = true;
ns.setBufferTime(100);


playButton._visible = false

playButton.onRelease = function() {
ns.pause();
this._visible = false;
home.pause._visible = true
}

pause.onRelease = function() {
ns.pause();
this._visible = false;
playButton._visible = true
}

rewindButton.onRelease = function() {
ns.seek(0);
ns.stop();

}

this.createEmptyMovieClip("vFrame",this.getNextHig hestDepth());
vFrame.onEnterFrame = videoStatus;

var amountLoaded:Number;
var duration:Number;

ns["onMetaData"] = function(obj) {
duration = obj.duration;
}

function videoStatus() {
amountLoaded = ns.bytesLoaded / ns.bytesTotal;
loader.loadbar._width = amountLoaded * 465;
loader.scrub._x = ns.time / duration * 465;
}

var scrubInterval;

loader.scrub.onPress = function() {
vFrame.onEnterFrame = scrubit;
this.startDrag(false,0,this._y,465,this._y);
}

loader.scrub.onRelease = loader.scrub.onReleaseOutside = function() {
vFrame.onEnterFrame = videoStatus;
this.stopDrag();
}

function scrubit() {
ns.seek(Math.floor((loader.scrub._x/465)*duration));
}

var theMenu:ContextMenu = new ContextMenu();
theMenu.hideBuiltInItems();
_root.menu = theMenu;



function pauseIt() {
ns.pause();
}

function stopIt() {
ns.seek(0);
ns.pause();
}

function restartIt() {
ns.seek(0);
}

_root.createEmptyMovieClip("vSound",_root.getNextH ighestDepth());
vSound.attachAudio(ns);

var so:Sound = new Sound(vSound);

so.setVolume(100);

mute.onRollOver = function() {
if(so.getVolume()== 100) {
this.gotoAndStop("onOver");
}
else {
this.gotoAndStop("muteOver");
}
}

mute.onRollOut = function() {
if(so.getVolume()== 100) {
this.gotoAndStop("on");
}
else {
this.gotoAndStop("mute");
}
}

mute.onRelease = function() {
if(so.getVolume()== 100) {
so.setVolume(0);
this.gotoAndStop("muteOver");
}
else {
so.setVolume(100);
this.gotoAndStop("onOver");
}
}

ns.play("justwow_VP6_1Mbps.flv")
ns.onStatus = function(info) {
if(info.code == "NetStream.Buffer.Full") {
driveIn.bufferClip._visible = false;
}
if(info.code == "NetStream.Buffer.Empty") {
driveIn.bufferClip._visible = true;
}
if(info.code == "NetStream.Play.Stop") {

ns.seek(0);
ns.pause();
var tw:Tween = new Tween(vid,"_alpha",Strong.easeOut,vid._alpha,0,1,t rue);
tw.onMotionFinished = function(){
vid._visible = false;
iLoader.loadClip("home.swf",myLoader);

}


}
}

Preloading Swf Trouble 2
can you have a look at this...

http://www.adriemooi.nl/downloads/bambooinn_fla.rar

The problem is that when you hit "menu" the .swf loads in fine, but the pictures won't load. I don't understand why...

Thanks.

Preloading Swf Trouble
I have a wierd problem regarding loading an swiff in a empty movieclip. It's a alpha problem. When the swf loads it get's stuck in a certain amount of alpha, my guess is 10. Anyway, I find this hard to explain so here is where i have the .fla to check out. The item "menu" doesn't work properly.

http://www.adriemooi.nl/downloads/bambooinn_fla.rar

There's no use of _root, wich i try never to use. I say this becouse the use of _root often is the problem in errors in loading an external .swf

Preloading Large Files And "Running Slowly" Error
I am preloading a large swf using an external preloader based around a MovieClipLoader. For a large file (3MB), I sometimes get the message "A script in this movie is causing Macromedia Flash Player to run slowly.". The preloader is obviously not computationally intensive at all (just changes the width of a small mask on the screen), I can see the processor isn't stressed. It's just the long load that seems to trigger this message... and yet, I've seen people preload large swfs before (e.g., cartoons, etc.), so it must be possible. Maybe I should stay away from the MovieClipLoader and just do a loadMovie, polling for progress...

Any thoughts on this would be greatly appreciated.

Linkage And Preloading Trouble
I have made this flash, multimedia thing that lets the user compose their own frame... lots of gifs etc. bout 400k, so i need a preloader. I have made and know how to make a preloader for most things but because I have used so many movieclips that are exported for actionscript into the first frame(linkage) I cant get a preloader infront of it. even if I put preload code in a seperate scene infront of my main scene it still wants to load all the clips first. If i dont export them for action script in the first frame my buttons are dead and there is no linkage at all??????????????? help

Trouble Preloading External SWF
On my main timeline, I have a movieclip called 'gallery'

on the first frame of gallery, there is a loadMovie to load an external SWF to level 3. it is in a conditional that only allows this to happen once.

on the second frame, I have the following code, which is supposed to preload the swf coming in on _level3. It is not working, however... any ideas? It seems to be failing in the if condition statement.

if (_level3.getBytesLoaded() < _level3.getBytesTotal()) {

// load gallery images
gallerybytesTotal1=int(_level3.getBytesLoaded()/_level3.getBytesTotal()*100)
galleryloadBar._xscale=gallerybytesTotal1;

//action
gotoAndPlay(1);
}

Trouble Preloading Preloader
I posted this problem in the general flash topic area too, but it is actually an actionscript question. Attached is the kirupa xml image gallery which I have added a preloader to (in the real version, graphics have been attached to the gallery interface)

When I attach the preloader, the IMAGE preloaders stop working. I'm sure this is a quick fix, but I need BOTH sets of preloaders to work.

Thanks in advance

nlaffan

Trouble With Preloading Xml Content
hej peeps,

after working my way through some tutorials and searching on the forum,
i still have a question concerning preloading some xml content.

i'm trying to copy a movieclip called "containerMC" based on the data in my xml file.
the "containerMC" contains a movieclip (instance name "image") in which i load a picture using this script.
the script is placed on frame1 of the mainstage.


PHP Code:



myXML = new XML();
myXML.ignoreWhite = true;
myXML.onLoad = function (success) {
mainNode = this.firstChild;
if (success) {
for (i=0; i<mainNode.childNodes.length; i++) {
theClip=_root.attachMovie"containerMC", "containerMC"+i, i);
theClip._x = theClip._y = 0;
theClip._y += 350*i;
theClip.image.loadMovie(mainNode.childNodes[i].childNodes[0].firstChild.nodeValue);
theClip.textClip.textContainer.text = mainNode.childNodes[i].childNodes[1].firstChild.nodeValue;
            
};
};
};

myXML.load("images1.xml"); 




this works just fine .. but i want every image to be preloaded seperately
(i hope this makes sense).

i figured that i have to create a preloader movieclip inside the "containerMC"
only i'm at a loss where i put the code for my preloader ... and which code to use.


i hope someone can help me out or point me in the right direction,

thnx in advance,

odin

Empty MC Preloading Trouble...
Well i searched the forums, and although I found several posts with virtually the same problem as I am having, none of them came with a solution. My problem is this:

I have a main movie, with a preloader at the beginning. I am then loading external swf's into an empty mc at frame 10. These external swf's have their own preloaders attaches. They all work on their own but when combined, the preloaders get stuck somewhere and load both at the start of the main timelines loading.... I want the preloader for the main swf to load only the main swf content, and the other one to wait until frame 10 to start.

Ive heard several people that just say add a preloader at the beginning of ever swf and it will work, but it doesnt. Ive played around with _root and _parent to try and correct the situation but cant seem to figure it out. I can post fla's if you would like...

Thanks!

Trouble Preloading Preloader
I posted this problem in the general flash topic area too, but it is actually an actionscript question. Attached is the kirupa xml image gallery which I have added a preloader to (in the real version, graphics have been attached to the gallery interface)

When I attach the preloader, the IMAGE preloaders stop working. I'm sure this is a quick fix, but I need BOTH sets of preloaders to work.

Thanks in advance

nlaffan

Preloading Music Trouble
The sites I use audio in seem to load the audio first then the loading screen is displayed after the audio is loaded. How do I preload the loading screen then load the audio after, so I dont get this pause before it shows the loading screen. The way I have been attaching the audio to the site is

mySound = new Sound();
mySound.attachSound("backMusic");
mySound.start("", 999);

Here is the code I used for the loading screen. I just have a scene called loading then another scene which holds the site

totalBytes = _root.getBytesTotal();
loadedBytes = _root.getBytesLoaded();
remainingBytes = totalBytes - loadedBytes
percentDone = int((loadedBytes/totalBytes)*100);
bar.gotoAndStop(percentDone);
if (_framesloaded == _totalframes) {
nextScene();
}

Trouble Preloading External .swf Files
Hi all,

I have a problem with the preloader of the external .swfs loading into my main movie. I found no way to put a common preloader for all externally loading files, so I just gave each external movie a preloader.
But see what it does: www.air-tecm.com

The pictures and content have preloaders.
I used Flash 5 for it and IE 6.0. The code to load the preloader:
frame1
loadtxt = "0%";
frame2
loadtxt = (Math.floor (_root.getBytesLoaded() / _root.getBytesTotal() * 100) + "%");

if (_root.getBytesLoaded() == _root.getBytesTotal()){//Check for finished loading
//If loaded, final update to fields
loadtxt = "100%";
gotoAndStop ("main", 1);
}

I thank you in advance for your help.

Trouble Preloading Multiple .swf Files
Hello-

I've been banging my head against a wall trying to get a preloader that preloads multiple .swf files into an empty clip while a preloading animation/counter runs, but it's not working properly and I'm just mangling the code. I could really use some help. Here's what I've got going:

stop();


mcLoader = new MovieClipLoader();
loadListener = new Object();
mcLoader.addListener(loadListener);
mcLoader.loadClip("GMWEB_NIKER.swf", loader_mc);
mcLoader.loadClip("GMWEB_E4.swf", loader_mc);
mcLoader.loadClip("GMWEB_MONO.swf", loader_mc);
mcLoader.loadClip("GMWEB_adiO.swf", loader_mc);
mcLoader.loadClip("GMWEB_ASIMBA.swf", loader_mc);
mcLoader.loadClip("GMWEB_SUGAR.swf", loader_mc);
mcLoader.loadClip("GMWEB_TS.swf", loader_mc);
loadListener.onLoadStart = function() {
loader_mc.stop();
};
loadListener.onLoadProgress = function(loadTarget, loadedBytes,
totalBytes) {
preloaded = Math.floor(loadedBytes/totalBytes*100);
loaderText_txt.text = preloaded+"% loaded into "+loadTarget;
bar_mc._yscale = preloaded;
};
loadListener.onLoadComplete = function() {
loaderText_txt._visible = false;
bar_mc._visible = false;
gotoAndPlay("meat",1);
};

//

I have this all running in a scene called "preloader", with my main content timeline in a second scene called "meat". It seems to run the preloader for just long enough for the byte count of the preloader
scene to load and then jumps to the next scene, and then the .swf files are not cached and take a while to show up. Help! TIA.

Trouble With Preloading For Flash Gallery
Go to this link to see what I mean:

http://www.philleith.com/BJ.html

The images are loading but the preloader is saying "100%" with a full bar as if they are taking no time to load. If you look at the third photo, it it takes a little while to load and the preloader says the same thing -- so I know there is a problem. What it SHOULD do is have an increasing status bar and percentage as it loads in.

This works fine when I run it in flash when I Simulate Download, but for some reason when I put it up online, it gets weird.

If anyone knows what may be causing this, please enlighten me I would much appreciate it

Trouble With Sound Library/sub-movieclips/preloading
I'm building an application in MX that needs to use a fairly large library of sounds that are exported for actionscript in the first frame (as per the default linkage settings) and the movie won't display the first frame until it finishes downloading all the sound data.

I tried building a preloader file that would load my application into a movie clip, but the sounds would never play from inside the clip. I'm never referencing the _root in any of the script, so I'm not sure where the problem is. I can't figure out how to even check to see if the sound files are being attached to the sound object when I call them or if it's simply doing some sort of stopallsounds command at random.

I have also tried loading the application into the root level of the pre-loader but even though the sounds work properly when I do it, the preloader graphics are all wiped out as soon as the application begins to load and I'm stuck leaving users with a blank screen until all the files finish loading.

Does anyone know of a problem with defining a sound object inside of a movie clip (I tried setting them all to _root also and that had no effect either) or is there some problem with referencing an externally-loaded library if it's not in the main timeline? I would have just spread out all the sounds on different frames but the whole point of the application is to make it simple to dump a bunch of sound files into the library without having to attach them to specific frames.

How Large A Large Of A File Justifies A Preloader?
I want to know some or your thoughts
How large a file justifies a preloader?

How Large Is Too Large For A Movie These Days?
Hi, we're developing our portfolio site which will have a LOT of images that must be very high quality. So to keep quality up I know we have to sacrifice file size (or vice-versa).

We've divided each of the sections of images into separate movies so there is usually less than 8 images per movie. That way someone would only need to wait if they clicked to see a specific movie.

- My question is: What is considered 'large' for a movie file in these days of broadband?

We are not planning on having preloaders for the individual movies, and would like them to come up pretty quickly (so no sluggishness or blank screens). I'm also looking into how to have the movies loading in the background so that there would be less or no delay once they are called up.

As an example, one of our larger sized movie tests showed a size of around 350k for med-high quality, and about 750k for really good quality. We prefer to have the quality of the latter, but don't want people to get frustrated waiting.

On our local med-fast broadband (3.0Mb/Sec DSL) the large movie loads up pretty much instantly and looks great. But we don't want to alienate anyone.

THANKS!

How Large Is Too Large For Flash File?
My flash file is already almost 1400 KB, and it's not even close to being done.
I realize this is obviously way too large for a flash website.

As a result, I have to start using the Load Movie action script method.
I hate to think I have to take this thing apart. I am new to loading external movie clips. It seems like a pain!

At what size do you realize that your flash is too large? Have you ever had to take something apart in order to do load movie clips?

Having Some Trouble With Loading, "preloading", And Playing Sound...
Not sure whats going on here. I am completely novice so please excuse my code examples. Well, here goes...

Use the media player...
Download Source...

Occasionally(not everytime, but enough to feel quirky) when i load the movie, the actionscript to preload the sound does not work. any suggestions?

also need to know how i would create a bar that says how much of the song has played. i assume that it would be similar to the preload bar(in theory) but dont know how to get the song length or how much of the song has played into a variable

How Large Is Too Large These Days?
Hi, we're developing our portfolio site which will have a LOT of images that must be very high quality. So to keep quality up I know we have to sacrifice file size (or vice-versa).

We've divided each of the sections of images into separate movies so there is usually less than 8 images per movie. That way someone would only need to wait if they clicked to see a specific movie.

- My question is: What is considered 'large' for a movie file in these days of broadband?

We are not planning on having preloaders for the individual movies, and would like them to come up pretty quickly (so no sluggishness or blank screens). I'm also looking into how to have the movies loading in the background so that there would be less or no delay once they are called up.

As an example, one of our larger sized movie tests showed a size of around 350k for med-high quality, and about 750k for really good quality. We prefer to have the quality of the latter, but don't want people to get frustrated waiting.

On our local med-fast broadband (3.0Mb/Sec DSL) the large movie loads up pretty much instantly and looks great. But we don't want to alienate anyone.

THANKS!

How Large Is Extremely Large?
And how many thousands of lines of code? 2,000 lines of code isn't that much.... Does the compile failure occur continually, or is it random?

quote:Unfortunately, there is no unique number that qualifies as too much. However, this issue is known to happen with Flash applications made up of thousands of lines of code, numerous very large objects, or a great number of small classes.

http://kb.adobe.com/selfservice/viewContent.do?externalId=kb405257&sliceId=2






























Edited: 10/23/2008 at 01:23:52 PM by cayennecode

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

LoadMovie Trouble Trouble Troubles
hello,

i'm having a little bit of trouble here trying to load multiple movies into the same container. not all at one time. like this:

when a button is clicked this happens in my preloader clip which is located in my _root movie:

********************************
// set vars
sectionMovie = _root.currentSection + ".swf";

// un/load movie
unloadMovie("_root.SectionContent");
loadMovie(sectionMovie, "_root.SectionContent");
********************************

then the next frame of the preloader says:

********************************
// get the percent of the movie loaded
bytesLoaded = _root.sectionContent.getBytesLoaded();
bytesTotal = _root.sectionContent.getBytesTotal();
percentLoaded = int((bytesLoaded / bytesTotal)*100);

// if it's loaded then continue
if (percentLoaded == 100) {
this.gotoAndStop (1);
}
********************************

it all seems like it should work. i click "button1" which loads "movie1.swf" perfectly. then i click "button2" and it will unload the movie fine, but it just stops when it gets to "loadMovie"... anyone know what is happening?

thakns in advance for the help, it's a school project...mwaahaha!

xo

"Oooooh Trouble Trouble..." (Foghat Reference +1000 Points)
I am attempting to add X movie clips to the stage via script, with follow AI behaviors added to each of them. But for now I am just having them immediately start moving left until they hit the stage edge OR eachother...which is the problem.

I cannot get them ALL to stop when they collide with somehting else on the stage...

the way I atempted to solve this problem was to start an array... a list... and to add to that list the name of every object I add to the stage when I add it to the stage. So before ANYTHING moves it loops through this array to see if it is hitting anything else on the stage. Sounds simple right?

Well it seems to only work for the LAST movie attached in my function.

I have attached the script to this post. Please take a look, provide some help, give me some alternative ideas, tell me a good joke :-P, just gimme some feedback. Thanks in advance to anyone who even tries to help.

What Is Too Large?
What is too large of a flash site for people with 56k modems?

I've Got A Large One
Well I've got a large one, well actually 10 large ones, all around the 150K/190K size.

Now is this far to large for the seperate swf's to a site i'm making??

What is the norm for file sizes on swf, can you give me a roundabout figure,

It's a bit of a vague question yes, but my swf's are taking maybe just a tad to long to load on my 56K modem, I'm going to probably need to start giving them a bit of a shaving!!

thanks for reading

Large .fla
i recently saved a large .fla (372 mb), my first major go at flash, and now the file will not open becuase it is the wrong format? or alternately:"windows cannot find <file location> .Make sure you typed the name correctly and try again."

i never changed the format and put about 60 hours of work into this site based on vintage video and sound equipment that plays short experimental films.

any advice? any other way to open the file other than recent docs. and the desktop location? do trial flash programs limit file size?

To Large
When I watch my flash website on my own computer its fits the screen perfect, but when I watch it on some other computers its get very large, and you have to scroll down to watch the whole site. How to fix this? I want the flash to scale in orginal size on all computers. The address to my site is: http://www.joakimmarkussen.com

Large Pop Up
Hey.
I was wondering how you launch a popupwindow so that it goes fullscreen and only has the close minimize and restore functions left in the right corner.
(if no way in flash javascript will do too)
Thanks

//VoS

SWF Is Too Large
Hello,

I have a problem. I am designing a flash page, somekind of interactive desktop with monitor, speakers, mouse... I made all this components in flash and put them together (no animations jet). But the expoted SWF size is to large. SWF without animation just this vector graphics is 2.5MB large, and I still have to make external SWFs linked to this main.

Is there anything for me to do, that will decrease SWF size??
What about preloader, that would show the procentage loaded??

Thanks,
Jure

Why So Large?
i have a photo album i made. its a preloader (xtremely small), and 11 pictures. They are all 72 Dpi 320x240 pixel JPG's in pretty low compression (I.E higher file size).

i imported them, and made them into symbols from start.

it seems there is no difference if the JPG quality slider is on 100 or 20 it's still 2,6 Mb.

Is this because i made them into symbols before i compressed them, and the JPG slider does not affect a symbol??

Large Pop Up
Hey.
I was wondering how you launch a popupwindow so that it goes fullscreen and only has the close minimize and restore functions left in the right corner.
(if no way in flash javascript will do too)
Thanks

//VoS

Large Flv
I have a 300 mb FLV file and it is not playing. Is that too large for Flash to handle? It is playing right off my desktop so there is no worries of streaming from a server. I am using a Flash 8 media component.

Any help is appreciated, thanks.

Chris

Why Are GIFs So Large
I'm exporting a GIF from Flash. Its a simple animation, but is exporting to a 500K file. Why is this? Have you guys experienced the same thing?

thanks
Paul

Large Swf's Not Loading
Got a bit of a problem. Putting together a music video in flash and have one master swf load 18 smaller swf's. Each small swf is between 300k and 800k. For some reason, only 5 swf's are loading in the master, the rest fail to. On their own the individual swfs run just fine, and the code for loading movies is the same format on all of the files, whether they're currently working or not. Could it be because of the overall file size? Is there possibly another problem I'm not aware of? This is time sensitive, if anyone could get me a quick reply I'd be most grateful.

Large Swf's Not Laoding
Got a bit of a problem. Putting together a music video in flash and have one master swf load 18 smaller swf's. Each small swf is between 300k and 800k. For some reason, only 5 swf's are loading in the master, the rest fail to. On their own the individual swfs run just fine, and the code for loading movies is the same format on all of the files, whether they're currently working or not. Could it be because of the overall file size? Is there possibly another problem I'm not aware of? This is time sensitive, if anyone could get me a quick reply I'd be most grateful.

Copyright © 2005-08 www.BigResource.com, All rights reserved