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








Preload Not Working


this is a pretty basic preloader but it seems to not be working all the time. when uploaded onto the server. it will show loading, and then sometimes when its suppose to load the scene it doesnt. whats the problem.

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

frame 2
-------------------
loadPercent = (Math.floor (_root.getBytesLoaded() / _root.getBytesTotal() * 100) + "%");
loadBytes = (Math.round((_root.getBytesLoaded() / 1024) * 1000) / 1000 + " Kb of " + Math.round((_root.getBytesTotal() / 1024) * 1000) / 1000 + " Kb total Loaded.");

if (_root.getBytesLoaded() == _root.getBytesTotal()){//Check for finished loading
//If loaded, final update to fields
loadPercent = "100%";
loadBytes = (Math.round((_root.getBytesLoaded() / 1024) * 1000) / 1000 + " Kb of " + Math.round((_root.getBytesTotal() / 1024) * 1000) / 1000 + " Kb total Loaded.");

gotoAndPlay("conthome");//Where to go once your movie is loaded
}


frame 3
-----------
gotoAndPlay(2);




Ultrashock Forums > Flash > ActionScript
Posted on: 2003-04-22


View Complete Forum Thread with Replies

Sponsored Links:

Preload Problem (PC = OK But MAC = NOT WORKING)
Hi, I'm having the strangest problem...
I'm using a main flash movie with movieclips in it to whom I attach other flash movies so I can ballance the load. I use a loadmovie command to load the external SWF, then I stop that swf movie and check the getBytesLoaded() with the getBytesTotal() until they are equal. Sounds normal I know and everything works fine on any PC I have tested, but MAC seems to have some trange issue with this. About half the time, my movie gets stuck in a loop waiting until bytesload equals totalbytes. I tried sending the values to a var and when the check is loop ing, it displays on both accounts 0. Totalbytes and currentbytes.
Does anyone have any suggestions? I tried the getcurrentframe and gettotalframes but the results are excactly the same

Hoping for some sollution....

View Replies !    View Related
Preload Actionsript Not Working
Hey,

It seemed to be working before, but now when I look at it in a browser (on a dial-up connection) it's just a white screen until its done loading, in which case, it goes to my initial frames. I have a keyframe in the first frame with a movie clip that pulses "loading". This is the action script for that frame:


Code:
stop();
if (_framesloaded <= _totalframes) {
gotoAndPlay("Loader", 1);
} else {
gotoAndPlay("Loader", 2);
}
There are multiple scenes, so I don't know if that's a problem or not. Also, my main time line in my main scene is all movie clips, so there's only one ACTUAL main timeline frame. Any ideas?

View Replies !    View Related
Simple Preload Not Working
hey guys i have fixed my problem but now the preload bar wont show up. so its time to rattle ur brains :P nah can yas try and show me wat you guys get.

View Replies !    View Related
Simple Preload SWF Not Working
Hey there,
I have a super simple preloader that works fine when I output in Flash, but when I view it in HTML, it sticks in the preload screen. I checked to make sure that the path to the loading movie is correct. Need help.
Thanks.
Here is the code:


Code:
// stop the movie from continuing
display._alpha = 100;
display.loadMovie("panaboard_intro.swf");
var newXscale = preloader.bar_mc._xscale/100;
preloader.bar_mc._xscale = newXscale;

onEnterFrame = function(){

// percent loaded is loaded/total
var percent_loaded = _root.getBytesLoaded()/_root.getBytesTotal();
// assign percent loaded to preloader movie clip
// in the form of the variable named value
preloader_mc.value = percent_loaded;
preloader.bar_mc._xscale = newXscale * percent_loaded;

if (percent_loaded == 100){

// delete the onEnterFrame event handler
// so that it is no longer being called
// every frame
delete onEnterFrame;

display._alpha = 100;
preloader_mc._alpha =0;
}
}

View Replies !    View Related
Preload SWF Script Not Working
Hey there,
I have a super simple preloader that works fine when I output in Flash, but when I view it in HTML, it sticks in the preload screen. I checked to make sure that the path to the loading movie is correct. Need help.
Thanks.
Here is the code:


Code:
// stop the movie from continuing
display._alpha = 100;
display.loadMovie("panaboard_intro.swf");
var newXscale = preloader.bar_mc._xscale/100;
preloader.bar_mc._xscale = newXscale;

onEnterFrame = function(){

// percent loaded is loaded/total
var percent_loaded = _root.getBytesLoaded()/_root.getBytesTotal();
// assign percent loaded to preloader movie clip
// in the form of the variable named value
preloader_mc.value = percent_loaded;
preloader.bar_mc._xscale = newXscale * percent_loaded;

if (percent_loaded == 100){

// delete the onEnterFrame event handler
// so that it is no longer being called
// every frame
delete onEnterFrame;

display._alpha = 100;
preloader_mc._alpha =0;
}
}

