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





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

Preloader Inside Preloader Type Thing
Hi,

I've got like a main page that has a preloader in a different scene. And in the main page I call loadMovie on first frame that load external swf that has same structure - preloader scene with a main scene (content for the main page) ... but the first preloader seems to wait to load the actual page and the external swf before if finishes. Why is the first preloader not just preloading for the home page and then once u are there the other preloader kicks in and loads the content??? Also the preloader seems to have a wait till 20 % before it actually appears on the screen how is that?

code is

frame 1
-----------------------------
total_bytes = _root.getBytesTotal();
kb = int (total_bytes/1000)
loaded_bytes = _root.getBytesLoaded();
kb_loaded = int (loaded_bytes/1000);
remaining_bytes = total_bytes-loaded_bytes;
kb_remaining = int (remaining_bytes/1000);
percent_done = int((loaded_bytes/total_bytes)*100);
bar.bar2.gotoAndStop(percent_done);
ifFrameLoaded ("main", 1) {
gotoAndPlay ("main", 1);
}
--------------------------------
frame 2

gotoAndPlay(1);

Cheers

Linkage And Preloader
HI!

I've just noticed that before the first frame is displayed on a movie, it has to load all the linked graphics in the library (Or at least that's how it seems).

In my case the most bulky part of the movie are linked graphics (action script can call for them). And when the preloader appears it's already in 90%.

Is there a walk arround for this?

PreLoader Linkage?
Have a PreLoader works fine..

I'm loading movieClip and Sounds using
attachMovie
attachSound

I've gone to the Publish settings and set "Export frames for classes" to 2

and ofcourse if I don't deselect "Export to first frame" on the
movieClips Linkage the Peloader won't work correctly

But When I do it doesn't load the Clips!!!
Is there a way I can load them on frame 2 using attachMovie attachSound???

Linkage Preloader
When all items are called through Linkage method, the preloader is not working !!!!!!

PreLoader Linkage?
Have a PreLoader works fine..

I'm loading movieClip and Sounds using
attachMovie
attachSound

I've gone to the Publish settings and set "Export frames for classes" to 2

and ofcourse if I don't deselect "Export to first frame" on the
movieClips Linkage the Peloader won't work correctly

But When I do it doesn't load the Clips!!!
Is there a way I can load them on frame 2 using attachMovie attachSound???



:x

PRELOADER And SOUND LINKAGE HELP
OKay here's the thing,

i'm trying to preload a a movie, which has the sounds setup to be exported to symbols (LINKAGE);
now when i don't link the sounds; the preloader works freakin sweet

but when i link the sounds the preloader takes up half the load, so the preloader animation and loadbar doesn't show up at all till it's like at 50% i.e.

if the file is 94kb then the loader(in the bandwidth profiler) shows up as 47k so nothing shows up on the screen until those 47kb loads up.. and then the preloader is at least 50% done by that time....

i need help, to get around this



here is the code as it is in my actions layer:

------FRAME 1----------

loadpercent = "0%";
loadBytes = "0 of " + Math.round((_root.getBytesTotal() / 1024) * 1) / 1 + " Kb";

-----FRAME 2----------

loadPercent = (Math.floor(_root.getBytesLoaded()/_root.getBytesTotal()*100)+"%");
loadBytes = (Math.round((_root.getBytesLoaded()/1024)*1)/1+" Kb of "+Math.round((_root.getBytesTotal()/1024)*1)/1+" Kb");
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
loadPercent = "100%";
loadBytes = (Math.round((_root.getBytesLoaded()/1024)*1)/1+" Kb of "+Math.round((_root.getBytesTotal()/1024)*1)/1+" Kb Loaded");
gotoAndPlay ("main", "start");
}

-------FRAME 3------------------

gotoAndPlay(2);

the loadpercent and loadbytes display within text boxes and the loadbar works through _xscale

please help me.. how can i get the preloader to only be the 2-4k that it is, and display the full loadbar with sound linkage active.. HELP!!!!

Linkage / First Frame / Preloader
Ive red bout many problems with linkage and preloaders. I found simple method to resolve problem with preloader which shows up after loading everything from frame 1.

I made links in the library [ to use the clips witch AttachMovie method ] and in the Clip Property i checked Export For Action Script and DIDNT check Export in first Frame. Then i put that clip somewhere in the movie... with Alpha 0% or f.e. _visible = false;

I got what i wanted... Peace

