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








How To Check For Loaded Data


I have a movie that loads both swf files and variables in difftent spots. I set up a basic loader_mc that plays a lil animation telling the user that it is loading.
But I dont know how to activate it when something is loading.
I am using both "loadMovie" and "LoadVars" at diffrent frames in the timeline.

How do i tell it to play the loader_mc "_root.loader_mc.gotoAndPlay(2)" when it is loading. Then "_root.loader_mc.gotoAndPlay(1)" once it is loaded.

help Please




ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 05-01-2007, 09:57 PM


View Complete Forum Thread with Replies

Sponsored Links:

NEED YOUR HELP How To Check If New LoadVars Data Is Completely Loaded?
making my first guestbook... the topic question speaks for itself. What can I use with loadvars that works like onData? HEEELP! thanx

View Replies !    View Related
Srollpane Scrolls When Loaded Data From XML, Not When Loaded Data From ASP
Hi,

I load into scrollpane a swf, which has a dynamicly loaded data. If I use the XML file, it works (the scrollbar is visible), but if I use a asp file, which creates xml, it doesn't work (the scrollbar is not visible). Any ideas?

View Replies !    View Related
Loop Through Loaded Vars To Check If Loaded
Hi

say i have 3 text files that look like:

myarray=blah, blah, blah&finished=1

How can I load the files with a loop then loop through the 'finished' var to check that they are all loaded?

thanks
L

View Replies !    View Related
Is It Possible To Continuously Check For New Data?
Hi,
I have a question I thought I'd ask before I start trying to do something that might not be possible. What I want to achieve is this:
I want my flash webpage to continuously check a database every 3 seconds if there is new information in the database. If there is new information the flash webpage will then change in some way.

I was hoping that this work against the database could be hidden from the user so that the whole webpage isn't reloaded every time a check is made against the server.

Thanks,

Anders

View Replies !    View Related
SharedObject Data Check?
Hi i am currently designing a game where when the user starts the game they enter thier name and press continue, thier name is then stored in a ShredObject by this command "localInfo.data.user = name;", and if the player wins or loses they get the chance to play again. basicaly i want to check at the start of the game if a value exists within the "localInfo.data.user" and if it does i dont want to display the box for the user to enter thier name as it already exists. But i dont know how to do this i tried the below statement but it didnt work i would really appreciate any help:

if(localInfo.data.user == false)
{

}

View Replies !    View Related
Data Retrieval Is Succesfull Check
I have a database driven textfields site.

Three fields are fed with data from the mySQL database. However one is not. Because it takes some time to receive the data from the database (0.5 seconds it seems) the textblocks are cleared by a button like this:

textfield1=""
textfield2=""
textfield3=""
then I request the new data through a php.

The problem is that the one textfield that doesn't change looks odd. What I want to do is to hide it untill the other textfields are full en then show it again. So is there a code that states weither the data retrieval from a database is succesful? Like a loop of somekind?

View Replies !    View Related
Check An Input Menu For Data Type
Does anybody know an easy way to check if the an input is a number?

The way i was thinking of doing it was, beaking the input apart and chcking every character if it is equal to 1,2,3 .. 0 . (In an Array, obviously)

View Replies !    View Related
How To Save Data From Textboxes And Check Boxes
i wanna know how to save the data that they type in the combo boxes and the check boxes and all the boxes, thank a lot

View Replies !    View Related
Check For Loaded .swf
I'm trying to make it so that when you press on the "aboutButton", it checks to see if anything is loaded on level1. If there is, then I want to attach the MC "Warning_ID". It doesn't seem to be checking the level. What am I doing wrong?

Code:
_root.aboutButton.onRelease = function() {
if (_level1.getBytesLoaded>0) {
_root.attachHere2.attachMovie("Warning_ID", "currentWarning", 5);
stop();
}
if (_level0._currentFrame == "aboutFrame") {
stop();
} else {
_level0.gotoAndStop("aboutFrame");
}
gotoAndStop("closed");
_root.buttonShield.play();
};

View Replies !    View Related
Check If Loaded
Hi

I want to make a little check if a heavy frame is loaded. On that frame I have a mp3-file. What I’ve done doesn’t work properly, probably because I really dont know what I'm doing. This is my code:

Frame1:
load (“sound”);

Frame 2:
a label “loop”

Frame 3:
ifFrameLoaded ("sound") {
gotoAndPlay ("sound");
}
else
{
gotoAndPlay ("loop");
}


How could I do this to solve my problem?

Anders