View Replies !    View Related
Preload Into Container-graphic Not Working
Hello all,

Okay, I know this has been beaten to death, but I did a search, read lots of previous posts, and couldn't quite find a solution for this.

I've made the "classic" preloader where you do the loop that says "if getBytesLoaded is less than getBytesTotal, then loop around, and make loaderbar graphic _xscale
equal the percentage" so it grows wider with each loop cycle. When I load this movie with a preloader into level 0 it works perfectly, but if I load it into a target MC, the preload graphic displays but DOES NOTHING.
I've tried many different permutations of this, like putting the bar graphics into the target MC, changing the pathnames, increasing the amount of frames between the loop codes, blah blah. Also am testing on a dialup which is the reason for a preloader.

It appears that by loading a movie into a target MC, the preloader graphic scaling refuses to work.

Anybody experienced this before?
I'm stopping for the night.

Cheers,
Bryan T

View Replies !    View Related
Custom Preload Class Almost Working
hi guys..i am trying to make a preloader class...i'm getting closer, but right now, it only loads the first two in the imageNames array. The class looks like:


Code:
class ELoader {
var mclPre:MovieClipLoader;
var oP:Object = new Object();
var count:Number;
var imageNames:Array;
var place:MovieClip;
function ELoader(imageNames:Array, place:MovieClip) {
var count:Number = 0;
//loadImages(imageNames, count, place);
again(imageNames, count, place);
}
function loadImages(imageNames, count, place) {
var mclPre:MovieClipLoader = new MovieClipLoader();
mclPre.addListener(oP);
var imageIs:String = imageNames[count];
var holder:MovieClip = place.createEmptyMovieClip("im"+count, count);
//holder._alpha = 0;
oP.onLoadProgress = function(clip:MovieClip, bytesLoaded:Number, bytesTotal:Number) {
var perc:Number = Math.round((bytesLoaded/bytesTotal)*100);
if (perc>=100) {
clip._alpha = 0;
}
};
oP.onLoadInit = function(mcClip:MovieClip) {
trace(mcClip);
mcClip._alpha = 100;
};
oP.onLoadComplete = function(mcClip) {
again(imageNames, count, place);
};
mclPre.loadClip("images/"+imageIs, holder);
}
function again(imageNames, count, place) {
if (count == 0) {
loadImages(imageNames, count, place);
}
if (count<=imageNames.length) {
count++;
loadImages(imageNames, count, place);
}
}
}
and the main movie i have :


Code:
var here:MovieClip=this.createEmptyMovieClip("here",this.getNextHighestDepth())
var eL:ELoader=new ELoader(["0.JPG","1.JPG","2.JPG","3.JPG","4.JPG","5.JPG","6.JPG","7.JPG"],here)
any ideas on where i've gone wrong? it's feeling like a scope issue

View Replies !    View Related
Simple Preload Issue... It's Not Working...
I have a flash movie with many layers. Each layer is one frame. Each frame has a movie clip that does different things. Ok, the movie works fine, because it works w/o a preloader... but once I add the preloader and test the movie... all I see is a still image of the background and the movie clips frozen in place. I've used this preloading method before, but now it's not working.

Ok, the preloader is in its own scene...this is the actionscript in frame one:


Code:
if (_framesloaded>=_totalframes) {
gotoAndPlay("movie",1);
} else {
gotoAndPlay("loading",1);
}
This is the code is in frame 20:

Code:
gotoAndPlay(1);
In another layer there is a tween that flashes "loading."

View Replies !    View Related
Time Remaining On Preload Not Working
ok so quick rundown on what i'm trying to do... i'm trying to get a movie clip to show how much time is left on a preload of a .swf file. sounds simple, right? well i'm not getting much luck.

ok first this is the script i have on the stage:

ActionScript Code:
stop();
bytes_total = _root.getBytesTotal();
start_time = _root.getTimer();


then, i created a movie clip to reside on the stage. i gave it the instance name of "time_mc" and then applied this script to it:

ActionScript Code:
onClipEvent (enterFrame) {
    bytes_loaded = _root.getBytesLoaded();
    bytes_left = bytes_total-bytes_loaded;
    current_time = getTimer();
    time_elapsed = current_time-start_time;
    bpms = bytes_loaded/time_elapsed;
    ms_remaining = bpms/bytes_left;
    sec_remaining = ms_remaining/1000;
    if (sec_remaining=0) {
        _root.gotoAndPlay(2);
    }
}


then, i put inside that movie clip a text box that i assigned sec_remaining to.

now what i get is no countdown of any sort, just it displaying a big "0" all the time. but, if that was the case, wouldn't it go to the next frame? because it doesn't. i tried simulating a download but it didn't do anything other than keep it's friendly "0" to let me know it still didn't like me. i'm not sure where my math up there is wrong but i'm sure it's wrong somewhere... if one of you guys could let me know that would be great!