Kamil
http://www.16mm.pl
16mm@16mm.pl

Attachsound, Preloader, Linkage
Obviously this is an issue. I've read many posts but I can't find a solution.

My preloader starts way to late as soon as I incorporate a linkage with my sound.

I know I can use a separate.swf to hold just the music and use a loadmovie command, but there should be away to do it this way??

Any help would be appreciated.
Thanks,
Andrea

Preloader And Linkage Oddness
Hmmm after messing around trying to get my preloader to work with linkages, I gathered to have to place instances of all the linked parts in a frame just after the preloader.

When I test the clip now it all works fine if I double ctrl enter to get it running in simulated bandwidth.
However if I do a normal test on it, it all apears ok (ie doesnt complain) but just doesnt draw the linked parts as though they arent loaded....?
If I put them into the centre of the frame I can even see them blip past so they must be there, but when attachMovie calls them nothing happens.

Anyone else had this?

Preloader - Linkage - I Want To Kill Myself
hi guys-

I have been scouring the internet trying to find some sort of tutorial to make a preloader that works. here are the problems im facing:

the way the site works - all my moveclips are attached via the linkage and are exported and loaded up on the first frame. SO I cant make a loader that is within the swf because it loads up all of my likned MC's first which is the vast majority of what needs to be loaded.

Once I finally figured out that it loads the MC's before it goes to the loader I tried to find a way to externally load in the swf so that I could load everything and have the progress bar track it correctly and I found this tutorial:

http://www.webwasp.co.uk/tutorials/b...SWFs/index.php

which I followed along with and seemed to work great and my site would load up fine but then when I went to click anything none of my exported linkage mc's load up.

I really just want to know where I can find a tutorial that will work. I never realized what a pain in the ass the loader would be and its freaking driving me nuts. Ive been trying to figure it out for a week now and I really need some guidance before I go nuts !!!

thanks-
alex

Linkage Calculated In Preloader?
does a preloader script calculate all action and clip in the library called by "linkage"?

Preloader And Linkage Problem
I am using the preloader below on swfs being loaded to the main movie. The preloader didn't show until I delinked some jpgs in the swf to be loaded. Then the preloader worked fine. But on going to frame 2 "start" I have actionscript that creates a menu using jpgs. And now since they are not exported in the first frame can't be found. How does one get both the preloader to work and the jpgs or other assets that need to be link in the swf to work?

Thanks.


Preloader code:

stop();
onEnterFrame = function() {
framesLoaded = (Math.ceil ((_parent.getBytesLoaded() / _parent.getBytesTotal()) * 100));
gotoAndStop (framesLoaded);
info_txt.text = framesLoaded + "% completed";
if (framesLoaded >= 90) {
_parent.gotoAndPlay ("start");
}
}

Preloader And Linkage Issues
My preloader doesn't show up until my movie is almost loaded. I realized this is due to the "Export in first frame" option of my dynamic variables. So I unchecked the "Export in first frame" option and now my dynamic movie clips do not show up at all! Which frame should they get exported in? And why are they not working?

Preloader & Linkage Problem
Hi All,

Annoying problem here. I have a preloader on my flash movie that calculates on %. However 70% of the file size of my movie are objects that I import from the library when I need them using linkage. Hence the preloader only shows up once the linkage objects have loaded and flash decides to load the text that says 'loading'.

All of which sort of defeats the object of my pre-loader. Is there any way I can set the linkage to load after the pre-loader graphics? Or another solution?

Many thanks.

Dabush

PRELOADER And SOUND LINKAGE ISSUES
OKay here's the thing,

i'm trying to preload a a movie, which has the sounds setup to be exported to symbols (LINKAGE);
now when i don't link the sounds; the preloader works freakin sweet

but when i link the sounds the preloader takes up half the load, so the preloader animation and loadbar doesn't show up at all till it's like at 50% i.e.

if the file is 94kb then the loader(in the bandwidth profiler) shows up as 47k so nothing shows up on the screen until those 47kb loads up.. and then the preloader is at least 50% done by that time....

i need help, to get around this



here is the code as it is in my actions layer:

------FRAME 1----------

loadpercent = "0%";
loadBytes = "0 of " + Math.round((_root.getBytesTotal() / 1024) * 1) / 1 + " Kb";

-----FRAME 2----------

