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




On "press" Check 1st If Hel.mc Reached Frame222 And Then Load The New Mc...(plz Read)



i need to do something ,i know that it can be done but i don't have any clue how..
i have at my main movie a mc that ALLWAYS plays a loop of 222frames and then continue again from the 1st frame
whatever happen to the main stage (_level0) this mc will never unload or move etc etc
let's say that this mc is a helicopter that i made in a 3d animation app and allways flying to a loop
what i need to do is:
when i will press a button somehow what needs to load will w8 until the helicopter .mc is at 222frame (last frame) because this will be the only way to know that the loop has finished
i need to load exactly at the last frame another animation of the helicopter ...i guess you got my point ..right?
for example i will create another animation that will start from the 222 frame and for another 222 frames length
if i press the button and the new helicopter will load ,if the 1st will be at frame 150 for example the user will understand it like frame skip and worst
i need to press the button...flash movie listen if helicopter1 reached frame 222,unload it and then load the helicopter2 and the user will not understand nothing
then this helicopter will also loop until i reverse the call

so how can this happen??



FlashKit > Flash Help > Flash ActionScript
Posted on: 01-19-2008, 08:02 PM


View Complete Forum Thread with Replies

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

Check If Mc Reached A Certain _y Then Animate
I am sliding a movieclip using easing equations. I need a loop that that steps through the current _y value of that clip and when it reaches the desired position(_yvalue -721) tell another clip to start animating(click_mc)

here is what i have so far


PHP Code:



big_mc.cdown.onRelease =  function(){
    _root.big_mc.slideTo(-130, -720, 1.7, "easeinoutquint");
        for(var i = big_mc._y; i > -721; i--){
            trace(i);
             if(i < -719){
                _root.big_mc.phase1_mc.gotoAndPlay(2);
                _root.click_mc.gotoAndPlay("play");
         }
    }





any ideas?

Check If Mc Reached A Certain _y Then Animate
I am sliding a movieclip using easing equations. I need a loop that that steps through the current _y value of that clip and when it reaches the desired position(_yvalue -721) tell another clip to start animating(click_mc)

here is what i have so far


PHP Code:



big_mc.cdown.onRelease =  function(){
    _root.big_mc.slideTo(-130, -720, 1.7, "easeinoutquint");
        for(var i = big_mc._y; i > -721; i--){
            trace(i);
             if(i < -719){
                _root.big_mc.phase1_mc.gotoAndPlay(2);
                _root.click_mc.gotoAndPlay("play");
         }
    }





any ideas?

Load Mc When Reached Frame ...
When my scene plays it stops at say frame 100 for example.
after frame 100 there is also an animation.
when i load my mc by pushing the button on the scene it should firstplay the animation say for exemple from 101 to 130.then show the mc. Is there a actionscript for this or should I have to place 30 empty frames in the start of my mc.

I Want A Movie To Load After Another's _alpha Has Reached 100%
Ok. Here's my problem. I have a button on the main timeline that I have converted to a movie clip, with an instance name of "contactMovie". This movie has a _alpha animation on it.

Now, I also have a blank movie clip on the main stage ("dirtholder")that is a placeholder for a movie that I want to load, with loadMovie, the movie to be loaded is called "dirt1.swf".

What I want to happen here is when "contactMovie" _alpha is 100%, I want "dirt1.swf" to be loaded into "dirtholder".

This the code I have on "contactMovie" button:
----------------------------------------------------------------------

onClipEvent (load) {
// Set initial alpha to zero
this._alpha = 0;
}
onClipEvent (enterFrame) {
// As long as alpha is lower than 100, increase with five
if (this._alpha<100) {
this._alpha += .5;


}
}
----------------------------------------------------------------------

This is the code I have on frame 1 of the main timeline to load "dirt1.swf" in to "dirtholder":

----------------------------------------------------------------------
loadMovie("dirt1.swf", dirtholder);
stop()
----------------------------------------------------------------------

If you understand what I am taking about I would appreciate some help.

Also, I am having some problems with loadMovie. "dirt1.swf" is loaded into the correct spot on the document, but the link in it does not function. I have been told that this has something to do with _root, _parent, and _level, but I do not understand the syntax. The link works if I just play "dirt1.swf" by itself, but not when it is loaded into my main movie.

Thanks for any help-

[F8] Load External Swf When X-y Coordinates Reached
Hi guys,

I have a simple map viewer I am using for the navigation on a site I'm working on. The background image moves to different coordinates when the respective button is pressed.

When the background image reaches the specific x and y coordinates I want it to load an external swf into a container, without having to press a second button?

For example :
on (release) {
_root.mapmc.Xpos = -900;
_root.mapmc.ypos = 700;
When these coordinates are reached I want it to automaticaly load my swf
???? = function () {
_root.createEmptyMovieClip("container", 1);
loadMovie("test.swf", "container");
container._x = 150 ;
container._y = 20 ;
}

Is this possible?
I appreciate any help any one could give me
Thanks!

Load Movieclip When Reached Label
Hi...

I can't figure something out. What i want to do:

When i press a button, a movieclip(FIRST) have to play, then when that movieclip reached a label, another movieclip(SECOND) have to start.
But when i press another button, the FIRST movieclip plays again until the label is reached, but now the THIRD movieclip has to start.

Do someone knows what i mean, and how i can create it?

Thanks for your help

ChrisPi

Check For Certain Key-press In A Textfield..
Howdy all..

I have a lil prob here..

I want to let flash execute a set if external functions (ASP) as soon as a user presses the ENTER-key (chr(13),chr(10)..?) inside an Input field. I tried on(something) and some other stuff, but to no avail. Cos this script only seems to work in button instances. Calling the external ASP scripts is no problem, but getting flash to respond on pressing the ENTER key inside that field seems a lil trickier..

Any support would be greatly appreciated.

thanks lots in advance

Using An Array To Check For Button Press
I have six buttons on a frame. When a user presses a button they are sent to a new frame with information - then they click another button and return to the first frame with the six buttons. I want to be able to check that each button has been pressed, and if it has, I want to set the alpha (since they are MC's) set to 50%. I have done some research on this and have found that using an array is helpful. But how would I set this up?


buttons = ["btn1", "btn2", "btn3", "btn4", "btn5", "btn6"];

But what AS would I use to check which button is pressed and where whould I put this code..on the first frame?


Thanks

Kirk

Read File Check
how do you check to see if a file has loaded, and to display an error message in a selected box, if an error has occured.
//////////////////////////////////////////
function fileRead() {
myFile = new LoadVars();
myFile.onData = function(rawDataFromMyFile){
//outFile = unescape(rawDataFromMyFile);
myText=unescape(rawDataFromMyFile);
};

temp=myFile.load(fileDisp);
if(!temp){
outFile="Error";
//display the error message.
}
else{
outFile=unescape(rawDataFromMyFile);
//display what is in a file.
}
}
/////////////////////////////////////////
because this doent work.

Check This Out (loading Gallery After Button Press)
I can only seem to be able to have my gallery work on the main timeline but when i want to make my gallery appear after button press it seems to freeze and stop work , im realy confused, please take a look at my fla.

thankyou.

Check This Out (loading Gallery After Button Press)
I can only seem to be able to have my gallery work on the main timeline but when i want to make my gallery appear after button press it seems to freeze and stop work , im realy confused, please take a look at my fla.

thankyou.

Read Variable From Asp To Check Radio Buttons
I have two radio buttons, "company" & "person" (in the "data" field)& instance name "company", "person". They have a group name "inform". How can i, depending on the outcome from an asp file, select each one of them and display different things?

On ( Press ) To Load An Image, But I Want It To Load Right Away.
on( press )
{
    mcImage.loadMovie( txtImageURL.text );    
}

This loads a url from a database to display an image.

How can I get the on ( press ) to press itself on eventload
or whatever.  I have tried load movies etc



Load Sound On Key Press ..
Okay! I have sounds ( A-Z ) and when i press the A button i want the A sound to play , i have fixed everything . The button is pressed and everything works , except my sound! i tried just to have e sound in the frame and it worked .. How should i do ?

Btw . heres the code

In the frame

Q = new Sound();
Q.attachSound ("Q");

In the movieclip Q movieclip

onClipEvent(enterFrame){
if(Key.isDown(81)){
this.play();
trace ("Q")
}
}

and in the libary i have an sound with the linkage of Q

Load Sound On Key Press ..
Okay! I have sounds ( A-Z ) and when i press the A button i want the A sound to play , i have fixed everything . The button is pressed and everything works , except my sound! i tried just to have e sound in the frame and it worked .. How should i do ?

Btw . heres the code

In the frame

Q = new Sound();
Q.attachSound ("Q");

In the movieclip Q movieclip

onClipEvent(enterFrame){
if(Key.isDown(81)){
this.play();
trace ("Q")
}
}

and in the libary i have an sound with the linkage of Q

Load Movie Clips On Key Press
hi would like to load a movieclip on a certain key press and load another one on key press and the same time unloading the prevours one

ie assign a movieclip to each key and load an unload them on key press on or offf

any help?

bhee

Do I Have To Press Play For My Variables To Load?
im making a list in flash that loads text and links from an external text file.

my problem is that i have to actually press the play button before the variables in the movie are recognized so my buttons with the text and links are blank until i press play.

//here is the code in the root frame of the movie:
indent = 0;
button_spacing = 12;
q = 0;
first_link_yposition = 115;
mask_height = 223.5;
list_height = int(mask_height/button_spacing);
loadVariablesNum ("dup.txt", 0);
n = 1;
while (length(eval("link" add n))>1) {
n = Number(n)+1;
}
total = n-1;
stop ();

//from what i can tell its the while loop that isn't working because before i press play the variable "total" has a value of zero.

here is the code in the movie holding the buttons:
setProperty ("button", _x, -1000);
while (Number(q)<Number(/:total)) {
q = Number(q)+1;
dup = "button" add q;
duplicateMovieClip ("button", dup, q);
setProperty (dup, _y, (q-1)*/:button_spacing);
setProperty (dup, _x, /:indent);
set (dup add ":linkname", eval("/:text" add q));
set (dup add ":link", eval("/:link" add q));
setProperty ("button" add q add "/over", _visible, false);
}
//and this is the code in the button:
on (rollOver) {
setProperty ("over", _visible, true);
}
on (release) {
// get page
setProperty ("../button" add n, _visible, false);
location = eval("link" add n);
getURL ("http:/ /" add location, "_blank");
}
on (releaseOutside, rollOut) {
setProperty ("../button" add n, _visible, true);
setProperty ("over", _visible, false);
}

//ive been working on this for days. if anybody can help i'd be very happy. thanks.

Press The Button, Load The Movie
That's kind of what I'm looking for. I have menu.swf and in a certain spot I have a movieclip with a button that says "Music?". Basically all I want is, if the user clicks that button, go to a new movieclip to preload slider.swf, which is my sound. I don't know what sort of command I should use to make it switch movie clips and movies.

Linking Pages Help...on(press) Load ?
Im having trouble putting in code to link pages in my site.
how do i put in the code to link a button to another page ?

for example the button ( items ) to link to the items page.

what would the code be ?
im using this

on(press)loadMovie.("items.swf");
stop();

I seen code like this..right here

Page.loadMovie("items.swf");
stop();

* what does [page] mean ? do i need to put page in the code ?

im using flash mx 2004.


thanks for the help...

Load Movie From A Button Press
I need helP!!!

I'm trying to load a new mc into a film - in a way that it will appear as a result of a button press - the action i used was:

createEmptyMovieClip("imageHolder", 1);
imageHolder._x = 50
imageHolder._y = 80
loadMovie("contact.swf", "imageHolder")

but my problem is that when i turnend the button into a mc still it won't work,
more so, i need to add the button with a pre action of "on press" ...play...
* I plugged the script to the symble (button or mc)

If someone can and would be kind enough to fix my script i'd be most thankful

Ed.

Load Two Movies On Same Press Event
I have a button, that when pressed loads a movie - works fine. What I wish to know is if it's possible (and how) to nest or add a function so that another movie loads at the same time. I'm using MX.

The idea is that when the 'good movie' is loaded, another small movie will load beside the button to indicate the active section.

Sample of what I'm currently using to load the 'good movie" is below.


Code:
blackWhite.onPress = function () {
_global.sectionPath = "Section1/";
_root.createEmptyMovieClip("container", 1);
loadMovie(_global.sectionPath + "bw.swf", "container");
container._x = 0 ;
container._y = 60 ;
}
There are actually seven such buttons in the main movie. So, for each one I want to replicate the adding of my external active.swf file into another empty movie clip.

Now, the above code works and pulls up the animation. When I tried to added another function to the button, only the second function worked (i.e., I got the symbol for indicating active state, but not the image gallery I've made).

All help appreciated.

Thanks,
donna

CD-ROM Load Time - Please Read*
I have a flash projector file approx. 100Mb. Don't suggest shrinking it. It is as small as it gets. I burned the projector and an autorun.inf file to a cd. It works but the problem is it takes too long to load off the cd.

The user will be thinking that nothing is happening b/c nothing happens until the cd has loaded. Once the file is loading it runs quickly. The preloader dosen't even have to work very hard because it is all loaded from the cd. I have created director projectors three times this big w/out a stub and the load fairly quick. But this one had to be built in flash.

I have tried a program called "fastsplash" but it doesn't work on all machines.

Please if anyone has a suggestion please, please, please, post it. I need all the help I can get with this one! Thanks!

CD-ROM Load Time - Please Read*
I have a flash projector file approx. 100Mb. Don't suggest shrinking it. It is as small as it gets. I burned the projector and an autorun.inf file to a cd. It works but the problem is it takes too long to load off the cd.

The user will be thinking that nothing is happening b/c nothing happens until the cd has loaded. Once the file is loading it runs quickly. The preloader dosen't even have to work very hard because it is all loaded from the cd. I have created director projectors three times this big w/out a stub and the load fairly quick. But this one had to be built in flash.

I have tried a program called "fastsplash" but it doesn't work on all machines.

Please if anyone has a suggestion please, please, please, post it. I need all the help I can get with this one! Thanks!

Can't Load External Swf (have Read Other ..)
Hi to all

i desperately need an urgent help about loading external swf (with AS2 in it) in my main (AS3) swf.
I've already read treads about this issue, but these doesn't seem to work in my case.

I'm completely new to AS3, and the AS2 syntax [loadMovie("movie.swf", "mloader");] doesn't work anymore.

So, i have an empty movie clip (with instance name: mloader_mc) placed into certain movie clip of my flash, and an external swf file named v3_gallery.swf. (which resides in the same folder as the main swf)

The code:

Code:
var mRequest:URLRequest = new URLRequest("v3_gallery.swf");
var mloader_mc:Loader = new Loader();
mloader_mc.load(mRequest);
addChild(mloader_mc);
doesn't work.

this code (without embeded loader onto stage) doesn't work either.

Code:
var myLoader:Loader = new Loader();
addChild(myLoader);
var url:URLRequest = new URLRequest("v3_gallery.swf");
myLoader.load(url);
but is some better (doesn't flicker at least), although the requested swf is not loaded.

Any help would be highly appreciated.

Load Movie From Library On Button Press
I have an mc in the library called "hydrogen display" and when a certain button is pressed I want the mc to load onto the stage I put this script on the button but it doesn't work and i get an error message


ActionScript Code:
on (release) {
               loadMovie("hydrogen display")
}

but that is not working as i said above any ideas on why this does not work or what i can do to fix it.

thanks

Load Numbered Jpgs Into MC - Based On BTN Press
okay... prob take more time to explain why.. .but basically i have 100 buttons being generated and assigned names ( eh_1, eh_2, eh_3, ... ). On press they are controlling several functions but i would also like them to load a corresponding jpg into a blank movie clip. the jpgs are labeled... (1.jpg, 2.jpg ....)


Code:
var currentButton:Number = new Number();
for (var i:Number = 1; i<101; i++) {
_root["eh_"+i].id = i;
_root["eh_"+i].onPress = function() {
currentButton = this.id;
numpressed = i;
var BGload= eval("../images/backgrounds/"+i+".jpg");
_root.BG_mc1.loadMovie(BGload);
_root.debug3.text = "pressed = "+currentButton;
currentButton %= bgColorArray.length;
transformColor(hexToARGB(bgColorArray[bgColorNum]));
_root.debughex.text = "loaded RGB:
R: "+bgct.redOffset+"
G:
"+bgct.greenOffset+"
B: "+bgct.blueOffset;
};
now... when i do this its giving me an undefined variable for BGload. any ideas?

thanks in advance

Load A Tag Into Html To Be Read By Flash
I am trying to create a flash program that can read an ID tag embeded into the html of the same page it is being read on. Can anybody show me how to do this?

Load External Movieclip Frame On Button Press
Download my .zip fil and open maintest_Scene 1.swf and youll know the problem.

My movie clip loads, but in the wrong spot and I need it to open Frame one "halsub" of work.swf when the button Drive Options is pressed.

Make It Invisible When I Press The Buttons To Load Movies
I´m making a movie that loads in swf-movies in the main movie. But in the main movie i have a picture (rather big). An when i press the button in t´he main movie to load a movie in a placeholder i can see the picture in the main movie every time i load a movie. is it any way that i can make it invisible when i press thebuttons to load movies

Write It, Load It, Read It -- Dynamic Text
I have 2 dynamic text boxes and a save button on a movie called inputform.

the variable names for these 2 text boxes are:
lastname
age


the instance name of the button is save.

When a user finishes typing their lastname and age, and after they click the save button, I want the values to be stored in a text file.

On another movie clip called resultform, I also have 2 dynamic text boxes. I want the values of these 2 text boxes to populate with the values inputed from the inputform (of which are now stored in a text file)

I am using FlashMX...can you help me with the coding please?

Begening Movie Load Pease Read
How would you creat the loading part on a flash movie? Like at the very begining of a movie? I thought it might be something to do with streaming but i dont know?

How To Read A Variable From Main.swf (that Load Content.swf) And Use?
Hi,

How to read a variable from main.swf (that load content.swf) and use it inside content.swf?

I have a variable called TextColor = "Green" in the main movie and I want to read this variable from inside the content movie?

anybody can help!!

Thanks a lot.

In Media Player Key Press Doesnot Work On Load In Html
Hi!

I've made a media player where the volume is controlled and other keys are controlled using key strokes

follwing are the keys.


Key Press Controls

Stop = s

Play = p

pause= space bar

Back= b

Next = n

Mute = m

Volume = press up & down arrows, also it is draggable.


in swf all key navigations works and player too works fine.

when I load it in html page. the keys does not start working first unless i use mouse for navigation.

Its urgent

Help

Needed

pls find attached source file

In Media Player Key Press Doesnot Work On Load In Html
Hi!

I've made a media player where the volume is controlled and other keys are controlled using key strokes

follwing are the keys.


Key Press Controls

Stop = s

Play = p

pause= space bar

Back= b

Next = n

Mute = m

Volume = press up & down arrows, also it is draggable.


in swf all key navigations works and player too works fine.

when I load it in html page. the keys does not start working first unless i use mouse for navigation.

Its urgent

Help

Needed

How To Get Flash MX To Load A Txt File And Read The Danish Letters Æ,ø And Å ?
How to get flash MX to load a txt file and read the danish letters æ,ø and å ??

I use win 98 and notepad

Load Vars Cannot Read Variables In Specific Site
hi forum,
i have experie3nced a weird probblem with the LoadVars command. I have designed a website using loadvars to load text into flash from external txt files.
the main interface has been checked both locally and remotely and works fine. two days ago i had to upload the site to another server and i noticed that although everything else works (images dynamically loaded, xml loaded) the data from the txt files cannot be loaded through loadvars. this is so weird. it works in my pc, it works from another server but it does not from this particular server.
does anyone has experienced this before? is there any particular FTP parameter i have to check? is it a server side problem?

thanks a lot
vasi

Please Help I've Read Every Thread...external Jpgs Load But Not Swfs
its true. i've tried examples from every thread...external jpgs will load but not swfs...no matter what i do.

on (rollOver) {
_root.containerMC.loadMovie("bio1.swf");
}

just a blank space shows. i even tried using the create empty movie clip deal...still no dice. any love from the guru nation?

p.s. - is there a resolution setting within flash mx? i copied something from flash to fireworks and it asked me to resample due to different resolutions.?? related?

Please Help I've Read Every Thread...external Jpgs Load But Not Swfs
its true. i've tried examples from every thread...external jpgs will load but not swfs...no matter what i do.

on (rollOver) {
_root.containerMC.loadMovie("bio1.swf");
}

just a blank space shows. i even tried using the create empty movie clip deal...still no dice. any love from the guru nation?

p.s. - is there a resolution setting within flash mx? i copied something from flash to fireworks and it asked me to resample due to different resolutions.?? related?

OnResize / Stage.width Not Read On Initial Load With Firefox
I have just started to develop a website and very quickly realised that Mozilla doesnt seem to read any Stage.width or onResize parameters on initial load of movie. If i manually resize the browser window it will then work but this is no good for me as I need the width to be calculated onLoad thus:-

onClipEvent(load)
{
this._width = Stage.width + origX;
this._x = 0 - origX;
}

or

Stage.scaleMode = "noScale"
var myListener:Object = new Object();
myListener.onResize = function () {
gradient_mc._width = Stage.width + origX;
gradient_mc._x = 0 - origX;
}
Stage.addListener(myListener);

Looking around online I have found some thread relating to DOCTYPE being XHTML on Mozilla but I do not want to use an old doc type.

Any ideas or feedback on this would be great.

[F8] Check Load
What is the best check load function to use for load in external text


Thanks

Check This... Does It Load?
www.meshybeats.com

After you click for the Supernatural Sue comic can you tell me if the comic loads ?

thanks

Dene

How To Read A Variable From Main.swf (that Load Content.swf) And Use It From Inside The Loaded Movie?
Hi,

How to read a variable from main.swf (that load content.swf) and use it inside content.swf?

I have a variable called TextColor = "Green" in the main movie and I want to read this variable from inside the content movie?

anybody can help!!

Thanks a lot.

Check Load Movie But ..
hi guys


i'm doing a customize presentation where the presenter can customize the data he want to show to the client.

ok. let say,


i got 2 movie. one is customize.swf and second is data2.swf


customize.swf has several button.

when we click at the button, data2.swf will be loaded to mc container inside the customize.swf.

when data2.swf is all loaded, so then _root customize will go to some frame or else go to other frame.



ok, the script that i done but didnt work well is :


1. the button inside customize to load data2.swf, :

on (release) {
_root.container.loadMovie("data2.swf");
}



2. the mc to check whether all of the data2.swf fully loaded inside customize.swf is:

onClipEvent (enterFrame) {
if (_root.container._framesloaded = _totalframes) {
gotoAndStop (30);
} else {
gotoAndStop (2);
}
}



hummmmmmmmmmmmmmmmmmmmmmm

hope to get superman hear,


ahmad

Flash Check If Not Load Jpg
I have a small swf that shows a product on a site, but I would like to have it check for flash and if not display an image in its place? is this possible? Hah sure it is, but I just dont know it.


Its been a long time since I have visited the realm of flash, feels good but need to catch back up

Thanks in advance

- wes

Load Swf, Please Check My Script
I'm designing a flash (mx) based site using loadMovie to display different sections.

Each external swf contains an "enter animation", then a stop frame so the sontent can be viewed, and an "exit animaiton". The navigation buttons exist in the main movie, and external swf's are loaded into "container_mc".

I'm trying to make is so when a navigation button is pressed, the loaded swf will play (showing the exit animation) and THEN the next swf is loaded.

I don't really know what I'm doing (as far as action script goes) but heres what I've come up with:



on (release) {
tellTarget (_root.container_mc) {
play();
ftotal = _root.container_mc._totalframes;
fcurrent = _root.container_mc._currentframe;
if (fcurrent<ftotal) {
play();
} else {
(loadMovie(02.swf, _root.container_mc));
}
}
}




By messing with this, I can get either the movie to play, or the new one to load, but not one then the other.

Am I on the right track? Please help!


-Andy

Simple Way To Check FLV Load?
Is there a straight-forward way to check if an flv video has loaded into its placeholder? I read the help a bit and found some stuff about netconnections but I'm suffering from severe sleep deprivation and didn't really understand it...

I've got buttons that load new videos into a single holder, just by altering the _contentpath attribute on the fly. Trouble is my videos are different sizes, and I want to position another object relative to the video's height, which of course can't be properly read until it's loaded into place.

All I want is something like myvideo.onload = function() { etc etc

Simple Load Check
hello,

i've got some problem with my preloader.

i check if everything is loaded for the whole swf in frame 1. if everything is loaded then we can start and go to frame 2.

i got the trace. but everything is not loaded. anyway, the frame 2 starts to play.

what is wrong with the if sentence?

cheers
soutine


ActionScript Code:
import flash.display.*;
import flash.events.Event

addEventListener(Event.ENTER_FRAME, loading);

stop();

function loading(event:Event) {
    trace("loader Working");
    var bytestotal = stage.loaderInfo.bytesTotal;
    var bytesloaded = stage.loaderInfo.bytesLoaded;
    var loader = Math.round(bytesloaded*100/bytestotal);
    this.loaderAnimation.play();
   
    if (bytesloaded >= bytestotal) {
       
        gotoAndStop(2);
        removeEventListener(Event.ENTER_FRAME, loading);
        if(numChildren >= 1){   
            SoundMixer.stopAll();
            removeChildAt(0);
        }
        else{
            // do nuthing
        }
        trace(numChildren);
        removeChildAt(0);
    }
}

Need 56k'ers To Check My Pre-load Script
Hello all

I had some problems with a section of my site not working to well. F1 crash polls. The preload script was not working correctly when loading movies. the seeker bar would show 100% loaded everytime. Most of the time this was not the case. I think i have got it sorted now but i am not 100% because i am on ADSL i dont really see the seeker bar load. So i am looking for 56k'ers to check it out and see if it runs ok

Cheers
_paul

http://www.innovativedesigns.org.uk/
F1 crash polls

URL Check Without Trying To Load The File Possible?
I have a flash file i use to dynamically load text from a XML file. The same flash file is on almost all the pages of my site... it looks for the XML file in a subdirectory, and if it cant find one there it loads a "default" XML file. It is working fine, but when it cant find the "local" XML file, the browser gives an error then finds the default XML. I was wondering if there is some function i could use that would check for the file instead of trying to load it so it would stop appearing as if there are broken links.

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