i'm using flash 8 btw... but this code is fine in any AS 2.0 so it's not big deal.

chears!

View Replies !    View Related
Reusable Preloader Working After First Preload Image
I am using the tutorial on the reusable preloader which works great on the first image. But, I recently noticed that it only preloads the first image time it is called, and I never see the preloader again. I am fairly comfortable with AS and I am not a newbie. But, I cant help but feel a little ticked off because I know it is something small that I am just overlooking. I have been searching for an answer for a couple of days nows....

Anyway, here is the link for the preview file.

http://boundless-vision.com/temp/v4_sample.html

Click on portfolio and choose a section and then a gallery piece. NOTE the preloader on the first gallery piece load... but you never see it again...

Which leads me to believe it is something that has to do with my coding - for putting a dynamic path to preload.. I have a loop which spits out the buttons and all of the corresponding data.

Anyway, here is what I believe is the affected code
this is in between my chGallery Function - that handles all of my load / parse / display functions.. Formatting might have it break, I apologize for that...


ActionScript Code:
<font size="2">for (var i = 0; i<chGalleryMC_path.GalleryItem.length; i++) {        // loop through the gallery item var I declared earlier        // this variable is a house for all of the gallery item         // nodes that are located within the chosen gallery xml file        chGalleryMC_Item_path.createEmptyMovieClip("container", i);        //        var myItemTitle = chGalleryMC_path.GalleryItem[i].firstChild.firstChild.nodeValue;        // declare a local variable to hold temporary name data for text input        chGalleryMC_path.gItem.duplicateMovieClip("gItem"+i, StartDepth+i);        // duplicate the attatched movie clip in order to loop        // through all of the required gallery items that were        // loaded from the xml file        //        gItem_Temp_MCPATH_Array.push(chGalleryMC_path["gItem"+i]);        trace(chGalleryMC_path["gItem"+i]);        //        //        //        chGalleryMC_path["gItem"+i]._y = startY+(MenuSpace*i)+200;        // increment each gallery item down the page        chGalleryMC_path["gItem"+i]._x = startX;        // set the horizontal space        chGalleryMC_path["gItem"+i].id = chGalleryMC_path.GalleryItem[i].attributes.id;        // set.id for the item from the xml node id attribute        chGalleryMC_path["gItem"+i].itemName.text = myItemTitle;        // display item Title        //chGalleryMC_Item_path.createEmptyMovieClip(myItemTitle, i);        //        chGalleryMC_path["gItem"+i].itemName_btn.num = i;        //        chGalleryMC_path["gItem"+i].itemName_btn.path = chGalleryMC_path.GalleryItem[i].attributes.path;        // set the button.path the same as the xml loaded gallery item path        // easy load in the release function below        //        chGalleryMC_path["gItem"+i].itemName_btn.onRollOver = function() {            if (this.num != GalleryItem_Selected) {                this._parent.itemName.setTextFormat(formatText_Bold);            }        };        //        chGalleryMC_path["gItem"+i].itemName_btn.onRollOut = function() {            if (this.num != GalleryItem_Selected) {                this._parent.itemName.setTextFormat(formatText_NOBold);            }        };        //        //        chGalleryMC_path["gItem"+i].itemName_btn.onRelease = function() {            // loop generated on release, to load the path of this button             // which is parsed from the xml doc            if (this.num != GalleryItem_Selected) {                // if you already clicked on it, it wont happen again                //                //                gItem_Old = gItem_New;                gItem_New = this.num;                gItemOLDpath = chGalleryMC_path["gItem"+gItem_Old];                //                //                MenuTitle_SET(gItem_Old, this.num, gItemOLDpath);                //                <font color="Red">gItemMCLoader.loadClip(chGalleryMC_path.GbasePath+this.path, chGalleryMC_Item_path.container);</font>                //loadMovie(chGalleryMC_path.GbasePath+this.path, gIContainer);                trace(chGalleryMC_Item_path[myItemTitle]);                // loads the image located at the chosen gallery path + xml loaded                 // gallery base path into the 'MYWINDOW' titled window                GalleryItem_Selected = this.num;                // set item selection the the parent id                trace("New: "+gMenuSelection_New);                trace("Old: "+gMenuSelection_Old);                trace("This.num: "+this.num);                trace("This.path: "+this.path);            }        };    }//////////////gItemMCLoader = new MovieClipLoader();gItemPreload = new Object();gItemMCLoader.addListener(gItemPreload);gItemPreload.onLoadStart = function(targetMC) {    gIContainer._alpha = 0;    bar._visible = true;    border._visible = true;    bgDS._visible = true;    gItemPreloaderMC.gItemFadeIn();};gItemPreload.onLoadProgress = function(targetMC, lBytes, tBytes) {    bar._width = (lBytes/tBytes)*100;};gItemPreload.onLoadComplete = function(targetMC) {    gIContainer.gItemFadeIn();    //gItemPreloaderMC.gItemFadeOut();    border.gItemFadeOut();    bar.gItemFadeOut();    bgDS.gItemFadeOut();};</font>


The preload call is made in the dynamically generated onRelease handler for the gallery item button. which loads the image / sets text / etc.. etc..

There are four _Shells that i use to load my portfolio images into , each for the sections of my gallery, I dont really want to break this method, only becuase once the image is loaded, it is loaded and there is no real reason for it to have it's own mc just yet. However, if you could come up with a solution for that also, It would be much appreciated.

Thank you for any responses in advance.

View Replies !    View Related
Preload Is Working And Not Working
hey there,

i made the tutorial you can find here but when i published my website on the web, it takes some seconds before you see the preloader... Normally you shouldn't see a white screen (i'm talking about the popup-window here...) but immediately the preloader. So, the preloader is working, but not immediately. How can I fix this?
Thanks...