loadPercent = (Math.floor(_root.getBytesLoaded()/_root.getBytesTotal()*100)+"%");
loadBytes = (Math.round((_root.getBytesLoaded()/1024)*1)/1+" Kb of "+Math.round((_root.getBytesTotal()/1024)*1)/1+" Kb");
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
loadPercent = "100%";
loadBytes = (Math.round((_root.getBytesLoaded()/1024)*1)/1+" Kb of "+Math.round((_root.getBytesTotal()/1024)*1)/1+" Kb Loaded");
gotoAndPlay ("main", "start");
}

-------FRAME 3------------------

gotoAndPlay(2);

the loadpercent and loadbytes display within text boxes and the loadbar works through _xscale

please help me.. how can i get the preloader to only be the 2-4k that it is, and display the full loadbar with sound linkage active.. HELP!!!!

Preloader - Export Linkage Issues
bgroves just gave me some info I would have never figured out. He said the reason my preloader isn't really preloading is that my sounds are set for export for actionscript linkage. He said if I set it for event playing instead I could resolve it.

currently I have a few sound objects that are set up with linkage. can someone tell me how to change the following code to event?

_root.mySound = new Sound (this);
_root.mySound.attachSound ("test.wav");
_root.mySound.start();
playing = true;
_root.sounds=1;

if(_root.x ==1){
_root.mySound.onSoundComplete = function() {
_root.sounds =0;
_root.musicbar.gotoAndStop(61) + _root.sound.gotoAndStop(2) ;
}
}


P.S. Does this explain why my first frame is reported as large even if it only contains actionscript?

thank you very much

Preloader With Linkage Problems Remains
Ok, so now I found out (thx to you all) that when using the Exporting AS and export to first frame linkage stuff delays my preloader. As adviced on http://www.senocular.com/flash/tutorials/preloading/ I moved these MC into the frame after the preloader and the rest of the content to frame 3. All works fine but I still don't manage to get the preloader starting at 0%. Following the above advice definately helped but not completely.

Now I'm using some UI Components such as scrollpane/bar and fill out forms and some items in there also use the linkage thing. I disabled this too and moved the content to frame 2 but nevertheless, no way my preloader starts at 0%. The preloader is not the problem as it works fine when using it in a file without UI components. What am I missing here? Anyone?

[CS3] Sound Linkage Preloader Problem (AS 2.0)
I have a movie that has 5 pieces of music, one shorter intro and 4 full-sized songs. Everything worked great until I posted it online and the "Export to First Frame" issue cropped up, causing my preloader to not work until after the sounds loaded fully.

I looked around and found a couple of suggestions to use a second swf to house and load the sounds, but I can't get it to work right and now the intro animation is really choppy.

Could I get some help on how to get around this linkage/preload problem? Thanks!

Preloader, Library Linkage Woes
I have a preloader swf (preloader.swf) that loads another swf into it (test.swf). test.fla's library has an asset RectangleMC whose linkage is set to lib.RectangleMC and to export on the first frame. test.fla has a Document class (TestClass) wherein RectangleMC is used. When I run preloader.swf I get the following errors:


Quote:




TestClass.as, line 11 - 1046: Type was not found or was not a compile-time constant: RectangleMC.
TestClass.as, line 14 - 1180: Call to a possibly undefined method RectangleMC.
TestClass.as, line 4 - 1172: Definition lib:RectangleMC could not be found.




If I copy the RectangleMC from the library of test.fla and place it in the library of preloader.fla, everything works. This of course is not what is wanted, so how do I make sure that linked MCs stay connected correctly in the appropriate .fla?

So, I've got a temporary workaround:

When exporting stuff from the lib. for AS, Flash is supposed to create a Class for the objects if they don't already exist right?


Quote:




At this point, if Flash can't find an external ActionScript file with a definition for the specified class (for instance, if you didn't need to add additional behavior for the symbol), a warning is displayed:

A definition for this class could not be found in the classpath, so one will be automatically generated in the SWF file upon export.

You can disregard this warning if your library symbol does not require unique functionality beyond the functionality of the MovieClip class.

If you do not provide a class for your symbol, Flash will create a class for your symbol equivalent to this one:


ActionScript Code:
package { import flash.display.MovieClip; public class ExampleMovieClip extends MovieClip {  public function ExampleMovieClip() {  } }}





Problem is these classes aren't 'actually' created, hence the 'type was not found' errors I was getting.

The workaround is to manually create that dummy class.



