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








Load Order, Force Load Order


I was wondering if there is a way to force the load order of graphics, movie clips, buttons. I am most interested in force a paticular graphic in my swf file to load before everything else.

Thanks




ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 01-06-2005, 03:36 PM


View Complete Forum Thread with Replies

Sponsored Links:

Force Load Order
Can anyone tell me how to force a particular graphic to load first in my movie, the grahic covers up hitspots that are later revealed when clicked on. When the movie loads you briefly see the hitspots before the graphic loads over them. i cannot use a loader in the movie because I am having issues with a timer. Force load order? how?

View Replies !    View Related
Load Order In Html - Swf Load Last?
Is there a way to make sure that a flash swf loads last in an html page? I have a preloader built into my flash content. The first time someone accesses the html page it loads fine but the second time around there is a lag and it seems like the embedded preloader (in swf) is completely loading file before html page will load.

View Replies !    View Related
Load In The Right Order.How Do This
how can I change this code so>first visual1.swf or2,3 or 4 should be loaded( depending on witch button the vistor hits).after the visual has loaded load in sound.swf.if sound.swf has loaded load in content 1 or 2,3,4( depending on witch button the vistor hits. The external file are all coded by buttons on the main swf file.Have a look at the code.Hope someone can help out.Big thx in advance.

coded on frame2:
but1.onRelease=function(){
//set a variable that stores the next external movie to be loaded
nextMovie="visual1.swf";
//tell the cover mc to play its closing animation
cover.gotoAndPlay("close");
}
but2.onRelease=function(){
nextMovie="visual2.swf";
cover.gotoAndPlay("close");
}
but3.onRelease=function(){
nextMovie="visual3.swf";
cover.gotoAndPlay("close");
}
but4.onRelease=function(){
nextMovie="visual4.swf";
cover.gotoAndPlay("close");
}
_root.visual.loadMovie("visual1.swf");

loadMovieNum("sound2.swf",1);

coded on button(object)
on(release){
_level1.unloadMovie(); // empty old song from level 1
loadMovieNum("sound2.swf",1); // load new song in level 1
}
on(release){
loadMovie("content3.swf", "content");
}

View Replies !    View Related
Load In The Right Order.How Do This
how can I change this code so>first visual1.swf or2,3 or 4 should be loaded( depending on witch button the vistor hits).after the visual has loaded load in sound.swf.if sound.swf has loaded load in content 1 or 2,3,4( depending on witch button the vistor hits. The external file are all coded by buttons on the main swf file.Have a look at the code.Hope someone can help out.Big thx in advance.

coded on frame2:
but1.onRelease=function(){
//set a variable that stores the next external movie to be loaded
nextMovie="visual1.swf";
//tell the cover mc to play its closing animation
cover.gotoAndPlay("close");
}
but2.onRelease=function(){
nextMovie="visual2.swf";
cover.gotoAndPlay("close");
}
but3.onRelease=function(){
nextMovie="visual3.swf";
cover.gotoAndPlay("close");
}
but4.onRelease=function(){
nextMovie="visual4.swf";
cover.gotoAndPlay("close");
}
_root.visual.loadMovie("visual1.swf");

loadMovieNum("sound2.swf",1);

coded on button(object)
on(release){
_level1.unloadMovie(); // empty old song from level 1
loadMovieNum("sound2.swf",1); // load new song in level 1
}
on(release){
loadMovie("content3.swf", "content");
}

View Replies !    View Related
How Load In The Following Order
how can I change this code so>first visual1.swf or2,3 or 4 should be loaded( depending on witch button the vistor hits).after the visual has loaded load in sound.swf.if sound.swf has loaded load in content 1 or 2,3,4( depending on witch button the vistor hits. The external file are all coded by buttons on the main swf file.Have a look at the code.Hope someone can help out.Big thx in advance.

coded on frame2:
but1.onRelease=function(){
//set a variable that stores the next external movie to be loaded
nextMovie="visual1.swf";
//tell the cover mc to play its closing animation
cover.gotoAndPlay("close");
}
but2.onRelease=function(){
nextMovie="visual2.swf";
cover.gotoAndPlay("close");
}
but3.onRelease=function(){
nextMovie="visual3.swf";
cover.gotoAndPlay("close");
}
but4.onRelease=function(){
nextMovie="visual4.swf";
cover.gotoAndPlay("close");
}
_root.visual.loadMovie("visual1.swf");

loadMovieNum("sound2.swf",1);

coded on button(object):
on(release){
_level1.unloadMovie(); // empty old song from level 1
loadMovieNum("sound2.swf",1); // load new song in level 1
}
on(release){
loadMovie("content3.swf", "content");
}

View Replies !    View Related
Mc Load Order?
I am having a problem with mc order. I am loading swfs into empty mc's to break up the site size. My problem is, when I press a menu button, It loads the backround (swf 1), & text (swf 2)but the text loads before the backround is finished. How can I make the text swf wait till the backround swf loads before loading? I am not too proficiant in action script yet.
-pk

View Replies !    View Related
Load Order?
Could someone tell me what Load Order is for in your publishing preferences? And when it's appropriat to load top down or bottom up?

Cheers,
Jen

View Replies !    View Related
Load Order
hi, this is driving me mental!
i have a grod of jpg files that load using a mc.loadMovie command, and then in some places over the top there is flv that loads using a netStream.

no matter what i do the flvs insist on loadign first and tehn the jpg files come in slowly behind, but i want it the other way round so that the jpg files give you something to look at before the flv files have started.

look at http://www.mclennanarchitects.co.uk/test/container.html

any ideas before i go totally bald?

ben

View Replies !    View Related
Is There A Load Order?
I'm working on a site, at the moment its only around 300 kilobytes. The preloader is just a basic percentage preloader but it doesnt appear on the screen until its at about 90%. The only thing in the movie that could take up that much space is the sound track. So i was wondering if there is a way to set it so the sound track loads last.

Thanks,
Brendan Smith

View Replies !    View Related
As2 Load Order
Hi I was wondering if there was a way to specify the order in which I load in external swfs.

I have my main swf which loads in music, navigation and content, they all load at the same time, say i wanted to load in the music swf after the content has finished loading, how would i do that?

View Replies !    View Related
Could Someone Tell Me The Load Order?
Hello, I've been messing with flash for about a month or so, I've developed a semi-working newsletter program and I'm currently attempting to track down a few bugs in it and add a little more functionality.

What I'm asking for is if someone could explain the way flash loads everything. As in what gets loaded first, second, etc...

I've got code in 5 timelines, and a toolbar object that was built on the stage. The combo boxes are filled in from code in the onLoad timeline and at least one textarea is developed through code.

Something that seemed really wierd is the onLoad function for a combo box is firing before an onLoad function sitting on the stage(example: on a blank timeline: this.onLoad = function(){trace("Huh?");}).

Can someone explain how flash orders what loads first and so on please? This is confusing.

View Replies !    View Related
Publishing..load Order
When publishing a flash movie does it make a difference in the load order? I think I have two options....bottom up and top down. Which should I choose. I do have a preloader created.

View Replies !    View Related
File Load Order
how do I make it so that sounds and image files load last? a project that I'm working on is composed mostly of these, and the preloader (scene 1) doesn't show up until the game is already over 60 percent loaded. thanks for any help that you can offer.

View Replies !    View Related
Load Order For Several Swf Files
I'm trying to put my portfolio site that I've designed into Flash. The only problem is that I have a rather large width planned for the site... As the Flash stage can only reach a maximum width of 2880 pixels I'm wondering how I can have several Flash swfs load in the order i want them to, say from left to right.
The problem lies in the fact that my site at the minute stretches to a whopping 20,000 pixels and will take 7 Flash 5 stages to cover this. I have initially thought of the 7 swfs taking a section of the site each, but the problem remains in the loading of these seperate files... and i was wanting to know if there is any way that i can stipulate the order in which these are to load, instead of all of them loading at the same time,i.e. swf1 loads then swf2 begins to load, then 3 then 4 and so on... so that the narrative sequence is still there.
Thanks alot in advance.
Ray

View Replies !    View Related
Load In The Wright Order.how Do This
how can I change this code so>first visual1.swf or2,3 or 4 should be loaded( depending on witch button the vistor hits).after the visual has loaded load in sound.swf.if sound.swf has loaded load in content 1 or 2,3,4( depending on witch button the vistor hits. The external file are all coded by buttons on the main swf file.Have a look at the code.Hope someone can help out.Big thx in advance.

coded on frame2:
but1.onRelease=function(){
//set a variable that stores the next external movie to be loaded
nextMovie="visual1.swf";
//tell the cover mc to play its closing animation
cover.gotoAndPlay("close");
}
but2.onRelease=function(){
nextMovie="visual2.swf";
cover.gotoAndPlay("close");
}
but3.onRelease=function(){
nextMovie="visual3.swf";
cover.gotoAndPlay("close");
}
but4.onRelease=function(){
nextMovie="visual4.swf";
cover.gotoAndPlay("close");
}
_root.visual.loadMovie("visual1.swf");

loadMovieNum("sound2.swf",1);

coded on button(object)
on(release){
_level1.unloadMovie(); // empty old song from level 1
loadMovieNum("sound2.swf",1); // load new song in level 1
}
on(release){
loadMovie("content3.swf", "content");
}

View Replies !    View Related
Load Into The Wright Order.How Do This
how can I change this code so>first visual1.swf or2,3 or 4 should be loaded( depending on witch button the vistor hits).after the visual has loaded load in sound.swf.if sound.swf has loaded load in content 1 or 2,3,4( depending on witch button the vistor hits. The external file are all coded by buttons on the main swf file.Have a look at the code.Hope someone can help out.Big thx in advance.

coded on frame2:
but1.onRelease=function(){
//set a variable that stores the next external movie to be loaded
nextMovie="visual1.swf";
//tell the cover mc to play its closing animation
cover.gotoAndPlay("close");
}
but2.onRelease=function(){
nextMovie="visual2.swf";
cover.gotoAndPlay("close");
}
but3.onRelease=function(){
nextMovie="visual3.swf";
cover.gotoAndPlay("close");
}
but4.onRelease=function(){
nextMovie="visual4.swf";
cover.gotoAndPlay("close");
}
_root.visual.loadMovie("visual1.swf");

loadMovieNum("sound2.swf",1);

coded on button(object)
on(release){
_level1.unloadMovie(); // empty old song from level 1
loadMovieNum("sound2.swf",1); // load new song in level 1
}
on(release){
loadMovie("content3.swf", "content");
}

View Replies !    View Related
Data Load Order
why does flash seem to load components in the first frame of the movie? Having a 75k chunk of data in frame 1 doesn't allow for good preloader usage...

Is there any known way to get around that?

View Replies !    View Related
Function Load Order
hi guys

i haven't posted here for a while but i've come across a problem that you might be able to answer

here is my script
PHP Code:



// ActionScript Document

XML.prototype.ignoreWhite = true;
menuItems_array = [];

//function to load the Menu Items
function loadMenu(XMLDoc) {
    
    //set default paths
    var textFilesPath = "./updateable_files/";
    var sectionImagesPath = "./images/sectionimages/";
    
    //get content
    XMLVars = new XML();
    XMLVars.onLoad = function(success) {
        if (success) {
            trace("success");
            _root.description.htmlText = "<b>Loading content...</b>";
                        
            for (var i=0;i<this.firstChild.childNodes.length;i++) {
                //set variables from XML
                var thisKind = this.firstChild.childNodes[i].attributes.kind;
                var thisText = this.firstChild.childNodes[i].childNodes[0].childNodes[0].nodeValue;
                var thisDescription = this.firstChild.childNodes[i].childNodes[1].childNodes[0].nodeValue;
                var thisSectionImage = this.firstChild.childNodes[i].childNodes[2].childNodes[0].nodeValue;
                
                //object to store starting attributes for menuItem
                var tempObject = new Object();
                tempObject.menuItem_txt = thisText;
                tempObject.description = textFilesPath + thisDescription;
                tempObject.description_txt = "copy to be replaced";
                tempObject.sectionImage = sectionImagesPath + thisSectionImage;
                tempObject._y = 13 * i;
                _root.menu.attachMovie("menuItem_clip", thisKind, i, tempObject);
                
                //add item name to array
                _root.menuItems_array.push(thisKind);
            }
            trace (_root.menuItems_array);
        } else {
            _root.description.htmlText = "<b>Error loading menu</b>";
        }
    }
    XMLVars.load(textFilesPath+XMLDoc);
    trace(textFilesPath+XMLDoc);
}

//function to load the description_txt files in
function loadDescriptions() {
    trace (_root.menuItems_array.length);
    for (var i=0; i<_root.menuItems_array.length;i++) {
        trace (i);
    }
}




and i call the functions like this

PHP Code:



loadMenu("menu.xml");
loadDescriptions();




but when i run this it runs in a really wierd order:

./updateable_files/menu.xml ---->trace after XMLVars.load in loadMenu()
0 ---->trace in loadDescriptions()
success ---->trace in loadMenu() -> XMLVars.onLoad
news,about,how,projects,contact,vacancies,login ---->trace after for loop in loadMenu()

so even though the loadMenu() is called and runs first, loadDescriptions() still runs before the XMLVars.load within loadMenu() ?
is there a way i can force the whole of loadMenu() to run before loadDescriptions ?

View Replies !    View Related
[F8] Can You Load Different MC's Over Each Other Reguardless Of Order?
Hey,


So I have a project were I'd like to load different movie clips into a section. each movie clip represents a page of my website. How can I call each one internally so that the new movie clip (page) builds while the last movie clip (page) is still underneath? Example:

Btn_1 = page 1
Btn_2 = page 2
Btn_3 = page 3

If I click btn_1 page apears on my stage when I click btn_2 or 3 that page loads on top (not replaces) the other movie. If I hit btn_1 again page 1 will then load ontop(not inplace) of the existing page.


Hope that make sense and thanks for any help anyone can provide.

View Replies !    View Related
[F8] Load Order For MovieClipLoader?
Hi folks.

MovieClipLoader is being a pest (or I'm being a n00b! Take your pick!). In short, I want to loop through a group of class instances, and want to load the picture into a blank movieclip.

But for some reason, the onLoadInit seems to be being accessed.... backwards!


Code:
var mcListener:Object = new Object();
mcListener.onLoadInit = function(target:MovieClip)
{
trace(target);

}

var mcloader:MovieClipLoader = new MovieClipLoader();
mcloader.addListener(mcListener);
for(var i=1; i<=_root["pictures1"].get_total(); i++)
{
imagename="pictures/thumbs/"+_root["pictures1"].get_filename();
nname="mypicture"+i;
trace(nname);
mc=_root.gallery.createEmptyMovieClip(nname,i);
mcloader.loadClip(imagename,mc);
}
produces the output:

mypicture1
mypicture2
mypicture3
mypicture4
mypicture5
mypicture6
mypicture7
mypicture8
mypicture9
mypicture10
mypicture11
mypicture12
_level0.gallery.mypicture12
_level0.gallery.mypicture11
_level0.gallery.mypicture10
_level0.gallery.mypicture9
_level0.gallery.mypicture8
_level0.gallery.mypicture7
_level0.gallery.mypicture6
_level0.gallery.mypicture5
_level0.gallery.mypicture4
_level0.gallery.mypicture3
_level0.gallery.mypicture2
_level0.gallery.mypicture1

Confused! Any ideas to why this happens?

View Replies !    View Related
What Order Do Classes Load?
I'm trying to run a method inside a class, but it won't let me. I think it's something to do with the loading order of classes.

There's two movieclips: MainContent, and InnerContent. InnerContent is a movieclip sitting inside MainContent. Both are linked to classes via the library:

MainContent Class:

PHP Code:



import InnerContent;
class MainContent extends MovieClip {
    var mcInner:InnerContent; // movieclip of the class below
    
    function MainContent() {
        trace(mcInner); // correctly traces mcInner movieclip...
        mcInner.foo(); // but why can't it run this method??
    }
    
    private function onLoad():Void {
        mcInner.foo(); // this DOES work though..
    }





InnerContent Class:

PHP Code:



class InnerContent extends MovieClip {
    public function foo() {
        trace("foo");
    }





Does this mean that the physical contents of a class are loaded before any methods and functions? Maybe someone can explain the order in which elements are loaded. I'm getting confused

View Replies !    View Related
Load Order With LoadMovie()?
I'm working on a application that needs to load in a bunch of SWFs and play them in order.

The obvious solution is a bunch of loadMovie() calls. Pretty straight forward. My question is whether or not there's any way to influence the order that they're loaded. Will they automatically load in the order that you make the loadMovie() calls? (is this a consistant behavior)

The only reference to load order I can find is the Load order in the publish preferences. Does anyone know if that applies to dynamic loading? I could easily load them into specific depths.

If anyone has any experience with this please let me know. I'm sure some experimentation could yeild some answers, but I'm on a tight deadline and was hoping someone might have already tried to do the same sort of thing.

Thanks

View Replies !    View Related
Load Content In Order
I'm loading several pictures into my movie. How can I set the order of which one should appear first?
Do I add an listener or how should I do it?

View Replies !    View Related
Load Order, AttachMovie
Hello

I have a simple login movieclip object that contains a button. I created a custom class called DispatcherButton(see at the bottom of this message). I have set the button inside of this login movieclip to be of the DispatcherButton type by typing it into the 'AS 2.0 class' field inside the button properties in the library (the button is of type movieclip in the library and linkage identifier is LoginButtonSymbol, I couldn't get the trace inside DispatcherButton() to work if the symbol was defined as a button). Ok the problem arises when I do the following:

//this code is inside of a class
loginClip = target.attachMovie("LoginClipSymbol", "login_mc", depth);
this.loginClip._x = x;this.loginClip._y = y;

this.loginClip.loginBtn.addEventListener("click", getController());

Here nothing happens because it does not recognize the addEventListener function on the loginBtn. The problem seems to be that when I call attachMovie it does not run the constructor of its children, in this case the button inside. The DispatcherButton() function is run later. If I add the following line before I try to access the addEventListener function everything works as expected.

mx.events.EventDispatcher.initialize(this.loginCli p.loginBtn);

Can someone explain what's going on here?

---------------------------------------

import mx.events.EventDispatcher

class DispatcherButton extends Button
{
private var dispatchEvent:Function;
public var addEventListener:Function;
public var removeEventListener:Function;

public function DispatcherButton() {
trace("DispatcherButton");
mx.events.EventDispatcher.initialize(this);
}

public function onRelease(eventObj:Object) {
trace("onRelease ");
//define the event object that is passed to any listeners when the event is broadcast (Step4)
// You must specify a target property and then name of the event or the event "type" property in the event object
var eventObject:Object = {target:this, type:'click'};
//dispatch the event (Step5)
dispatchEvent(eventObject);
}
}

View Replies !    View Related
Force Run Order Of Script
i've got a script to call a movie from external source. This is running as a projector and is calling movies from cdrom.

What i was wondering is, i need to send a meesage to a dynamic text box first and on the button i've added the code to put it there but it waits till main movie loads to put it in! I've added it first in order of events on button.

Is there a way to force code to run in order you need it?

Please help....


Thanks much...


Steve

View Replies !    View Related
Force Run Order Of Script
i've got a script to call a movie from external source. This is running as a projector and is calling movies from cdrom.

What i was wondering is, i need to send a meesage to a dynamic text box first and on the button i've added the code to put it there but it waits till main movie loads to put it in! I've added it first in order of events on button.

Is there a way to force code to run in order you need it?

Please help....


Thanks much...


Steve

View Replies !    View Related
Movie Load Order Problem - Please Help
Hi everybody

I got a entire site in a single 500 kbytes swf file. This site has 5 section, each one with 100 kbytes.

Before the intro, I did a small preloader with the large bitmaps and symbols.

The movie loads, and keeps loading up the 500kbytes is reached.

THE PROBLEM: the menu does not call the fifth part of the site without loading the first four ones. The flash loads the swf linearly. I can't load a frame without all previous ones are loaded - when you click for the fifth section, it calls the last frame loaded.

How can I fix this?

Thanks

View Replies !    View Related
Problem With Load Order: Using AttachMovie
I have a percentage preloader that works fine as long as I don't use attachMovie. Flash seems to be loading the Movie clip that is designated to be attached before anything else, even though the attachMovie script doesn't occur until the Second Scene of my movie.

This is preventing my preloader from working because the graphics and script for it ( only 22k) are not loading first (even thought they occur in the first frame.


Is there a way of preventing this. Is there a way to control the load order of attached movie clips?
thanks

Michael Harding
Brooklyn, NY

View Replies !    View Related
Flash & Page Load Order
Hope someone can help,

I have a page that has 3 frames in it;

the top frame holds a flash movie (about 300k) in it, and the bottom frame has an on load command which passes a variable to to flash file in the top frame. so every time you change pages in the bottom frame, the flash movie plays another part of the flash file.

the problem is this; the left frame loads first, then the top frame (with the 300k flash file), but the bottom page won't start loading until the top frame has finished loading all of the flash file.

As the bottom frame contains most of the content then this is a problem - how can I get the bottom frame to load whilst the top frame is still streaming the flash file???

Any thoughts much appreciated

Thanks

View Replies !    View Related
LOAD ORDER --> Of Library Items <-- Help
howdy..

I've tried to make this NOT a preloader issue .. as I know there is like a hundred different posts on preloaders .. its more of a load order discussion .. anyway ..

I have three movies each with the same preloader, its just a Bytes Loader .. pretty much the same as everyone else uses on here. I simply have my preloader code on a seperate scene before the acutally movie. Before I start, no I'm not using components. This is what is happening:

First movie is 125 kb's and the preloader becomes visible 35%.

Second movie is 50 kb's and the preloader works brilliantly, starts preloading straight from 0%.

Third movie is 70 kb's and hangs, then appears at 90%!!!

So I come to the conclusion it isn't bytes size related, .. right??

to see them goto http://www.vertexfx.com/games

The differences, fisrt movie is the only one with sound (and crappy at that) but the preloader becomes visible at 30%, whereas the third with no sound and 50 kb's less hangs till 90%. So scratch audio off (however I haven't explored the different streaming options). The only other difference is that the third movie has the most code and as you can see what kind of game it is, you will understand why, and it also has the LEAST amount of graphics in it as well. So my bet is that all the code is being loaded before any of it is executed. CAN ANYONE VOUCH FOR THAT or have any other suggestions as to what it could be..

View Replies !    View Related
Flash Load Order In HTML
I have an HTML page with 2 seperate flash movies. I need the first one (navbar) to load before the mainwindow swf (loaded.swf) loads. Although the navbar.swf HTML code comes before the loaded.swf code, loaded still loads first. Take a look at the url and you will see what I mean:

www.Xfuse.com/test.html

The top white bar should be navbar.swf and should be visible while the preloader is going. Please help!

Thanks
webdev84

View Replies !    View Related
Load Order/ Streaming MC Vs. Graphic
When loading, Flash streams the main timeline, correct. However, if a movieclip exists on the main timeline, it will load the entire movieclip before displaying the first frame of it. What then, is the rule for Graphic Symbols (set to "Play Once"). Will it stream along with the main timeline? Or does the entire contents of the symbol need to load before displaying the first frame?

View Replies !    View Related
Load ORDER: Gerneral Opinions,anyone?
hey all. this thread isn't neccessarily about preloaders, but about the load order that the Flash player uses with regards to layers, frAMES, and _levels. For the sake of this discussion let's assume you were on a desert island with NO PRELOADERS! how would you go about planning out the most efficiant, strategic loading of your assets into the Flash player, assumimg you had a complex, multi layer, multi-
level Flash movie you wanted to gradually stream onto the stage.

AND-which load order do you find more effective for which reasons:
top to bottom or bottom to top?

-just looking to start a gerneral discussion. forgive me if this topic is covered elsewhere. all i saw were LOTS AND LOTS of threads on preloaders. kindly redirect me if i've overlooked a related thread.

*thanks*

View Replies !    View Related
Load And Play Movieclips In Order ?
hey thanks for checking my problem.
i have an inputbox on my form and a button, when the button is pressed the string in the inputbox is split into an array of single words "my name is jim" becomes "my" "name" "is" "jim" etc. what i want todo now is to load the precreated swf files called "my" "name" etc. in order and then play them in order...
the swfs only contain sound and once the active movieclip has finished it should start playing the next one in the order...
if it can't load a swf file because it doesn't exist i'd like it to load an error.swf which beeps or something like that

i know how i can load the swf with loadmovieclip and just appending .swf after the name but i have no idea how i could preload all the requested movieclips and then playback them in the order they were loaded

if someone has an idea or an example that would be great
thanks in advance

View Replies !    View Related
Load Movieclips In Random Order?
I have a mc = "thumbs_mc" this is empty

Inside thumbs_mc i have e.g. thumbnail1_mc, thumbnail2_mc etc up to a final total of around 30

thumbs_mc position on stage is defined by setProperty and I have positioned the thumbnails inside thumbs_mc on the stage.

What i want to achieve is that the thumbnail_mc's appear in a "random order" - I attempted to do it by simply a masking effect. i.e an extra box is made to appear each frame. However this didnt work

How could i do this via actionscript?
If an fla is needed, that can be done.

View Replies !    View Related
Load.XML File In A Alphabetical Order?
Hello!

How do i load the content from a .XML file in a alphabetical order?

For example i have this:

---------------------------------------------------

<?xml version="1.0"?>

<C1>

<1>Phoenix</1>

<2>Charlie</2>

<3>Alpha</3>

<4>Beta</5>

</C1>

---------------------------------------------------

I whant to load the above .xml to a flash movie, and show it in a list - Alphabetical!

Anyone know how that could be done in a simple way?

Best regards,

View Replies !    View Related
Load Xml-nodes In Alphabetic Order
Hello!

How do i load the content from a .XML file in a alphabetical order?

For example i have this:

---------------------------------------------------

<?xml version="1.0"?>

<C1>

<1>Phoenix</1>

<2>Charlie</2>

<3>Alpha</3>

<4>Beta</5>

</C1>

---------------------------------------------------

I whant to load the above .xml to a flash movie, and show it in a list - Alphabetical!

Anyone know how that could be done in a simple way, would be realy glad if i also could get a code example.

Best regards,

View Replies !    View Related
Load Order And FONT MADNESS
I have a flash movie that uses 5 fonts and a few graphics. When I go to load the movie, all the font's and the graphics load on the first frame. Even if I load the font's in from a shared library, they still load in the first frame. The problem with this is... my preloader starts at about 45%. Not very useful. How do I make my preloader start loading from a low percentage (0%)? Or how do I force my fonts/graphics to load at a later frame (It would be cool if I could make the preloader say loading fonts, loading graphics and actually have the movie doing that)?

Thanx

View Replies !    View Related
Load Order & Class Initialization
anybody have experience with load order in flash publish settings ? Is bottom up means the most bottom layer in stack order loads first ? and top down means the top most layer loads first ? Is that affected classes put in different layer ? Classes in first loaded layer will initialized first ?

tia
- andar -

View Replies !    View Related
1 Preloader, Load 3 Movieclips In Order... How?
What would be the best way to load a site with these swfs with one preloader? I've read through some postings, but I don't know what is the best to do...

main.swf= main movieclip, which will load 3 swfs in order for intro.

buttons on the main.swf that load various swfs in order:
btn_1= on click loads 4.swf, 5.swf, and 6.swf in order
btn_2= on click loads 7.swf, 8.swf, and 9.swf in order
btn_3= on click loads 10.swf, 11.swf, and 12.swf in order

What is the best way to do this?

View Replies !    View Related
Publish Settings - Load Order
Hi

Can anyone tell me if there are any advantages/disadvantages when choosing a Load order when publishing in Flash. I understand what they do but cannot see exactly when one method would be better. Unless we are talking about the inclusion of Actionscript.

Advice much appreciated.

Regards

Geoge

View Replies !    View Related
Undesired Load Order Of FLV And MP3s
Hello

I have added a scrolling Flash page with a FLV and several MP3 files in each their own player to site below.

I have set the video to autostart.
The MP3s are set to not autostart.
When I export the FLA the swf nicely plays the video first, and the mp3s are loading in the background simultaniously.
When viewing the page in Firefox and Netscape the same happens, just as intended.

Problem:
But in IE and Safari all the sound files are loading first (and not playing) and not until they are fully loaded will the video start loading and playing. This results in viewing an empty video window for a long time.


1) Is there are way to make all browsers load the video first and play it first?
2) And in general manage load order of video and audio files in a Flash file?


Thank you on beforehand.

ggaarde

http://www.corpstory.com/video.htm

View Replies !    View Related
Load A Group Of MCs In Random Order...
I have a group of Movieclips that I want to load in a random order, until they are all loaded. In other words, when the movie starts, a random MC of the bunch would load, followed by another random, and on until they are all loaded.

Right now I have the MCs with a quick alpha fade in onLoad, problem is they all load at the same time, but what I'm trying for is an organic type of loading, like they're blooming up all over the place.

Make sense? I don't know how to attack this one, any help would be awesome!

Thanks,
Tim

View Replies !    View Related
Hybrid Page Load Order
is it possible to define loading order in a hybrid page like this:

first load all html things... then when all is loaded, load the swfs?

I´ve searched about this, but didn´t find anything...

View Replies !    View Related
Load Order Of Nested Movie Clips
I find it disturbing that load clip events for child MCs occur after the load event for parent MCs. I would expect that when a parent load event is fired, you would be guaranteed that all contained children are also loaded. Unless I am mistaken, this is not the case.

The inner/child MC is just a couple of items such as a text box and such. The load on the inner child works fine. This is where I define my properties, functions and events. The wrapper MC just encapsulates all of this and allows me to stick it all in the library. When I drop (reuse) an instance of the wrapper MC onto the stage and try to hook up to MY event handlers in the wrapper MC's load clip event, I find that the properties, functions and event definitions on the innter MC have not yet ben set up.

Anyways, I have a work around which seems a little cludgy to me. The enterFrame event DOES seem to wait until all child MCs are loaded. As such, initialization can be done the first time that event is entered as such:

onClipEvent(enterFrame){
if (this._initialized == undefined){
this._initialized = true;
obj.setOnChangeValue(_root.HandleIt);
}
}

Note that obj is the instance of the inner MC. setOnChangeValue sets my event handler (which is defined in the wrapper MC).

Does this seem like a strange approach to you? I don't really like the enterFrame approach, but I don't see another way due to the load order.

Thanks,

View Replies !    View Related
External Data File Load Order
I'm attempting to use the Simple Dynamic Graph project (http://www.flashkit.com/movies/Scrip...7156/index.php) and am running into problems when I attempt to load data from an external text file.

The data does load, but according to the debugger, only after everything else has happened in the script (which means not much happens).

It works fine with internal, canned data.

I've tried a few things to make it load the external file first before moving on to processing the data (while loops, etc) but none of that seems to work (though I did manage to fill my pagefile at one point).

Would anyone have any ideas on this? Thanks!

Here's the relevant stuff:

data.txt
Val=0;4;8;12;16;20;24;5;7;9;3;15;22;23;16;15;32;36 ;35;21;0;25;13;8

Flash script:
//Load external text file
loadVariablesNum("data.txt",0);

//Create an array from the string of values
myArray = Val.split(';');

//Determine how many values there are
totVals = myArray.length;

//Set the first horizontal value equal to the x pos of the post
hor = 40;

Mov = _root.Dot;
Space = 428/totVals;

//Set the y pos of the original instance
setProperty("Mov", _y, 200 - (myArray[0]*5));

for (n=1; n <totVals; n++) {
//Dots and positioning
hor = hor + Space
depth = 200 - (myArray[n]*5);
duplicateMovieClip("Mov", "Mov" add n, n);
setProperty("Mov" add n, _y, depth);
setProperty("Mov" add n , _x, hor);

//get coordinates for the lines that are drawn dynamically
if(n==1){
x1 = getProperty(_root.Dot,_x);
x2 = hor;
y1 = 200 - (myArray[0]*5);
y2 = depth;

}else{
x1 = getProperty(eval("_root.Mov" add (n-1)),_x);
x2 = hor;
y1 = getProperty(eval("_root.Mov" add (n-1)),_y)
y2 = depth;
}

//Lines: dynamically draw lines in an empty movie called "Line"
with(_root.Line){
lineStyle (1, 0x0000ff, 100);
moveTo (x1, y1);
lineTo (x2, y2);
}
}


stop();

View Replies !    View Related
Flash & HTML Load Order Problems
I have a very long page with a dozen or so SWF files. All the SWF movies are actually the same file, the only thing that makes them different from each other is the variable that is passed to them. ie:


Code:
..<param name="movie" value="movie.swf?jpeg=myimage1.jpg"..... etc etc

further down the page..

..<param name="movie3" value="movie.swf?jpeg=myImage3.jpg"..... etc etc
each SWF has a different jpeg loaded using the load movie actionscript command. It all works find and dandy except one thing which I cannot figure out.

As the page loads, as soon as "movie.swf" loads, all the HTML graphics (gifs, jpegs etc) will stop loading while each of the "myImageX.jpg" images are loaded into their flash SWF movies. Once all these jpegs have been loaded, the HTML stuff will then resume loading as normal.

Is there any way, that I can possibly stop all the load movie jpegs being loaded all at once? If my page is long and the user is viewing the top page. It can look as if nothing is happening while the flash jpegs are loaded into their movies out of the users view.

I hope I explained that so people can understand. I just want my page to load gradually. Anyone any ideas?

regards

View Replies !    View Related
Load Cards In Random Order On New Game
Hi i have 20 cards and a 'new game' button. Can anyone tell me how to make the cards load in random order each time the new game button is pressed?

Kez

View Replies !    View Related
Load Order Of Custom Components/Classes
Hello All ---

Is there a way in AS2 to determine the order that classes will load/initialize? I have 2 Custom Components on the stage and need Component B to load before Component A. I have found that if I put them on different layers, that sovles the problem, however, that is really not an ideal fix.

Thanks for any and all replies.

View Replies !    View Related
Load Order Varies Depending On Bandwidth
I have a small gallery that loads thumbnails and the links they represent from an xml file. When I test it gallery on my computer everything works fine. However, when I simulate a download or when I upload to an actual site things start going wrong.

Most of the code is borrowed from this tutorial (which by the way was very helpful ) :
http://www.kirupa.com/developer/flash8/best_structure_flash_site.htm
I modified what i needed too and reused the rest. Everything works fine except for that the load order of the thumbnails is reversed. I haven't really changed any part of the code that would cause this, or at least I don't think I have.

The real problem, however, is that when i simulate a downloaded version or when upload them to my test site, the position of the thumbnails are swapped. A thumbnail i expected to load in a certain place and order has now taken the place of another one. When clicking a thumbnail it displays the picture of the thumbnail that should actually have been there, so the links still load in the correct order.

When i change the simulated bandwidth while testing the movie, the position alter. At one bandwidth they show up in a certain order and when then trying out another bandwidth the order changes.


Now, my question is: What the hell is going on?



The XML load function:

Code:
function loadXML(loaded) {
if (loaded) {
var xnRootNode:XMLNode = this;
//trace( xnRootNode );
// number of buttons
nTotalButtons = xnRootNode.firstChild.childNodes.length;
// fill arrays
for (var i = 0; i<nTotalButtons; i++) {
thumbImages.push(xnRootNode.firstChild.childNodes[i].childNodes[0].firstChild.nodeValue);
thumbLinks.push(xnRootNode.firstChild.childNodes[i].childNodes[1].firstChild.nodeValue);
}
// everthing is loaded; we can move on
gotoAndStop(3);
}
}
No problem there right?



Here's the where the thumbs are loaded:

Code:
for (var i = 0; i<nTotalButtons; i++) {

thumb_holder.createEmptyMovieClip( "thumbButton"+i, i );
// make new MovieClip and set to newly created button
var thumbButton:MovieClip = thumb_holder["thumbButton"+i];
// load images
var backwardsCount:Number = nTotalButtons - 1 - i;

image_mcl.loadClip( thumbImages[backwardsCount], thumbButton );
}

// Invoked when the actions on the first frame of the loaded clip have been executed
mclListener.onLoadInit = function(target_mc:MovieClip) {

// add link property
target_mc.linkURL = thumbLinks[nCounter];

target_mc._alpha = alpha;

// add events
target_mc.onPress = buttonClick;

.
.
.

nCounter += 1;
};

image_mcl.addListener(mclListener);

// Event handlers
function buttonClick():Void {
pic_holder.loadMovie(this.linkURL);
}
Any and all help is welcome.

View Replies !    View Related
Setting-up Thumbnail Grid Load Order...
I am trying to get my thumnails to load in rows, 22 across, and up to 3 rows down. However, I can't seem to get my math right. I can get them to load up and down 3 rows, but not across first. Can anyone explain the math required to accomplish this?

Here is the file I am working with:

http://www.jbnight.com/flash/gallery.zip

Thanks!

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