lampe
ps: the website is not finished yet, duuh...

View Replies !    View Related
Load XML And Populate Array Before Preload Finishes - Not Working
During the preload of a file I want the XML to be loaded and various elements put into an array before moving on.

I have my standard preload code with additional checks to see if _global.XMLloaded and _global.ARRAYloaded are set to true before ending preload.

I start by initialising both of these to false.

I then stop(); and have my XML start loading and reading into the array.

In the my_xml.onLoad function I check to see it's the last xml file being loaded and if so set _global.XMLloaded to true at the end of the function.

In the function that's outputting the data into the array I have:

for (var i=0; i<pages.length; i++) {

//Code to output to array here

if( i == pages.length - 1)){
trace("ArrayLoaded");
_global.ARRAYloaded = true;
}

}


I hope this paints some kind of picture of what I'm trying to do. Basically it's not working and the traces are coming out but the swf is carrying on past the preloader before the entire array is loaded. I don't know much about asynchonicity so maybe it's something to do with this?

Any advice on this or how I can get round this?

View Replies !    View Related
Preload Madness - Preload Movies Clip In A Movie?
hey people... a brought up this subject here a while back but it didn't really go anywhere... now that this sections seems to be a bit more lively perhaps some of you flashers can help me out... I am going to break this down very simple... I haven’t even storyboarded this so this is an extremely rough draft of the idea



I am building a photo gallery



this gallery has eight images which range from 30k-75k (roughly) so I don't want the user to wait for a full load of 240k-600k



I want to first load the thumbnails for the images... and then begin to preload the first image directly after that... then display it



and then from that point when the user clicks a thumbnail the corresponding full image will preload and then display


basicially this is about preloading a movieclip in a movie... I jsut can't wrap my head this... so I will ask for help before I get too deep.... any input on the basics of this idea would be appreciated

thanx!

View Replies !    View Related
Selectively Preload, Preload Rest While Playing
Hello,

I have updated a pre-bought flash template for a photographer. Long story short, the file is now 4M's -mostly from images- and he wants it to load faster. Right now it is all in one swf, no load movies. So the large jpg's are embedded. (I could make them all movies and load them as needed, but am trying to avoid that.)

I would like to know if it is possible to selectively preload. For instance load everything except the large images mc. This way the movie would play its long intro and the viewer would have to go to the thumbnail gallery before getting to the large images gallery. Meanwhile the large images mc could load in the background?

Any thoughts?

The site is here:
www.crphotography.com

Any help is greatly appreciated.

View Replies !    View Related
Preload, Finish Preload Anim, And Then Play
Hello!

I have a preloader with a mc that plays while it loads. I want the movie to preload the whole show, then finish playing the section of animation that it is in, and then play the main movie.

For example:
A ball goes from the right corner to the left (section 1) and then reverses back to the right (section 2). While the show loads the ball just goes back and forth. But once loaded, I want the ball mc to finish going to either corner and then _root.gotoAndPlay(5);

I am thinking of something like this (try not to giggle at me):

if (loaded == total) {
_root.ball_mc.gotoAndPlay(until the next frame label);
then
_root.gotoAndPlay(5);
}



This is my preloader code which works great but cuts of my ball mc abruptly:

onClipEvent (load) {
total = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = int(loaded/total*100);
text = percent+"%";
gotoAndStop(percent);
if (loaded == total) {
_root.gotoAndPlay(5);
}
}

Thanks so much!

View Replies !    View Related
Preload Code Help - Holding Content During Preload
First off, the current code works fine in terms of function but I want to see if someone has a code fix for me. When the preloader starts, I want the current image to "hold" inplace instead of being unloaded from the "container" MC. I want the bar to load, covering up the current image and then when the preload is complete, load the next image in and display it. Does anyone have an idea on how I might rearrange or change the code? I know I have seen this same technique on several web pages, I just havn't been able to figure out how to execute it.

click on btn1 or btn2 to load an image.

Here's the current SWF

http://josephryannasipak.com/test.html