ActionScript Code:
package { import flash.display.MovieClip; public class RectangleMC extends MovieClip {  public function RectangleMC() {  } }}


Voila! No more errors. Problem is - what if I have 100 MCs linked for AS in my lib? I've got to do this 100 times, and that's just dumb.

The problem w/ this is that now, because you have this base class, if you've got things like TextFields, SimpleButtons or other MCs which you reference via . e.g.:


ActionScript Code:
var rect:RectangleMC = new RectangleMC();rect.someTextField.text = "foo";


Now it throws an error saying there's an unexpected property 'someTextField' in class RectangleMC (because you haven't declared that var of course in your linked MC)
This is getting really frustrating.

Preloader, Library Linkage Woes
I have a preloader swf (preloader.swf) that loads another swf into it (test.swf). test.fla's library has an asset RectangleMC whose linkage is set to lib.RectangleMC and to export on the first frame. test.fla has a Document class (TestClass) wherein RectangleMC is used. When I run preloader.swf I get the following errors:




TestClass.as, line 11 - 1046: Type was not found or was not a compile-time constant: RectangleMC.
TestClass.as, line 14 - 1180: Call to a possibly undefined method RectangleMC.
TestClass.as, line 4 - 1172: Definition lib:RectangleMC could not be found.

If I copy the RectangleMC from the library of test.fla and place it in the library of preloader.fla, everything works. This of course is not what is wanted, so how do I make sure that linked MCs stay connected correctly in the appropriate .fla?















Attached Files

Slow Preloader And Linkage Issues
Hi,

I created a movie with a preloader. Doing all the testing/debugging inside of flash with the bandwidth profiler, I can see that it works well though it takes a moment for even the preloader to start. I can also see that there is an abnormal amount of data being sent in the first frame.

I realized this was because I have artwork in the movie later on embedded within a movie clip that is accessed through another movie clip. All these images had export in first frame under linkage checked. So I unchecked them. Now the preloader loads quickly but when I get to the part where the artwork is supposed to appear, nothing shows up.

I even let the screen sit still for a few minutes to ensure the artwork had enough time to fully load, incase the preloader didn't do its job, and it still didn't appear on the screen like it does when export in first frame is checked.

Any ideas?

Preloader Export On First Frame Linkage Problems?
Anybody ever have issues with preloading where your movieclips won't load if you uncheck export on first frame in the linkage properties. If you leave export on first frame checked then your preloader does not work.

The movieclips are in the library and need to be attached on the 2nd frame.

Preloader is basically:

stop();

var myInterval = setInterval(loading,10);

function loading() {
if (getBytesLoaded() >= getBytesTotal()) {
play();
clearInterval(myInterval);
}
preLoadBar_mc._xscale = (getBytesLoaded()/getBytesTotal())*100;
preLoadPercent_txt.text = Math.round((getBytesLoaded()/getBytesTotal())*100) + "%";

}


Any help is appreciated.

Thanks.

External Preloader Library Linkage Issue
Hey Everyone,

So I recently ran into a real frustrating problem when I was trying to make an external preloader for my swf, and I thought that I would share it here so that someone else won't have to go through what I did.

Anyway, my original goal was to make a simple external preloader swf with nothing in its library, that would load my main swf that had all the resources in its library. After I got it all coded, I kept getting a reference error at runtime when I tried to run the preloader.swf file saying that variable such and such is not defined. The variable that it referred to was in fact, defined in the library of main.swf.

Main.swf would run fine on its own, and preloader.swf could load other swf's fine if I just substitued the name. So I was really at a loss as to what was causing the problem. But after banging my head against the wall for several hours, I finally found the answer.


What I had done when I did the preloader was I just made the preloader.fla and the preloader.as file and put them both in the same directory with all the source code for my main swf. The problem with this was that when I compiled the preloader it must have got "confused" and tried to link in some of the classes (.as files) that I had in there for my main.swf. Then when I ran the preloader it thought that several variables in the main.swf were not defined.

So the solution to this issue was just to move the preloader.fla and the preloader.as into its own directory with just the main.swf (no source code for main). I compiled the preloader in there and it worked fine!

So the moral of the story is...if you are doing an external preloader make sure you keep it in its own directory when you develop it, or you can run into linkage type issues.

And Another Thing............. (preloader)
I've added a preloader I downloaded to a scene in my fla. The movie has 2 scenes - Scene is the website and Scene 2 is the preloader.