View Replies !    View Related
Check If JPG Has Been Loaded. - Please Help.
I have a flash movie where there will be a slideshow with a minimum of 1 and maximum of 5 jpgs that will be dynamically loaded into a movieclip, and fade in and out linearly, and will pull jpgs labeled 01.jpg-05.jpg. After getting to the last image (05.jpg), it would go back to the first frame and start over again.

I can load the .jpgs dynamically fine, but I'd like to check that if for instance there wasn't a "04.jpg" file to be found, rather than go on to the next frame that looks for "05.jpg", that I could tell the movieclip to go back and play the first loaded jpg again. I can't figure out how to check if there is a jpg loaded or not.
Here's the basic loading code I have for a particular frame in which I am loading a jpg:

imageHolder2._x = 0;
imageHolder2._y = 0;
loadMovie("02.jpg", _root.container.imageHolder2);

View Replies !    View Related
MC Loaded Check
Hi.
Is there a way to check what movie is loaded (dynamicly) into a movie clip?

Thanks,
1M.

View Replies !    View Related
How Do I Check If An Swf Has Been Loaded?
I want to check a container movieclip to see if the swf has been loaded into it. I have 4 buttons,

"home" "about us" "photos" "contact"

each button loads a diffrent section of the site (each section is an external swf of course )

But the "photos" button also loads another swf named "photonav.swf" into it's own container. this swf contains a list of MORE buttons, these buttons load images for the "images" section.

Basically what i want is for the other 3 buttons to check wether "photonav.swf" has been loaded already and if it has, to unload it so it's not in the way anymore. And if it has not , than to do nothing.

And also if the user has already loaded photonav.swf, to prevent the "photos" button from loading it again if it's already there.

something like:

If "photonav.swf" inside of container".loaded = true
unload it
else
do nothing

or

If "photonav.swf" inside of container".loaded = false
loa it
else
do nothing


easy right?,...i'm such a noob

any takers???:

View Replies !    View Related
How To Check If Loaded?
Hello at my movie at first frame i am loading



Code:
myData = new LoadVars()
myData.load("en.txt")
myData.onLoad = function(succes){
if(succes){
mainpage_txt.htmlText = "<b>"+this.mainpage+"</b>"
} else trace("Error loading data")
}


and i am trying to load some swf files that contain the same text at the first frame but i want to make a change is it posible that stis file would check the root file what txt file is loaded and load the same there are only 3 possible en.txt , de.txt , fr.txt


i don't know how to manage this one but i hope its possible

any advices are welcome
Thanks in advance

View Replies !    View Related
Check If .SWF Loaded
I'm using the below script on a button to go from one menu to a new menu. The problem is that it loads the next menu without allowing the previous menu the transition out. What code do I use to check if there is currently a .swf loaded in a specific movie clip?

on (press) {
this.menu_container.back.gotoAndPlay(21);
this.menu_container.control.gotoAndPlay(21);

animation.enabled = false;
webpage.enabled = true;

this.menu_container.loadMovie("animation.swf");
}

View Replies !    View Related
Check To See If Already Loaded
I have a flash site with several buttons that load an swf file when clicked. what code can i add to check to see if the swf is already loaded. so that it doesnt load it again?
Thx

View Replies !    View Related
What's Loaded Check
Hello. Thanks for the glance.
Is there a way to check what movie is presently loaded into a movie clip? I am trying to check the filename of a jpg that has been loaded into an MC dynamicly.

Thanks for any help,
1M.

View Replies !    View Related
Check If ASP File Has Loaded On Mac
Has anyone ever had a problem with loops that check to see if variables from an ASP file have loaded on a Macintosh. This type of loop seems to work fine on the PC, but on a Mac the loop tends to get stuck about half the time. Any clues out there.

View Replies !    View Related
Check If Textfile Has Loaded
Please help me anybody.
I'm loading txt file by loadVariables(example.asp)
and then use one of it to create a set of duplicated moveClips. The quantaty of clips is equal the value of loaded variable. So, if the frame where I creat this clips follows not right after frame with loadVariables, that Flash has enough time to generate duplicates. But if this frame is next one, than Flash create nothing. I have to make a checking circle if all the variables have loaded.
How? P.S. txt file is creating by ASP.

View Replies !    View Related
How Can I Check To See If A Variable Has Loaded?
Hello lovely flash people:

I have a question for you:

I am working on a form (eeek) and I need to create a thank you page, so when the user hits submit, it loads the variable (ASP file) and then checks to see whether the variable has been loaded and if it has then the user goes to the nextframe, with all the thank you stuff.

For the life of me, I have tried everything and I wish I was an actionscript wizard but (boo hoo) I am not(yet) so I need to pick your expert brains. Here is the code on the submit button:

on (press, release, keyPress "<Enter>")
loadVariables("http://64.50.149.196/EmailGen/SendEmail.asp", "", "POST");
EMAIL_FORMNAME = "BNI Contact Form";
EMAIL_TO = "welcome@9th.com";
EMAIL_SUBJECT = "BNI Contact Form"
}
}

I don't know how to check to see if it has loaded. I know, I need to somehow stop the movie and then do the checking and then go to the thank you page but it is really hurting my head, everything works but I need to redirect the user:

PLEASE, PLEASE, HELP ME. I am soooooooo close to finishing it!!! Thanks, and I owe you in advance. Have a great weekend all, and don't work too hard!!

View Replies !    View Related
Check To See If Variables Loaded
what is the best way to check to see if variables are loaded?
i have a dunamic textbox that is getting it's text from a php file writing to and then reading back in, and i have a "smart" text scroller that resizes it's scroll bar from the maxscroll properties, but i nedd an action on the clip that checks to see if the variables are loaded b4 it does it's thing, can anyone help?
thanks in advance.
bb

View Replies !    View Related
How Can I Check That A Level Has Loaded?
hi wonderful flash people:

I am in a bind about levels, now, I am loading a variable using levels, and I was wondering if there was a way that I could check to see if a level has loaded? I have this on the next frame (after loading the variable in the previous frame):

if (_level2.getBytesTotal() > 0) {
gotoAndPlay (38);
} else {
gotoAndPlay (35);
}