Here's the code:

stop();

bar._visible = false;


my_mc = new MovieClipLoader();
preload = new Object();
my_mc.addListener(preload);

preload.onLoadStart = function(targetMC) {
trace("started loading "+targetMC);
container._visible = false;
bar._visible = true;

}

preload.onLoadProgress = function(targetMC, lBytes, tBytes) {
bar._width = (lBytes/tBytes)*550;
pText.text = "% "+Math.round((lBytes/tBytes)*100);
};

preload.onLoadComplete = function(targetMC) {
container._visible = true;
bar._visible = false;
trace(targetMC+" finished");
};

my_mc.loadClip("sunset.jpg", "container");

btn1.onPress = function () {
my_mc.loadClip("bluest.jpg", "container");
}

btn2.onPress = function () {
my_mc.loadClip("church.jpg", "container");
}

and the FLA file:

http://josephryannasipak.com/test.fla

View Replies !    View Related
Can I Preload A Swf And Also Preload An External Linked Swf With The Same Preloader?
Can i preload a swf and also preload an external linked swf with the same preloader?

i have one swf which is a site!

and one that is the music!!

but i want them both loaded together so they run at the same time??

this possible??

View Replies !    View Related
Preload External Swf Movies In One Preload ?
So, I take it there is no way to preload external swf movies in one initial preload?

does anybody have a clue or suggestion?

thanks.

View Replies !    View Related
Preload Scene DOESN'T PRELOAD
ok, so i have this file, full of images, it's huge. i have a preload scene, the actionscript is as follows:

setProperty ("loadBar", _xscale, "((_root.getBytesLoaded() /_root.getBytesTotal() )*100)");
ifFrameLoaded ("Scene 1", "End") {
gotoAndPlay ("Scene 1", "Start");
}

so basically, it SHOULD increase the width of the preload bar as the movies progressively loads, and it SHOULN'T start playing the main scene(Scene1)until the whole scene is finished loading.

It doesn't do this!

i haven't done much actionscripting b4, so any help would be appreciated.

you can see the extremely CRAP movie at: http://www.angelfire.com/ca/adamstuff/paragon3.html

View Replies !    View Related
Preload Several Swfs With One Preload.swf
how can i preload several swfs with one preload swf?
i just have a main swf and some loadmovie swfs which are loaded in the main swf and i dont want to preload them with scenes.

View Replies !    View Related
An Effect Without Preload & With Preload
I created a simple rotating efect:
1) without preload:
a) result: http://www.freewebtown.com/ihtus/fla...er_cursor.html
b) source: http://www.freewebtown.com/ihtus/fla...ter_cursor.fla
c)square.onEnterFrame=function(){
square._rotation=square._rotation+0.2;
_root.square._x = _root._xmouse;
_root.square._y = _root._ymouse;
_root.txt._x = _root._xmouse+2;
_root.txt._y = _root._ymouse-10;
}

2) with preload:
a) result: http://www.freewebtown.com/ihtus/fla...h_preload.html
b) source: http://www.freewebtown.com/ihtus/fla...th_preload.fla

There is a difference of the quality, for the case with preload I only added some layers and code for preload efect, and the quality of the rotating object becomes lower... , the question is: how to create preload efect without making the quality of the rotation lower?

Thanks!

View Replies !    View Related
Preload (PAUSE) And Then Preload Some More
Hey Guys,

I am working on a pretty big project and I am trying to work out a way of having some of the movie load then stopping (to allow other things on the page to load) then starting again.

It will have 4 movies (3 external) and what I want to do is load the first one normal then wait like 2 seconds and load the second one.. etc etc

I just cant think of a way to do this?

Any help?

Cheers guys