The preloader is an animated butterfly that follows your mouse around while the page is loading.

The first frame of the preloader has this code:

ifFrameLoaded (1) {
if (Number(_framesloaded)>=Number(_totalframes)) {
gotoAndPlay("Scene 1", "Begin");
} else {
setProperty("/loader", _xscale, (_framesloaded/_totalframes)*100);
}
}

Frame 2:

tellTarget ("/drag1") {
nextFrame();
}

The Last Frame:

gotoAndPlay(1);


This isn't working at all........ I can only see the website with no sign of the preloader....

Can someone shed any light on this for me!!

Thanks

It's Always A Preloader Thing
If anybody would like to look and help I would be greatly indebted. The .fla is 15 mb though...so your patience will be even more appreciated. Thx

https://webspace.utexas.edu/jwf0007/pltestwhee.fla

I'm using the preloader tutorial posted on Kirupa's site...if you can help me make it work I'd greatly appreciate it.

Linkage Export To 1st Frame Make Preloader Useless
This makes no sense for Flash to do this.I have movie clips of type "A" that when placed over droptargets will call a attachMovie clip script and place copies of another type of movie clip (call it type "b") onto the same droptarget. The original movie clip "A" then goes back to it's original spot. So, in this way the original movie clip "A" can make unlimited copies of type "B" appear on the stage anywhere the user desires.
OK. This is weird. The type "B" clips have to linked with "Export for ActionScript" option selected. Flash MX has an additional check box that is called "Export in first frame". If I uncheck the "Export in first frame" option then suddenly my movie clips don't work. They won't duplicate when the "attachMovieClip" calls them even though the "Export for ActionScript" option is still on.
That makes just about everything load in my first frame. Since a frame must completely download before appearing, my preloader doesn't even appear until the entire movie is downloaded just about. It just sits there with the background color waiting for all the items associated with frame 1 to load. This makes the preloader USELESS and completely defeats the purpose of having one.
So, if anybody knows why "export in frist frame" must be on OR has a good suggestion on how to get the preloader to show up before the elements of the first frame are loaded.....I'd be grateful. Right now I'm using a work around that has a javascript pop-up window that says loading and closes itself on a timer. Not what I wanted, but at least it lets the user know what's going on. Thanks.

Preloader For Variables From .txt ? Is There Such A Thing?
I am now having trouble with using the .txt variable on different computers... At home IE would work , Netscape wouldnt... at work, Both works... at a friend None work...

I am thinking that its because the loadvariables havent been loaded by the 15th frame.... So is there a code that will tell the SWF to wait untill the variable is loaded before it continues?

I know there is a frameloaded, but I havent found a variable loaded....

Much apritiated.

-MEESH

Preloader Doing The Wrong Thing
i made a preloader (using a flashkit.com tutorial)for my site , but there are 2 problems now...

1) after the preloader is done, he always plays the last frame
of the site(i solved this by putting scene 2 in the last place...)

and 2) i uploaded it, but when i visit the site, it doesn't show the preloader untill it's done loading, and then it just rushed trough to the next scene... (i saw the other thread about this, but the tutorial there only works for flash 6 and better, i have flash 5 ...)

