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








IfFrameLoaded Problems...


I have a big external .swf loading into frame 3.

I am trying to use actionscript to make the flash movie loop in frame 1 and 2 until frame 3 is loaded. I am using this script: -

Frame 1:
ifFrameLoaded (3) {
gotoAndPlay (3);
}

Frame 2:
gotoAndPlay (1);


This does not seem to work! What am I doing wrong?




FlashKit > Flash Help > Flash ActionScript
Posted on: 07-02-2003, 09:32 AM


View Complete Forum Thread with Replies

Sponsored Links:

IfFrameLoaded...help Please.
can I use this to keep a button from being active until a certain frame is loaded? i don't want users to be able to push the button until frame 45 in my movie. here is a piece of my script...what do i need to add?

on (release) {
if (_currentframe == 45) {
gotoAndPlay (46);
with (_root.textboxMC) {
gotoAndPlay(15);
with (_root.bodytextMC) {


thanks,

-freakout

View Replies !    View Related
What Do I Use Instead Of IfFrameLoaded?
I'm using Flash 5 to develop a small piece of work.
I think I'm right in saying that ifFrameLoaded is not recommended.
What should I use instead?

Thanks.


Jam

View Replies !    View Related
Ifframeloaded
Hi, I was wondering if someone could explain me why the action ifframeloaded with gotoAndPlay is not working when y publish just to test my movie.

please help

View Replies !    View Related
IfFrameLoaded Help
Hi guys,

I need a bit of help...

I have created a Flash movie, within it I LoadMovieNum some external swfs.

I have made a preloaded for each movie which is just a scene with 10 keyframes.

I have placed words like '10%', '20%' etc. on each frame. I then drag the contents on my library outside the stage area on each of the frames to give a countdown impression.

Seeing how the user will be jumping from loaded swf to swf I wanted to put a bit of script at the start of the movie. I have put a label at the end of the Loader scene called loaded and one called start at the start of the Transition scene.

If the frame called loaded is already loaded then I'd like to skip the countdown and go to the start frame.

I'm using this code but it is not working please advbse:


code:

ifFrameLoaded("Loader","loaded") {
gotoAndPlay("Transition","start")
}

View Replies !    View Related
IfFrameLoaded
Hi

What I have here is some code that is meant to do pretty much what it says, but doesn’t, it is to be placed on the Timeline in a frame.

stop();
ifFrameLoaded (2) {
gotoAndStop (2);
tellTarget ("counter_mc") {
gotoAndPlay(1);
}
}
}

Like I say I know it’s wrong but it says pretty much what I want to happen.

Could anybody correct this for me to work in the Timeline.

Thanks in advance,

Phil

View Replies !    View Related
IfFrameLoaded
Hi im having a little problem using the ifFrameLoaded

I have a MC and at the end of that MC's timeline i want to jump to another scene of my movie. Here is the code that im using,

"name" is my frame label which is on a keyframe above this codes keyframe


Code:
ifFrameLoaded.this ("startvid") {
_root.gotoAndStop("main", 1);
}

View Replies !    View Related
IfFrameLoaded MC
In the first frame of my movie I have:
ifFrameLoaded (140) {
gotoAndPlay(2);
}

But in frame 5 i inserted a movie clip. How can I preload this movieclip _root.mc & first 140 frames of my movie and then play frame 2 in the main timeline.

Tutorial, example

View Replies !    View Related
IfFrameLoaded
I have a button that tells a movie clip, currently loaded on level2, to play a frame named "next". After "next" is played and the movie clip reached frame "end" I want another movie to load onto the exact same level.

What I have now works only half way, it loads a new movie, yet doesn't allow the previous one to play the needed frame. Only when I get rid of ifFrameLoaded etc. it plays "next" etc.

on (release) {
tellTarget ("_level2")
gotoAndPlay ("next");
ifFrameLoaded ("_level2", "end")
loadMovieNum ("services.swf", 2);
}

Thank you, guys!

View Replies !    View Related
IfFrameLoaded MC
In the first frame of my movie I have:
ifFrameLoaded (140) {
gotoAndPlay(2);
}

But in frame 5 i inserted a movie clip. How can I preload this movieclip _root.mc & first 140 frames of my movie and then play frame 2 in the main timeline.

Tutorial, example

View Replies !    View Related
OnClipEvent / Ifframeloaded
hopefully this is possible...

There is a clip called Sequence sitting in the first frame of the main timeline. Within Sequence there is a clip called Preload to which i need to attach a clipevent to test whether the second frame of the main timeline is loaded. how do I refer to the main timeline from within the Sequence movie clip??

this maybe a dumb question, but i am really *stuck*

thanks!

View Replies !    View Related
IfFrameLoaded & LoadMovie?
Hi everyone!!

I need some help! I have a standard preloader on my website, ifFrameLoaded waiting for frame "x" to load. What I want to do is have the preloader wait for a movie or movies brought in with LoadMovie to load fully before preceeding.

Is there a way for ifFrameLoaded to check up on _level1, _level2 etc?

Thanks!!!!

Ben

View Replies !    View Related
IfFrameLoaded From Within MC - Doing My Head In
Done the old ifFrameLoaded from on the main timeline (load loop...etc), but for the life of me can't work out the correct syntaxt for use within a movie clip, checkng if a frame on the main timeline has loaded, and then telling the main timeline to play (that's the easy bit).

I know it'll be simple but just doing my head in at the moment....

View Replies !    View Related
An IfFrameLoaded Question ?
I have several scenes in my flash movie, in my preloader scene i have :

onClipEvent (load) {
total_bytes = _root.getBytesTotal();
loaded_bytes = _root.getBytesLoaded();
percent = Math.floor((loaded_bytes/total_bytes)*100);
ifFrameLoaded ("Scene 1", 1) {
gotoAndPlay(1);
}
}


My question is should the ifframeLoaded ("Scene 1", 1) be the last Scene, so in my case my last scene is 5. Will this only preload scene 5 or all the scenes before 5 and including 5 ?

View Replies !    View Related
Replacement For IfFrameLoaded?
Having used Flash5 much and now having switched to MX, I'm perplexed with why ifFrameLoaded is now in the "deprecated" list. The problem this leaves me with is this:

I have a 7 scene movie that is fairly large, and I want to have a preloader in the first few frames every scene (actually IN the scene due to the fact that each one has to be a little different) that checks to see if ALL of that scene has been loaded yet. Hopefully, but the time someone reaches scene 3 and beyond, the file will have loaded and the preloaders can just be skipped (nothing to preload!)

With ifFrameLoaded I could do this with no problem, but have had no luck with any attempts to use _frameloaded (can a scene have an instance name, and if so, where do you enter that?) or getBytesLoaded/getBytesTotal (what I want is these functions targeted to individual scenes, not to ALL scenes!)

I have a feeling that I'm missing something crucial here, because I can't believe they would make something that USED to be so simple so durn complex now! Any help/code snippets would be GREATLY appreciated.

Hugs!

View Replies !    View Related
IfFrameloaded Deprecation
if ifFrameLoaded is deprecated, what is it's replacement? I haven't really looked in the preloader things, but the ones I've seen seem a little too robust for simple loading screens.

or am I just too much noob? Please let me know.

Thanks

View Replies !    View Related
IfFrameLoaded Question
Everytime I try to make a preloader animation, the movie just skips over it and goes to the movie which isnt finished loading. Just as an example, I am using script like:

ifFrameLoaded (4) {
gotoAndStop(2);
}

Is there a way to say "if the entire movie is loaded, go to frame 2"? I have no idea why this works sometimes and other times doesn't.

View Replies !    View Related
IfFrameLoaded Vs GetBytesTotal
I've got a Flash movie with 5 levels. I'm checking to see if they are fully loaded by using the following...


///
x = int( (_level3.getBytesLoaded()/_level3.getBytesTotal())*100);
if (_level3.getBytesLoaded()!=_level3.getBytesTotal() ){
_root.progress.gotoAndStop(x);
gotoAndPlay("notloadedyet");
} else {
_root.progress.gotoAndStop(x);
gotoAndPlay("myframeisloaded");
}

////

(I changed the names a bit to make more sense out of context)

Now, when I run this, some frames routinely ARE NOT LOADED even though they pass this test.

Should I be using _framesloaded/ifFrameLoaded instead?

-Chilton

View Replies !    View Related
Ifframeloaded Deprecated
hi... just wanted to tell to the moderators that... the tutorial in http://actionscript.org/tutorials/in...rs/index.shtml

is using ifframeloaded, which is deprecated in MX. I don't want the newbies (like me) to use it without knowing.

View Replies !    View Related
HitTest And IfFrameLoaded
im trying to make a movie where the code under the hitTest method
will only be executed if the collision has occured, AND if a frame is loaded.
i hope u know what i mean.

- coolioman-

View Replies !    View Related
IfFrameLoaded And Preloaders
Problems i have

Problem 1.
im trying to get IfFrameLoaded to work, and it would work. except i need it to work so its aiming at a frame INSIDE a movieclip, eg: button outside which has ifframeloaded, frame inside the MC which i want the ifframeloaded to work for
any suggestions ?

Problem 2.
Im using the preloader from this site, and it works fine, except for one minor thing
it gets to 60% and skips straight off, and its happened with 4 flash files of mine so far
anyone know why?

View Replies !    View Related
IfFrameLoaded Question
hey everyone, how can i make a script on loading the whole movie. i mean including all the scenes.

ifFrameLoaded (10); means loading upto frame 10 in the same scene
ifFrameLoaded ("Scene 2",10); means loading upto frame 10 in Scene 2

all scenes >>> how???

tnx!!!

View Replies !    View Related
IfFrameLoaded And Preloaders
Problems i have

Problem 1.
im trying to get IfFrameLoaded to work, and it would work. except i need it to work so its aiming at a frame INSIDE a movieclip, eg: button outside which has ifframeloaded, frame inside the MC which i want the ifframeloaded to work for
any suggestions ?

Problem 2.
Im using the preloader from this site, and it works fine, except for one minor thing
it gets to 60% and skips straight off, and its happened with 4 flash files of mine so far
anyone know why?

View Replies !    View Related
Should IfFrameloaded() Not Be Used In Flash 5 Or Higher?
I want to use ifFrameloaded() so I can check directly on a frame label to see if it is loaded, but Moock's book sez it is depreciated in Flash 5.

Is it still going to be supported or should I really not use it?

How would I otherwise check to see if a framelabel has loaded?

Thanks!

View Replies !    View Related
Question About LoadMovieNum & IfFrameLoaded
Hello everybody!
Let me describe my problem:
I have a movie were I load two diferent SWfs using loadmovie.
The deal is, I need the second movie to load, ONLY when the first one has finished loading.
I have tried using ifFrameLoaded but it didn´t work...
How should I do this?
One very big problem is, I DO NOT have access to the FLA file on the first SWF movie I need to load.
Thanks in advance!

View Replies !    View Related
Bar Preloader For External .swf That Uses IfFrameloaded
Hi all
I've tried to solve this problem myself, searched for answers in the board, tutorials...with no luck.
I have an external .swf (tendencias.swf)that I want to load in my main movie (oval.swf). The file tendencias.swf consists of 20 photos, so it's quite big (472KB). At the moment I'm using ifFrameloaded to begin to display the photos while the rest of photos is still loading.
You can see what I mean here:http://www10.brinkster.com/premama (hit "Tendencias")
But what I want to do is to put a bar preloader(with percentage if possible), not for the whole file, but just for the first photo.
I hope I explained myself.
How can I do this?
I would appreciate any help.

View Replies !    View Related
IfFrameLoaded Doesn't Works?
Hi, I have a strange problem 2day... I made a movie and the last frame of that movie contains a jpg picture and I want that if the whole movie is loaded (execpt that pic) that there is a message with loading pic... and when it's loaded the picture wil be shown. Now I've made this code:

ifFrameLoaded (65) {
gotoAndStop(65);
}
gotoAndPlay(57);


But this doens't works?!?! When the pic isn't loaded it will show my message 'loading pic' but when it's loaded is doens't quit looping and doesn't show my pic... what's wrong with the script???

Grtz
Joost

View Replies !    View Related
IfFrameLoaded Command Menu
I am loading a menu on mouse over button a and want to unload when mouse is over button b. I have it working but whenever my mouse goes over button b the menu shows then unloads. How can I stop this from happening? I was thinking an ifFrameLoaded command but I can't make it work.

View Replies !    View Related
Depreciated Actionscript (ifFrameloaded)
I am using the following code as a preloader. Works well. But I was wondering what replaces the "ifFrameLoaded" if it is depreciated in Flash MX? How else would this be written in Flash MX?
onClipEvent (enterFrame) {
ifFrameLoaded ("Scene 3", 46)
_root.gotoAndPlay(2);
}

View Replies !    View Related
Flash MX IfFrameLoaded Stuff
I have a movieclip called 'loopmovie' which is two frames long, one is blank and the other has my music loop which is the background music for the site. When the user clicks the 'stop sounds' button, it tells 'loopmovie' to go the blank frame.

What script do i need to add (to another button) to only tell another movieclip to do something if the music loop is playing?
(ifFrameloaded and stuff)

Thanks

View Replies !    View Related
IfFrameLoaded & Flash Player 7
I'm having a repeat problem I experienced when I upgraded from Flash player
5 to 6 now with 6 to 7:

I am using the following action script below to avoid my intro movie
repeating itself each time the movie is loaded

ifFrameLoaded ("home") {
_root.gotoAndPlay("Second");
}

This worked fine using FP6 but now I use 7 it no longer works. The code is completely ignored & the movie plays from the very beginning each time you refresh the page.

Can anyone point me in the right direction to the correct code ? Preferably something universal that will eiliminate this problem with future FP upgrades

Thanks,
Glenn

View Replies !    View Related
How To Do IfFrameLoaded GotoAndPlay In Flash 6
Hi,

I used to be able to get this done in Flash 5 but Flash 6 has me a bit confused. My Flash Movie has 73 frames. I want to set my movie to pause at frame one and start playing frame 2 only after the entire movie has been loaded.

Can anyone tell me how to do this in Flash 6?

Thanks

View Replies !    View Related
IfFrameLoaded Inside A Movie Clip
From inside a movie clip, I want to determine if a frame on the main timeline has loaded. Do I need a tellTarget for the ifFrameLoaded action or does ifFrameLoaded automatically refer to frames on the main timeline?

View Replies !    View Related
Checking IfFrameLoaded In Loaded Movie
Can somebody help me out...here's the scenario (flash5):

I am using the LoadMovie command to load a music only swf (swiftmp3 made). It plays great, but I want to check the frame loaded status of this movie so that I can control an animation in the root movie. Does that make sense?

The idea is this:
When frame x of the LoadedMovie is loaded, goto and play frame x in the root movie. I'm trying to sync animation to audio without the horrible quality loss of Flash's built in stream function.

Any ideas?

View Replies !    View Related
Preloader, IfFrameLoaded, Simple Question
When it comes to preloaders, I ususally have 2 scenes. there is the preloader scene called "preloader" and Scene2 is the movie and is actually called "scene 1". "preloader" consists of 3 frames.

Frame 1:
ifFrameLoaded ("scene 1", frame#) {
gotoAndPlay (3)

Frame 2:
gotoAndPlay (1);

Frame 3:
gotoAndPlay ("scene 1", 1);

so here's my question. my main scene contains 1 MC, inside that MC are other MCs, etc. etc. in nested form.

Take this example. "scene 1" contains 'main' MC. Inside 'main' there is a MC called 'pic_holder'. 'pic_holder' contains 70 frames.

so if I call the instance of that mc 'pic_holder', and then write in frame 1 of the preloader scene:

ifFrameLoaded(pic_holder, 70) {
gotoAndPlay("scene 1", 1);
}

will it work??

I know this is really simple and straightforward, but I'm just asking to be certain.

thanks in advance
sid.

View Replies !    View Related
Load Movie With IfFrameLoaded Action Help
Dear Flash Expert,
My Name is Usama Zulfiqar and I am using Flash 5 for a very long time. I have learned flash at home and I do not take any classes or tutorials to learn it.
I am making a flash website. There is a problem in a load movie action. Actually the flash movie is big and my flash web site contains few but big sections so I think that I should use load movie action so that the file size will be reduced.

In my flash site one movie is base movie and others are loaded when a user click on a button. One of the sections of my site is info tech which is really very big section even more bigly than my base movie. So I have put a small preloader in the InfoTech movie so that when it loads it will show “Accessing Data” and when the movie completely loads the Accessing data preloader disappears. I have used “ifFrameLoaded action.

The problem is that when I or user clicks on info tech button the small preloader of InfoTech does not come suddenly. What happens actually is that the preloader appears after few seconds.

I want that when I or a user click on the Info Tech button the preloader “Accessing Data” should suddenly comes. But the fact is that it couldn’t. I have tried many times but all in vain.
This means that I have to insert preloader in the base movie. There is a professional web site name as “SLG DESIGN” http://www.slgdesign.com . This site have different section e.g. About Us, Portfolio etc. And when you click on one of the buttons, then the preloader suddenly appears. This site also uses loadMovie Action.

My question is that whether it is possible that when a user clicks on the button then the preloader suddenly appear. What further more actions should be used?

Please give me full details.

You can also see my flash website (Under-construction). The URL is http://www.brainy.itgo.com

I hope you will digest the above information.

Thanks
Usama Zulfiqar.

View Replies !    View Related
Check IfFrameLoaded In A Loaded File
I Have 2 SWF Files on of them has Large file size and the other is smaller.
that small file is preloader I want to Laod the Large File in the small one (preloader) .. and I want this preloader to loop until a certain frame in the large file loaded .

Can Anyone Help Me With That???

View Replies !    View Related
IfFrameloaded() Depreciated How To Get Frame Number From Frame Label
ifFrameLoaded() has been depreciated in Flash 5, leaving me with using _framesLoaded which gives me no way to verify a frame label is loaded as far as I can tell.

I thought there was a way to get a frame number from a frame label but I can't find it. How would you determine if a frame label is loaded (not the whole movie, but the just up to the frame label).

The reason I have to do this is that I have large animations that are changing a lot during production and thus the frame numbers are changing. I need to determine if a frame label is loaded (not the entire movie).

Thanks for the help!

View Replies !    View Related
IfFrameLoaded("frame With LoadMovie");
I use ifFrameLoaded for the preloading for a part of my movie. This part has external jpg's in it witch i load with LoadMovie. The ifFrameLoaded doesn't seem to look to the external jpg's...
How can i preload this frame (or the external jpg's)?

View Replies !    View Related
"ifFrameLoaded" Action Help
Hi

I have a preloader in my movie that has an action in it that reads: "ifFrameLoaded ("Scene 6", 1) { gotoAndPlay("Scene 2", 1);}

The movie is about 380K in size. When it loads, it gets to about 250K and starts the movie (from scene 2, frame 1). For some reason, it doesn't wait until the last scene is loaded.

Can someone tell me what I am doing wrong?

Thanks

View Replies !    View Related
IfFrameLoaded ("_parent", "page7") { **Frame Label Not Working)
Hi, why can't I get the following code to work with the frame label ("page7")?

ifFrameLoaded ("_parent", "page7") {
gotoAndPlay("loading");
}

Instead I can only get it to work with frame number (346):

ifFrameLoaded ("_parent", 346) {
gotoAndPlay("loading");
}

It would be so much easier if I could use frame labels instead. Any ideas?

Thanks

View Replies !    View Related
IfFrameLoaded ("_parent", "page7") { **Frame Label Not Working)
Hi, why can't I get the following code to work with the frame label ("page7")?

ifFrameLoaded ("_parent", "page7") {
gotoAndPlay("loading");
}

Instead I can only get it to work with frame number (346):

ifFrameLoaded ("_parent", 346) {
gotoAndPlay("loading");
}

It would be so much easier if I could use frame labels instead. Any ideas?

Thanks,
Luke

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