View Replies !    View Related
Flash MX TabIndex Only Working With Text Fields, Movies And Buttons Not Working :(
hey, has anyone heard of this, is it a known bug, or am i doing something wrong?

im using the following code to tab index a page, with text fields, buttons and movies that i would like to highlight to the visitor.

arrTabIndex = new Array("butAddress", "movEmail", "txtCC", "txtTelephoneNumber", "txtMobileNumber", "txtSubject", "txtSubject", "txtRealName", "txtBody");

for (var Count = 0; Count < arrTabIndex.length; Count++) {
eval(arrTabIndex[Count]).tabIndex = Count;
//eval(arrTabIndex[Count]).tabEnabled = 1;
//eval(arrTabIndex[Count])._focusrect = 1;
}

my problem is, that if i include movie clips or buttons, the first in the series does focus and show the colored square but the tab key does not move the focus to the next object.
if i only include text fields, the tab key works as normal
is this a bug, or am i doing something wrong?

many thanks, in advance
clive

View Replies !    View Related
LoadMovie - Working In Debug Mode, Not Working Otherwise
Hello,

I have a main swf, which must load other 2 swfs (PHP data involved).
I made it work in debug mode, but in normal mode, a movie is not loading at all. What should I check to find the problem?
(the paths are OK)

I would be really thankfull if someone could help soon.

Thanks

View Replies !    View Related
Site Working Perfectly In A Server, Not Working In Other
Hi
I have a strange problem with a site I've done recently. It works perfectly in one server, but the same files don't work properly in some other server(both servers are Linux). The site loads correctly and all, and it runs fine for a while, but after you have clicked the buttons of the menu for 5 o 6 times the buttons doesn't load anything anymore. The rest of the movie runs fine, it's only the buttons that are supposed to load the sections (external swfs) that just do nothing.
See it for yourself:

Here the site works as it should:
http://www.avanzasoluciones.es/celeste

Here the buttons stop working after a while:
http://www.limpiezasceleste.com

I'll be glad to answer any question you may have regarding the coding of the site or anything that may lead to a solution.
Thanks for your time

View Replies !    View Related
Contact Form Not Working In IE But Working In Mozilla
got a problem that I just can't figure out.
I have a feedback that was working fine. Key word "was".
I added a frame in the form MC to include a Thank You screen. But then it stopped sending in IE, but works in Mozilla.
I tried taking the extra frame out but still doesn't work in IE anymore.

any suggestions?
button

Code:
on (release) {
form.loadVariables("email.php", "POST");
}
script on the php page

Code:
<?php
$sendTo = "alvin@diggy.com.au";
$subject = "Gisler contact";
$headers = "From: " . $_POST["name"] ." <" . $_POST["email"] .">
";
$headers .= "Reply-To: " . $_POST["email"] . "
";
$headers .= "Return-path: " . $_POST["email"];
$message = "Phone:" . $_POST["phone"] ."
Country: " . $_POST["country"] ."
Message: ".$_POST["message"]." ";
mail($sendTo, $subject, $message, $headers);
?>

View Replies !    View Related
Fading Text Only Half-working (so It's Not Working At All)
Here's one for ya...I'm making some fading text. I made a movie clip of the text and did the alpha tweening and all that, and when I play the clip on-stage, it works perfectily. However, when I run a movie test, the text does not fade in but rather just suddenly appears. This is also the condition when the graphic is loaded onto a webpage. Has anyone else seen this happen before and can tell me why this is happening? Thanks.

View Replies !    View Related
Full Screen Tiling Working, But Not Working Right?
am using bitmapdata to make me a nice lil' background image, and it works great...until it's resized. Whats happening is it's creating a new bgHolder clip on the resize, NOT resizing the current empty clip "bgHolder"

Here's the code(taken from various posts)


import flash.display.BitmapData;
#include "mc_tween2.as"
Stage.align = "TL";
Stage.scaleMode = "noScale";
var myListener:Object = new Object();
myListener.onResize = function() {
createBG();
};
Stage.addListener(myListener);
var bgHolder:MovieClip = _root.createEmptyMovieClip("bgHolder", _root.getNextHighestDepth());
var BG_LINKAGE:String = "bg";
function createBG():Void {
var tile:BitmapData = BitmapData.loadBitmap(BG_LINKAGE);
with (bgHolder) {
beginBitmapFill(tile);
moveTo(0,0);
lineTo(Stage.width,0);
lineTo(Stage.width,Stage.height);
lineTo(0,Stage.height);
lineTo(0,0);
endFill();
}
}
createBG();

View Replies !    View Related
Working Locally - Not Working Online
Having a nightmare with this.

On my project I have made use of both named anchors and frame labels for the navigation - both of which work fine when testing locally, in all browsers.

Problem is, soon as I upload, the frame labels stop working in FireFox, and they only working on 2nd load in IE. Im publishing Player 6, using AS2. The named anchors work great, across the board.

Any ideas?

View Replies !    View Related
AS 2 Button Not Working Not Working Properly
I've got a problem with a button dynamically attached to an mc within an as 2 class script. This is the button code:


ActionScript Code:
this.mc.butt.onRelease = function(){          
            current=true;
            this._parent.checkFocus();
        }

this code is inside the class constructor while current is declared at the start of the class and set to false previously in the constructor. The mc is the movieclip attached to the class and butt is the button attached to that. checkFocus is called ok but i'm confused how cos the "this._parent" should reference the "mc" movieclip but this has not got a checkFocus method on it. If i use "this._parent._parent" however, which should be correct, it does not work. I don't know what's up there. Anyway, checkFocus is here:

ActionScript Code:
public function  checkFocus(){
       
        for(var mcname:String in _root){
           
            if(_root[mcname] instanceof Layer){
               
                if(_root[mcname].focus==true){
                    //_root[mcname].gainFocus(20);
                    _root[mcname].loseFocus(20);
                } else {
                   
                    if(_root[mcname].current==true){
                        trace("waaahhhhh");
                        _root[mcname].gainFocus(20);
                    }      
                }
            }   
        }
    }


the aim of this code is to unfocus the Layer object (this is the name of the class) currently in focus, denoted by its focus attribute being true, and focus the new Layer object that has been clicked on - denoted by its current attribute being true. The currently focused layer is unfocused ok, but the new layer is not focused because, it seems, the change in the current attribute has not happened - there is no waaaaaahhhh coming up! I think this is because i am not reference it properly from within the button event. How can i reference properly from within the button? I've tried using _target and targetPath() but i'm not getting anywhere. I'm pretty sure this is the problem cos things work fine when i declare button events from outside the class, inside the fla. But i'd much rather do things dynamically within the calss if possible. Anyone got any ideas? I've been staring tooooo long at this.

View Replies !    View Related
Rollover Working But Rollout Not Working?
i have attached my small fla...

basically i have 5 buttons, each with a rollover and a rollout statement.

when the buttons are rolled over, they tween in scale.

when the buttons are rolled out they are supposed to tween return to normal scale - but for some reason they do not tween, they just pop straigh back into normal size....

any ideas???

View Replies !    View Related
AttachMovie Working, CreateEmptyMovieClip Not Working
Anyone have an idea just by quickly looking at this? I know it's taken out of context but I just can't see why it shouldn't work!


ActionScript Code:
// this line aperantly does not create the clips I need within a for loopvar photo:MovieClip = container.photoContainer.slide.createEmptyMovieClip("photo"+i, i+200);// while this line does, any idea why?var photo:MovieClip = container.photoContainer.slide.attachMovie("placeholder", "photo"+i, i+200);

View Replies !    View Related
Why Is My Php Email Form Not Working Here, But Working Elsewhere?
Hey everyone,

I wonder if you might be able to answer what is potentially a stupid question..

On this site I created a php email contact form and it's working fine: http://japanese-acupuncture.110mb.com/main.html

The contact form is in the clinic info tab on the side bar.

I've just set up a new site, and I copied the movie clip I used for the above site straight into the new one before adjusting how it looks to fit the layout of the new site. I'm going to use it in two places, and I know that I'll need to duplicate the movie clip for that. The site it's up on doesn't support sendmail, but I'm not worried about that yet.

What I can't figure out is why my text fields no longer let me input text, even though the movieclip is exactly the same as on the above site. The new site address is here: http://www.users.on.net/~davidgardner/

The contact form on the new site is on the 'register for a course now' tab, and on the 'contact us' page.

The only thing I can think of, is that the problem is caused by the contact form being buried in a series of movieclips.

If anyone has any idea what the problem is I'd be very appreciative!

Thanks,
David

View Replies !    View Related
Sound Effect Working Fine In Stanalone Movie Not Working As Part Of Loaded Movie
I have loaded in a movie via a loadMovie method of a movie clip.

In the loaded movie there is a sound effect generated in script via a sound object that works great when played in a standalone version of the loaded movie, but when I load it into the main movie the sound effect will not play.

Anyone any ideas?

View Replies !    View Related
Preload Help
Hello. I have just started on flash (Newbie:-)
and i want to know how i preload..
How do i do this????

View Replies !    View Related
Preload Bar...help?
I just need to make a simple little progress bar for my preloader. Can someone tell me how to do this or send me a link to a good tutorial for a progress bar in Flash 4? I've got my preloader already set up, but I just need to add a progress bar so that people can tell the site is not stuck. You can check ou what I've got already at http://www.hholzhauer.com

Thanks!

View Replies !    View Related
Preload Help
i'm still very confuse about the preload on my movie, i made my movie in flash 5 with only one layer, but the question is how do you put the preload in the movies, or is it stand alone, please help with this, of how to do so, just plain instruction 1,2,3.

View Replies !    View Related
Looking For Some Help..trying To Preload Ex. Swf Into MC....
My goal is to load an external swf into a MC from my mainmovie, and if the swf is a little large, I want the MC to preload it with an animation or something thats notifies the user that their selection is preloading......
Now I had someone helping me from Were Here Forums, but he's either fed up or has left (I think the former)
Anyways, this is what I have:
Two MC's, one called "blankMC", the other, "preloadMC".

This is the code I have on "preloadMC":

onClipEvent (enterFrame) {
blankSize = _parent.blankMC.getBytesTotal();
}
//which was explained to get the size of blankMC
//Then I put this code on the preloadMC

onClipEvent (enterFrame) {
loaded = _parent.blankMC.getBytesLoaded();
total = _parent.blankMC.getBytesTotal();
percent = Math.round(loaded/total*100);
if (percent>=100 && total != blankSize) {
_parent.blankMC.play();
} else {
this._xscale = percent;
}
}

On my button:
on (press) {
blankMC.loadMovie("external2.swf");
}

Now when I test this movie, it automatically gives me the BytesLoaded, BytesTotal, and total percent of the blankMC.
And I haven't loaded the external swf yet. So I'm thinking I have something somewhere it shouldn't be.
Now, this may sound dumb, how do I unload the external .swf?
Help please...???

View Replies !    View Related
Another PRELOAD Q?
welcome to my thread :-))
Q- i made a swf which is suppose to be loaded as target in another swf. Also i want to make a PREload for that loaded SWF so should i make preload in the loaded SWF or in the main SWF??