but it just stays on the current frame and I end up receiving a zillion emails (i am loading an ASP, and before you say it, the checking variables doesn't seem to work either...).

Hope you can help! Thanks and have a brill weekend!

Jag

View Replies !    View Related
How Can I Check To See If A Level Has Loaded?
hi wonderful flash people:

I am in a bind about levels, now, I am loading a variable using levels, and I was wondering if there was a way that I could check to see if a level has loaded? I have this on the next frame (after loading the variable in the previous frame):

if (_level2.getBytesTotal() > 0) {
gotoAndPlay (38);
} else {
gotoAndPlay (35);
}

but it just stays on the current frame and I end up receiving a zillion emails (i am loading an ASP, and before you say it, the checking variables doesn't seem to work either...).

Hope you can help! Thanks and have a brill weekend!

Jag

View Replies !    View Related
Check For Loaded Movies In MCs
trying to load movie into mc, however, if the movie clip has already been loaded, then do nothing.

this is what i came up with...obviously it dont work...


on (release) {
if (true) {
ifFrameLoaded ("_root.menu.gallery.webdesign.container", 25) {
break;
}
} else {
loadMovie ("flash/gallery_web.swf", "_root.menu.gallery.webdesign.container");
}
}

all i need to do is check if a movie has been loaded into the mc "container". there are 5 of these containers that will also have this same checking method.

please help!!!! thanks in advance...

View Replies !    View Related
Check That A SWF Has Fully Loaded?
want to dynamically load a sequence of SWFs into a movie.

each movie is called inf1.swf... inf2.swf etc.

so I create a loop with "i":

loadMovie ("inf"+i+".swf", "_root.loader");

but.. how do I check if the SWF is fully loaded, so I can i++ and load the next one in the sequence?

I tried onClipEvent(data), but I think the SWF is streaming the data, because it registers as TRUE as soon as the SWF loads in..

anyone .... anyone....?

View Replies !    View Related
Check If JPEG Loaded?
Loading a JPEG (the url of which is the var "iphoto")

loadMovie(iphoto,"_root.galleryPhoto");
_root.photoPhoto.gotoAndPlay("displayed");

I must wait for the image to load before I go to the next frame. How do I do this?

View Replies !    View Related
Check For Loaded Movie
Hi all,

i'm working on a site at the moment that needs to check if a movie has been loaded into a level or not if it has i need to load the movie into that level if the movie is already there then i don't want anything to happen!

i know i need to use something like an if/else statement but i'm unsure how to script it so it can check for the loaded movie!!

any help would be great

regards

jon

View Replies !    View Related
Jpeg Loaded Check
Hi,

how cab I check if a jpeg loaded into a mc has finish?

Thanks!

View Replies !    View Related
Jpeg Loaded Check
Hi,

how cab I check if a jpeg loaded into a mc has finish?

Thanks!

View Replies !    View Related
Check To See If Swf Is Loaded Before Continuing
I am loading a swf to level 20
then after that I load another swf into level 0 (that replaces original swf)

then the swf on level 0 access the information that resides on level 20.

swf on level 20 is 618kb and the one on level 0 is only 153kb...

so how do I code so that the first swf that calls up the two new swf's (level 0 and level 20) will not call up the level 0 new swf until the level 20 has loaded?

the level 20 one is a music clip...needed for the level 0 clip and ensuing swf's that will loaded into level 2, the code is already written so the the new level 2 swf will be able to turn on and off the level 20 music.

View Replies !    View Related
Check If Jpeg Has Loaded
I searched the boards, googled it but I don't come accross any good solution.

Is there some standard script wich cheks if the jpeg is fully loaded then executes another movie to play.

This is how I preload the jpeg :

onClipEvent (enterFrame) {
total = _root.beeld.pictures1.getBytesTotal();
loaded = _root.beeld.pictures1.getBytesLoaded();
this._xscale = (loaded/total)*100;
_root.percent = Math.round((loaded/total)*100);
}

Then I check if it has loaded completely and want another movie start playing.
Well this part isn't working :

if (_root.percent == "100") {
_root.beeld.gotoAndPlay(2);
}

What's wrong here?

View Replies !    View Related
Check If Loaded Array
I'll just say up front that i have no experience creating arrays. I'm wondering if it's possible, (with an array) to 'record' where people have gone in my site. That way if they've already been somewhere, (specifically if a picture has been viewed previously) it'll show up right away.

currently on my site when you click on the photos in the gallery after they've loaded the preloader still pops up for a fraction of a second when you go to view them again. i want to get rid of that.

if anyone has any bright ideas, that would be awesome.

many thanks,
_greg

View Replies !    View Related
Check If External Swf. Is Loaded
I'm using this to load external images as background on different frames.

loadMovie("flash/images/back1.swf", "_root.loader");

Frame 1-8 have back1.swf as background.
Frame 9-12 have back2.swf as background.

I don't want to load the swf. all the time I'm in a different frame, I want to be able to check that if I'm in Frame 2 and back1.swf is loaded not to load it again.
However if I jump to frame 10 It needs to load back2.swf.

Thanks.

View Replies !    View Related
Check If Movie Is Loaded
I need to write an action to check to see if a movie is loaded on level 1 and if so to go to frame 20 and if not go to frame 30.
I have several different movies that load onto level 1 so i'm hoping there is a simple way to check if ANY movies are loaded there without having to check for each one.

View Replies !    View Related
Can You Check Loaded Movies?
after a loadMovie( URL, instance);
is there a way that you can check what file is loaded to a specific MC instance ??

a quick answer would be MUCH appreciated! thanks!

View Replies !    View Related
Check Loaded External
what code do i use to stay on one frame til an external jpg file has loaded on another frame?

View Replies !    View Related
How Do You Check To See If A Txt File Has Loaded Into Your Swf?
I'm loading a txt file in frame 1(txt file has a variable called 'trigger' defined)
My frame 1 has:


Quote:




loadVariables("information.txt,""):






--------------------------------------
If that variable (in information.txt) says 'yes', then go to and play "load".

My frame 10 has:


Quote:




if (trigger == "yes") {

gotoAndPlay("load");

}

stop();






my problem is most of the time i think it is checking for the variable even before the txt has full loaded and therefore it is not working. how do i say, when this txt file has loaded, then check for the variable ("trigger")? I'm assuming this is the problem cos the swf works by itself, but when it is put into an actual java webpage, it doesn't work.

View Replies !    View Related
Check If BOTH Images Have Loaded
I'm using below code to load two images in two seperate movieclips. I want the rest of the animation to start when BOTH images have been loaded into the movieclips. How do I do that? I know it's with onLoadInit, but that would make ik start when 1 clip has been loaded.


Code:
stop();
//load images in container
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.loadClip("image1.jpg", imageclip1);
mcLoader.loadClip("image2.jpg", imageclip2);
//
//add listener object
var loader:Object = new Object();
mcLoader.addListener(loader);
//
//check if images have loaded
loader.onLoadInit = function(mcLoader){
gotoAndPlay(2);
}

View Replies !    View Related
Check If An External Swf Has Been Loaded
Hi all!

I use loadMovie() function to load external swf files when the user clicks on some button. But the swfs load every time the user clicks on the button. How can I check if a swf has been loaded so the user does not have to wait for the file to load again?

Thank you! Any help precious!

View Replies !    View Related
Is There A Way To Check If A _level Is Loaded?
Hi -

Just wondering if anyone knows if there's a way to check if a level has been loaded into your flash movie. For example:

this isn't correct syntax but more of just my idea of what I'm looking for:

if isLoaded(_level10) {
comments
}

Thanks,

-daring.

View Replies !    View Related
Check If Loaded Then Ignore?
I have the following code that is inside an MC that loads when a nav button is clicked. This same code will be on all 4 nav buttons but I don't want it to re-load each time. Is there a way I can add code to it so that whichever nav button initially loads it, if another nav button is clicked it will check to see if it's loaded and if not will only then load it. I only want to load it once.

Help me Obi Wan Kenobi your my only hope!

Thank you!


loadMovieNum("QUOTES.swf", 5);
stop();

View Replies !    View Related
Check When Movie Has Loaded
Hi - is there any script available that will be able to set a variable when an external movie/image has loaded in an empty movie?
I've got an empty movie on the workspace and I want to disable some buttons after calling emptymovie.loadMovie("image.jpg") and enable them when image.jpg/swf has loaded.

Can this be done without using event listeners?

View Replies !    View Related
How Can I Check A File Is Already Loaded
Hi,

I want to know if there is a way to know if a swf file is already loaded, in order to change the behavior of the preloader

Any ideas are welcome

Thanks
rS

View Replies !    View Related
Check If Loaded Array
I'll just say up front that i have no experience creating arrays. I'm wondering if it's possible, (with an array) to 'record' where people have gone in my site. That way if they've already been somewhere, (specifically if a picture has been viewed previously) it'll show up right away.

currently on my site when you click on the photos in the gallery after they've loaded the preloader still pops up for a fraction of a second when you go to view them again. i want to get rid of that.

if anyone has any bright ideas, that would be awesome.

many thanks,
_greg

View Replies !    View Related
Check If Movie Is Loaded
Hi All

can you please help me in validating the following

i have a button when it's being pressed a clip1.swf will be loaded on the _root.screen, and when the mouse rolls out from the button the clip0.swf should be loaded, NOW my question

if the button is NOT pressed (clip1.swf) is not loaded , how can i tell the rollOut action not to load clip0.swf.

i think it should be something like

check if(clip1.swf) is loaded
do ( load(clip0.swf) ) else
do (nothing)

Please help me out in this, it would be the third time i post a question here and no one answers me .



on (press) {
loadMovie ("clips/clip1.swf", "_root.screen");
}
on (rollOut) {
loadMovie ("clips/clip0.swf", "_root.screen");
}


many thanks in advance

View Replies !    View Related
Check If Jpg Is Loaded From Folder
Hi guys

I have a gallery where Im loading jpegs from a folder
I stop the timeline and load a jpg based on variabels from an xml file

How do you check if the image exists in the folder
I already check if the variabel is undefined but I also want to perform some action if the file is unavailable in the folder.

Say for example somebody enteres the image "firstImage.jpg" in the xml and then saves the image as "ffirstImage.jpg"
Flash wont find that image.

View Replies !    View Related
Check If A Movieclip Has Been Loaded?
Is there a way to check if a movie clip has already been loaded, and then skip it if it has?
Attached is my swf. The front info text should only fade away once, not every time someone clicks on a button. Once they're already in a gallery, it shouldn't come up again.

Ideas?

View Replies !    View Related
Check If All Images Are Loaded
I'm trying to create a dynamic image gallery. Is it possible to check if all the images are loaded? If so, anyone has a hint?

View Replies !    View Related
Check If MC Has Movie Loaded...?
Hi people of Kirupa...
I'm doing a friends photograpy site that has a slideshow. http://www.wowernfoto.dk/test
This slideshow is loaded into a containerclip on the mainstage.
Another container clip loads the site content (services, contact etc.)
But the site also has a gallery which unloads the slideshow mc, as the gallery takes up that place too.
Now... i need the buttons for Services, Contact etc to check if the slideshow mc is loaded into the holder clip, and if not then load it aswell as the related content.
I need it to check if the slideshow is already loaded, so i don't reload the slideshow everytime a button pressed.
Something like:
services.onRelease = function(){
loader.loadMovie("services.swf");
if(loaderSlideshow.movieisLoaded == false) {
loaderSlideshow.loadMovie("slides.swf");
}
};


Can anyone help?

View Replies !    View Related
Check If Image Has Already Been Loaded
Well as the title sais, is there anyway to check if the image has been cached, or has already been loaded so you can skip the preloading process (it looks pretty ugly when the preloader appears and disappears in an instant).

Thanks.

View Replies !    View Related
Check If Loaded Array
I'll just say up front that i have no experience creating arrays. I'm wondering if it's possible, (with an array) to 'record' where people have gone in my site. That way if they've already been somewhere, (specifically if a picture has been viewed previously) it'll show up right away.

currently on my site when you click on the photos in the gallery after they've loaded the preloader still pops up for a fraction of a second when you go to view them again. i want to get rid of that.

if anyone has any bright ideas, that would be awesome.

many thanks,
_greg

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