_level1 And Preloader - A PC/Mac Thing?
when a user clicks one of the buttons from the main menu- the preloader(external .swf) gets loaded into _level1 and another .swf (content) into a mc. It works fine on the PC, but not on the Mac (which I don't have but the client/friend does). The preloader flashes in, out, in (within the first second) and that bothers her + it looks bad. Any one knows what is going on?

At the moment, I've put the preloader into the movie's library and it gets attached, which works fine. But I want to keep it separate from the main movie. Thanks.

Strange Thing In Frame One (preloader )
Hi,

Well, i allways use the same procedure for the preloaders of my movies,
I make a good preloader and I place it in scene 2,
In scene 1 I just put a simple word (static text) showing “loading”,
And the two action frames that wait until scene 2 (or first part of it) is fully loaded, so it becomes a preloader of scene 2.
In this way, scene 1 was practically no weight and load instantly no matter the bandwith.

Today something strange is happening, in frame 1 of scene 1 I have 178 kb,
Why ???? no idea,
I have just that, a word and two frames,
I check everything, no drawings, no sounds, no more actions, etc,

So I made a check,
I make another scene SC3 just with 50 empty frames, and I place it before scene 1,
I check in the bandwith profiler and …..
The 178 kb are now in frame 1 of SC3,

Can anyone of you explain me what is happening ?????
I´m becoming crazy

Thanks a lot

As2 Preloader. Request Help With Small Thing.
Basically what i have is a intro mc on frame 1... then frame 2 is my preloader. then frame 3 is my videoclip atm. What i want to happen is have the preloader to at least appear for a small interval. So intro movie plays, then preloader plays. for a desired interval by going into the preloader_mc mc for a smalla mount of time. As of right now it loads to fast and the preloader_mc just goes right into scene3.

hi here is my preloader code

// Preloader Script
// ==================================================
this.onEnterFrame = function() {
var bl = _root.getBytesLoaded();
var bt = _root.getBytesTotal();
var percent = Math.round((bl/bt)*100);

preloader_mc.percentage_txt.text = percent+"%";
preloader_mc.gotoAndStop(percent);
if (bl == bt) {
preloader_mc.play();
var myCountdown = setInterval(resumePlay,7000);
//_root.gotoAndStop(3);

}
}
//
stop();
function resumePlay(){
_root.gotoAndStop(3);
clearInterval(myCountdown);
delete this.onEnterFrame;
}

link to what im working on so u can see it
http://www.parabol-designs.com/projects/ride/temp

any help would be lovely

Preloader Event.COMPLETE Annoying Thing
Hi Everyone

I'm sure someone knows a quick answer for this:

The preloader I usually use executes an addChild(loadedMovie) statement in response to an Event.COMPLETE event from the loaded swf's contentLoaderInfo object (a common approach, I believe.) The problem with this (as many of us know) is that the loaded swf starts running before the Event.COMPLETE event gets thrown, which means that once the child is added, it is already a few frames into its timeline. What I need is a way for the loaded swf not to start playing til its COMPLETE event gets thrown. Any ideas on how to do this (or some other workaround) ?

Thanks In Advance,
Graham

Preloader Event.COMPLETE Annoying Thing
Hi Everyone

I'm sure someone knows a quick answer for this:

The preloader I usually use executes an addChild(loadedMovie) statement in response to an Event.COMPLETE event from the loaded swf's contentLoaderInfo object (a common approach, I believe.) The problem with this (as many of us know) is that the loaded swf starts running before the Event.COMPLETE event gets thrown, which means that once the child is added, it is already a few frames into its timeline. What I need is a way for the loaded swf not to start playing til its COMPLETE event gets thrown. Any ideas on how to do this (or some other workaround) ?

Thanks In Advance,
Graham

Sequential Thumbnail Preloader, Thing (Completed Code Thats Works)
Hello all

After asking on here a few times and having no results or advice. Also upon searching this forum everyone else who has asked of similer things has also had the same none reply. I have managed to get a working basic model.

SO HERE IT IS ENJOY
(note spent three days pulling my hair out on this!!)


Code:
// default number to start on
var count:Number = 0;

// how many images you want to load
var countAmount:Number = 3;
//
var thumbnailLoader_mc:MovieClipLoader = new MovieClipLoader();
var preload:Object = new Object();
thumbnailLoader_mc.addListener(preload);
//
preload.onLoadStart = function(targetMC) {
trace("started loading "+targetMC);
bar_mc._visible = true;
pText._visible = true;
};
//
preload.onLoadProgress = function(targetMC, lBytes, tBytes) {

// place your preloader stuff here
bar_mc._width = (lBytes/tBytes)*100;
pText.text = "% "+Math.round((lBytes/tBytes)*100);
};
//
preload.onLoadComplete = function(targetMC) {
bar_mc._visible = false;
pText._visible = false;
trace(targetMC+" finished");
if(count != countAmount){
count++;
loadThumbs();
trace("not ready to quit so why am i?");
}

};
//
function loadThumbs() {

// just to finish the loading
if(count == countAmount){
trace("list completed");
return true;
}

trace("loading function for the "+count+" time");
var name:String = "item"+count+"_mc";
thumbHolder_mc.createEmptyMovieClip("item"+count+"_mc", count);;
thumbnailLoader_mc.loadClip("image"+count+".jpg", thumbHolder_mc;
}

Now thats just the bare bones of doing this sort of loader. But hopefully it will give someone the right idea.

Also please not that this is based on the preloader tutorial on this site as well.


Any questions please ask

Making A Thing Any Of Which Will Interact With Any Of Another Type Of Thing
Well i know that title was a bit vague but heres what im trying to do, ive been larning to use flash for the past couple weeks, I'm using flash MX, i am expeirienced in other programming languages. What id like to do is to make an object, in this case a turet, which has code in it and can be duplicated, i know how to do that part, but, i want to be able to make it and copy it, and also have an enemy i can copy, a zobie, and have any of the turrets shoot at any of the zombies that get close. They cant all be pre scripted with eachothers names because i want to be able to create either after the program starts.

Basically, the zombies come out all over during the program and the player clicks where he wants to put turrets and those turrets shoot at whichever zombie is closest to them. Im sure its not that hard, and probably would involve arrays, but since im still learning how flash works im not sure how it can be done. Any help is apriciated, thanks. While i wait for a reply I'm going to read some more on how arays work in flash since i think they may be the answer.

Thing Thing Arena Type Game.
I want to make a shooting game, but I had a question first. How can I make the hand follow the cursor constantly, but never leave a restricted area? I would like to know how, thanks.

Linkage
Does anyone know of a way to do sound linkage with actionscript instead of hard coding it by clicking and doing it in the library? This is REAL important for me as it looks like Generator's ability to use sound is for ****

Linkage
Hi Everyone,
I'm using an attached sound with linkage.
The problem is that Flash automaticli load it in the first frame and it takes a lot of the time (the user won't c anything meantime)
SO...
I want to put this libary in another swf and to load it.
I do it but I didn't know how can I call the sound now.
I tried this:
------------------------------------------
x = new Sound();
x.attachSound("_level1/song");
x.start(0, 99999);
------------------------------------------
But it's not working.
Any solution?
and how can I know that this new swf is loaded?

Linkage ...
Hi all

My problem is that my movie - a slideshow has a call like
this:

sound1 = new sound();
sound1.attachSound("music");
sound1.start(0, 1000);
function setV (v) {
sound1.setVolume(v);
}

and of course I got a piece off music with a linkage = music
and this works fine.

THIS CALL is placed in an frame after the preloader loop
BUT the movie seams to start load the music in the memory
and that without showing the preloader-ani. Only when the
music is in memory the preloader starts for the hole movie..

Is there a way out of this?

Have a nice day :-) PAUK

Linkage
I want to make a screensaver that detects if the person is online and if so populates the screensaver with new images..using linkage in FlashMX...

Does anyone know how you can make actionscript that can be linked..I tired a link in an MC with code that would effect the main timeline...The MC came in, but not the code

why?

does anyone now any good linkage documents?

Linkage
Hi! i have a little problem. I create a .fla file to use it as a shared library, that file have a lot of movie clips. Once it was created i have the need to change the file name. I was wondering if there is any automatic way to change the url name of every movie clip on the library.
Thanks!!!!

How To Do This... CD Linkage
hello guys

i created a button, and what to add a "GET URL" action to it... to open an HTML page located on a CD, what is the command ?

i tried: on (press) get url (webindex.html)
but it didnt work... it opens the c:webindex.html insted !!

what is the exact command to use ?

Linkage
I am trying to standardise my work, almost make it into a production line and am thinking of using the shared library way. I want to be able to make one button and so forth and then use that in all my work, is using the shared library the best way to do this, and will it mean that if i change the original button it will overwrite wherever that button is used.
Has anybody done it any other way, or is using the shared library the only way.

cheers

lee

Linkage
guys

how to change the link instead of to the website, i want to link to the scene inside the same swf


onClipEvent (load) {
daTextBox = "<a href="http://ww.yahoo.com">When you say nothing at all (Ronan) 4.17</a>
<a href="http://www.msn.com">Run to me (Oscar de La Hoya) 3.41</a>
One in a million (Bosson) 3.36
Better man (Robbie Williams) 3.22
Escape (Enrique Iglesias) 3.28";
}


tq

Plz Help Me On Linkage.
Hi,

I need help on symbol linkage, using linkage we can send action script to another swf file or we can retrieve script from that swf in another swf file I am getting that. But my problem is that I would like to get dynamically updated content.

Thanx

Linkage
Hello
does anyone know if a linkage property of a library item
can be set through actionscript
and does anyone know of a thread on shared libraries
i would really appreciate any help
thank

PDF Linkage
Could anyone tell me how to write the script for opening an external pdf file and how/where to save this file for the published flash to find it?

many thanks in advance.

Shirshiron

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