View Replies !    View Related
Preload
ok, i have a simple preloader, but its not working correctly... the bulk of what i want to be preloaded is one symbol animation that is about halfwaythrough my movie, when preloading using this

onClipEvent (load) {
var total = _root.getBytesTotal();
var loaded = _root.getBytesLoaded();
var perc = (loaded/total)*100;
percent = perc+"%";
if (loaded == total) {
percent = "complete";
gotoAndPlay (2);
}
gotoAndPlay (1);
}

it wont preload that animation, so it still stops when it gets to it, can anyone help me out?

View Replies !    View Related
Preload
where can i find a preload for my webpage or how can i make one because i have one for a "flash book" but its stupid... i see preloaders in some web pages and its madddd
can someone help me?

p.s sorry for my english but i am 30 and i try to learn now lol :-))

View Replies !    View Related
To Preload Or Not To Preload
Hi all

I have designed a preloader and it all works fine but the only problem is that most of the content is on the first frame of the following scene so the bar indicator gets to 7% loaded and stays for ever until it skips fully loaded to the right place. IS there a way instead of framesloaded as a variable action such as bytes loaded in Flash 4? That way the indicator would run more smoothly and stop the viewer from clicking off when it appears to have become stuck

Cheers

Matt

View Replies !    View Related
PReload MC
Can some one tell me if u can preload MCs....it should show the user tha amount it is loading(Movie Clip) like u have preloaders for movies....If so how

View Replies !    View Related
Preload MC?
Are we able to preload MCs? I have a biggg movie consisting lots of MCs. When I try to prepare a preloader, I can not preload MCs, so It passes the preloader without loading MCs, so preloader sucks. Do you know any method? Or Have i lost a big point?

View Replies !    View Related
Preload
I'm having trouble getting this preloader to work when its placed within a load MC, I've tried targeting all the variables but it dosen't want to work, any thoughts would be appreciated.
Cheers Dan

onClipEvent (load) {
total = int(_root.getBytesTotal());
}
onClipEvent (enterFrame) {
loaded = int(_root.getBytesLoaded());
percent = int(loaded/total*100);
_root.percent = percent + " %";
_root.bar.gotoAndStop(percent );
if (percent >= 100) {
tellTarget ("_root") {
play ();
}
}
}

View Replies !    View Related
Preload MC's ?
How can i preload single MC's with preload animation ?

View Replies !    View Related
Preload Bar
I am making a movie with a preloader that uses a bar and a number (ie 23394 of 49502 bytes loaded). I have an idea of how this might work but I don't know if it is possoble. I read in a book for flash 4 that there is a way to get the bytes loaded in a movie. I want it to take the total bytes subtract the bytes loaded and then convert it to a number out of 100 or 50. like 150 out of 200 = 75 out of 100. I then want it to tell a movie clip (the load bar which has 100 frames) to goto the frame that is the number. I tried to do it but I can't seen to make it work. I want to know if this is possible and if not a nother way that might work. I would really appeciate you help.



iwacko

View Replies !    View Related
Preload For Jpg
Hello all,

If i load a jpg image whit loadMovie, how i can make a preload for this? the same way if i load a lot of image at the same time. I can do a status bar while this images are importing?

other question,

i solve this importing the images manually, but this images work dynamically and i need atach this to a diferents movieclips, but when i load the genereal MC where is loaded the diferents images converting to MC and assignat a linkage, this MC what i load no show the first frame becouse the MC for the atach just are loadin before the general movie.


my english is not good

THX!!

View Replies !    View Related
Preload On Web. (HOW?)
I have created an fla uploaded it to my site. Gone into my domain manager and pointed to the fla. Whenever I try to access my site now it wants me to download the filename that I created. What do I need to do upload the page and allow my users to view it.


Thanks in advance for the help.

Derek

View Replies !    View Related
Preload A Swf From Another
Hi. Hope someone can help me.
I intended to call a swf from another and evaluate if the first one is loaded.
The thing is my first movie has only 1 frame with a heavy mc in it
I tried with this:

if (_root.getBytesLoaded()!=_root.getBytesTotal()){
_level80.gotoAndPlay (2)
}
(where ni preloader is stopped at frame 1)

This didn´t work

I tried to pass variables between the 2 levels but didn´t work.

What i'm doing wrong??

It seems to be so easy
Thanks for answering.

View Replies !    View Related
Preload
does anyone knows how to preload an external swf or jpg, so that, when i call it, it doesn't have to be loaded dynamicly and it'll be quickly ???

please, I really need help.....

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