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




How Do You, Check If The Movie.swf On Level 3 Is Fully Loaded And If So, Do This?



I want to add on a frame in a movie on level 0, to check if movie B has been fully loaded onto level 3 and if so, go and play frame 10 of that movie B, if not, then load movie B onto level 3 and when its fully loaded, play frame 10 then.



DevShed > Flash Help
Posted on: May 20th, 2007, 09:38 PM


View Complete Forum Thread with Replies

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

(F8) Check If Movie Is Already Loaded In A Level
This may be a simple question, but I'm relatively new to the actionscript side of Flash.

I have buttons that each load a different movie clip into, let's say, Level One. I'd to know how to write the AS so that if a specific movie is already loaded into that level, it won't load again when the button is pressed.

Thanks in advance if you can help.

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

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

so I create a loop with "i":

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

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

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

anyone .... anyone....?

How Do I Check If Jpeg Is Fully Loaded?
I know in Flash MX I can load in jpegs with loadMovie(). What I'm wondering is, how can I check (maybe using Actionscript?), whether that image is loaded (showing) or not?

Second question is: I notice that images loaded this way don't show up until they're 100% loaded, right? Is there a way to make it load progressively?

Thank you for any help,

~jimmy.

Looking For Code To Check If FLV Is Fully Loaded
looking for AS3 code to check if the FLV is fully loaded. ( like a loading screen just for the flv)

Check If A Jpg File Is Fully Loaded
Hi y'all,

I have this picture on my flash site, and it needs to be uploadable by the client, so I need some preloader of some sort to display while the jpg is loading.

I'm loading the jpg with loadMovie. Only want it to display when fully loaded.

Thanks in advance,
Geert

How To Check If Movie Is Loaded On Another Level & Play Frame#?
  I have a menu for an all flash webpage on a top level and I want to command flash to check and see if there is a movie loaded on another level, such as level 1, and if so play frame 30 of that movie.  and if there's no movie, do nothing.  I tried the ifFrameLoaded command, but cant get it to work for other levels than the current level.  I have tried it in conjunction with _level1 for example  and with "tell target"  It seems to be in compatible.  

Do you know any other code to do this?

Thanks for any ideas,

Peter

PS this is the code I have tried that didnt work:

on (release) {
     _level1.ifFrameLoaded (1) {
        gotoAndPlay(30);
    }
}



Flash Not Fully Loaded? Hmmm, Check It Out.
I have finished a site with a preloader. Sometimes when folks visit the site, after the movie is loaded it just shows like 2 buttons and the rest is blank. A simple refresh quickly restores this, but I need to know why it doesnt fully load, or seems to fully load but requires a refresh once and a while.

many thanks.

www.lascazuelas-la.com

Code To Check If Clip Is Fully Loaded?
Hey can anyone help me with some code that checks if the loaded movie is completely loaded in the clip.

Checking If Movie Loaded Into An Instance Has Fully Loaded B4 Playing
Hi,

I'm building a site that streams a series of small movies into some preset into instances on the _root timeline but are paused on an empty frame 1 until needed. So while the first movie is playing the second movie is already being loaded and is cued on frame 1 ready to play.

However, if the timeline tells the loaded movie (i.e. _root.content ) to play frame 2 before this movie has finished loading it will not play. This shouldn't happen because the movie loaded into _root.content should have loaded, but I need a failsafe.

Is there a way to run a routine once the _root timeline is finished to constantly check the status of the movie being loaded in _root.content and then play once it is loaded.

I've tried running this code in a routine:

if (_root.content._framesloaded >= _root.content._totalframes) {
_root.gotoAndPlay(2)
}

..but I'm not sure if it will work.

I really want to avoid a preloader (each movie is only about 10k big )

Any help would be greatly appreciated

Cheers

How Can I Check That A Level Has Loaded?
hi wonderful flash people:

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

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

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

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

Jag

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

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

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

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

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

Jag

Check Swf Loaded In Level
I have a mult-language site I'm still building. What I am trying to do is when you click on the lang switch it checks what swf you are on and loads that onel in spanish. Only problem is all my attempts at creating a statement that will find out the swf has not worked.

Code:

import mx.transitions.Tween;
import mx.transitions.easing;
//var for string for checking if it's english or spanish
var lang:String = "english";
// END


//var for string to see what page it's on.
var lodedSwf:String;


//tells what String to load into the layout level
var spanishTitle:String;
spanishTitle = "";

trace(lodedSwf);
trace(spanishTitle);



// lang switch
[b]this.espanol_mc.onRelease = function():Void
{
   
   if(_level5 == "home.swf")
{
   lodedSwf = "home";
   trace("from smenu: " + lodedSwf + "is the level5");
}

if(_level5== "bio.swf")
{
   lodedSwf = "home";
   trace("from smenu: " + lodedSwf + "is the level5");
}[/b]
   /*if (this._currentframe == 1)
   {
   */
   bringUpDn(popMenu, 100, 0, "down");
   bringUpDn(espanol_mc, 100, 0, "down");
   /*lang = "spanish";
   this.gotoAndStop(10);
   
   }
   else
   {
   bringUpDn(popMenu, 0, 100, "down");
   this.gotoAndStop(1);
      lang = "english";
   }
   
   trace(lang);*/
};
// lang switch function END


//trace(lang);
//--------------HOME
_root.popMenu.home_btn.onRollOver = function():Void
{
   trace("home");
   _root.popMenu.gotoAndStop("home");
};
_root.popMenu.home_btn.onRelease = function():Void
{
   //page loaded is
   lodedSwf = "home";
   
   trace(lodedSwf + " page Loaded");
   //END
   //trace statements
   trace("home pressed");
   trace(lang);
   //END
   // goes to layout bg
   _level2.margaret.gotoAndStop(36);
   //END
   //format Margaret's name to 40pt and black
   var fmt:TextFormat = new TextFormat();
   fmt.color = 0x000000;
   fmt.size = 40;
   _level2.margaret.margaret_txt_mc.margaret_txt.setTextFormat(fmt);
   //END
   //navBtnEnable();
   //_level0.mcL.unloadClip(_level6);
   //goes to home bg
   _level2.gotoAndStop(37);
   //load home swf
   _level0.mcL.loadClip("home.swf", 5);
   //text banner null
   _level2.pageName_mc.pageName.text = "";
};
//--------------HOME END
//--------------BIO
_root.popMenu.bio_btn.onRollOver = function():Void
{
   trace("bio");
   _root.popMenu.gotoAndStop("bio");
};
_root.popMenu.bio_btn.onRelease = function():Void
{
   //page loaded is
   lodedSwf = "bio";
   spanishTitle = "biograph?a";
   trace(lodedSwf + " page Loaded");
   //END
   _level2.gotoAndStop("bio");
   _level2.margaret.margaret_txt_mc.margaret_txt.setTextFormat(name_fmt);
   _level0.mcL.loadClip("bio.swf", 5);
   _level2.pageName_mc.pageName.text = "Biography";
};
//--------------BIO END
//--------------BOOKS
_root.popMenu.books_btn.onRollOver = function():Void
{
   trace("books");
   _root.popMenu.gotoAndStop("books");
};
_root.popMenu.books_btn.onRelease = function():Void
{
   lodedSwf = "books";
   spanishTitle = "libros";
   
   _level2.gotoAndStop("books");
   _level2.margaret.margaret_txt_mc.margaret_txt.setTextFormat(name_fmt);
   _level0.mcL.loadClip("books.swf", 5);
   _level2.pageName_mc.pageName.text = "Books";
};
//--------------BOOKS END
//--------------COMMUNITY
_root.popMenu.comm_btn.onRollOver = function():Void
{
   trace("community");
   _root.popMenu.gotoAndStop("comm");
};
_root.popMenu.comm_btn.onRelease = function():Void
{
   lodedSwf = "comm";
   spanishTitle = "communidad";
   //_level0.mcL.unloadClip(_level6);
   //navBtnEnable();
   //_root.popMenu.comm_btn.enabled = false;
   _level2.margaret.margaret_txt_mc.margaret_txt.setTextFormat(name_fmt);
   _level0.mcL.loadClip("comm.swf", 5);
   _level2.gotoAndStop("comm");
   _level2.pageName_mc.pageName.text = "Community";
};
//---------------COMMUNITY END
//---------------LAW END
_root.popMenu.law_btn.onRollOver = function():Void
{
   trace("law practice");
   _root.popMenu.gotoAndStop("law");
};
_root.popMenu.law_btn.onRelease = function():Void
{
   lodedSwf = "law";
   spanishTitle = "pr?ctica de la ley";
   //_level0.mcL.unloadClip(_level6);
   //navBtnEnable();
   //_root.popMenu.law_btn.enabled = false;
   _level2.margaret.margaret_txt_mc.margaret_txt.setTextFormat(name_fmt);
   _level0.mcL.loadClip("law.swf", 5);
   _level2.gotoAndStop("law");
   _level2.pageName_mc.pageName.text = "Law Practice";
};
//---------------LAW END
//---------------CONTACTS END
_root.popMenu.contacts_btn.onRollOver = function():Void
{
   trace("contacts");
   _root.popMenu.gotoAndStop("contacts");
};
_root.popMenu.contacts_btn.onRelease = function():Void
{
   lodedSwf = "contact";
   spanishTitle = "contactos";
   //_level0.mcL.unloadClip(_level6);
   //navBtnEnable();
   //_root.popMenu.contacts_btn.enabled = false;
   _level2.margaret.margaret_txt_mc.margaret_txt.setTextFormat(name_fmt);
   _level0.mcL.loadClip("contact.swf", 5);
   _level2.gotoAndStop("contacts");
   _level2.pageName_mc.pageName.text = "Contacts";
};

// enable all menue items currently not used
function navBtnEnable():Void
{
   _root.popMenu.home_btn.enabled = true;
   _root.popMenu.bio_btn.enabled = true;
   _root.popMenu.books_btn.enabled = true;
   _root.popMenu.comm_btn.enabled = true;
   _root.popMenu.law_btn.enabled = true;
   _root.popMenu.contacts_btn.enabled = true;
}
function bringUpDn(tweenClip:MovieClip, from:Number, to:Number, tweening:String):Void
{
   
   //trace(tweenClip + " visiblity is " +tweenClip._visible);
   if (tweening == "down")
   {
      if (tweenClip <= 30)
      {
         //tweenClip._visible = false;
      }
   }
   if (tweening == "up")
   {
      if (tweenClip <= 0)
      {
         //tweenClip._visible = true;
      }
   }
   var alfTween = new Tween(tweenClip, "_alpha", Regular.none, from, to, 1, true);
   alfTween.onMotionFinished = function():Void
   {
      _level0.mcL.loadClip("smenu.swf", 10);
      goToPage(lodedSwf);
      trace(lodedSwf + " String Loaded");
      
      
   };
   
}

// loades ex: shome.swf and home as layout text
function goToPage(lodedSwf):Void
{
   _level0.mcL.loadClip("s" + lodedSwf + ".swf", 5);
   _level2.pageName_mc.pageName.text = spanishTitle;
}


Any help is appreciated

Help, Trying To Check If A SWF Has Loaded Into A Specific Level
I'm trying to build a button where.....

IF clicked, it will load a swf file into lvl 4

UNLESS lvl4 already has a SWF loaded into it, then I want this button to UNLOAD whatever is in lvl 4.

I figure its some check that reads.....

On Press - If something is in lvl 4 - unload lvl 4
- else load SomeFlashFile.swf into lvl 4

Anyone know the correct way to script this?

Thanks in advance

(using Flash MX 6.0 r4)

Detect When Loaded Movie Is Fully Loaded
hey all,

I am trying to load an external swf into a target. when the swf is completely loaded, i want to execute the next set of actions.

Now here is the bit i'm stuck. I am trying to develop my flash websites so that no coding is done within the child swfs.

so i would assume some code like this would work:

_root.holder.loadMovie ("child.swf");
if(_root.holder.getBytesLoaded ==_root.holder.getBytesTotal){
_execute some other command;
}

However it doesn't work!!!

So is there a way to detect when a specific child swf has fully loaded into a target (not _framesLoaded please!) and then set a variable to allow some other actionscript to kick in?

please help if you know,

using mx btw

cheers,

Kd

Check % Loaded On Another Level And Give Feedback
example:
http://www.merlinmedia.com.au/flame/


Thank you for taking the time to read this.....



In the begining of the movie....

main.swf loads.....

frame 1 :

loadMovieNum("structure.swf", 20);
loadMovieNum("basesound.swf", 21);
loadMovieNum("sound.swf", 22);
loadMovieNum("nav.swf", 23);


frame 3:

total_bytes = _root.getBytesTotal();
loaded_bytes = _root.getBytesLoaded();
remaining_bytes = total_bytes-loaded_bytes;
percent_done = Math.floor((loaded_bytes/total_bytes)*100);

_root.bar.gotoAndStop (percent_done);
_root.preloaderText = percent_done +"% completed";

if (_root.getBytesLoaded() == _root.getBytesTotal()) {
_root.gotoAndPlay(4);
} else {
gotoAndPlay(2);
}

::::::: on frame 3, the above checks if all in "main.swf" is loaded. Also, as the frames load in "main.swf" the MC "bar"

_root.bar.gotoAndStop (percent_done);

is going up depending on the frames loaded

_root.preloaderText = percent_done +"% completed";

% loaded is placed into the "preloaderText" text box



Also on frame 12 of main.swf...

loadMovieNum("doors.swf", 10);
stop();

"door.swf" is loaded into level10 of the main.swf



all this is exactly as I want it to be and works fine........... yeh!!!





:::::: Now come the hard bit.

When you click the "about us" button in the nav.swf..

on (release) {
_level10.gotoAndPlay("aboutusClose");
}


the actionscript tells level10 (door.swf) play at the frame labled "aboutusClose" which closes the door


When the playhead enters frame 15:

_level0.gotoAndStop("mainblank");
unloadMovie(5);
loadMovie("home.swf", 5);


which telsl level0 (main.swf) to goto and stop the labal "mainblank"

unload swf file on level5 (to ensure that there is no movie playing)

load home.swf in level 5





::::: I think everything is OK to this point.......

When the frame enters 17, the following is loaded:

total_bytes = _level5.getBytesTotal();
loaded_bytes = _level5.getBytesLoaded();
remaining_bytes = total_bytes - loaded_bytes;
percent_done = Math.floor((loaded_bytes / total_bytes)*100);



which I hope is:

the total bytes loaded from level5
the loadedbytes from level5
minus's the total bytes from the bytes loaded in level5
turns the total bytes into % loaded

_root.bar.gotoAndStop(percent_done);

then plays the "bar" MC depending on the % loaded


_root.preloaderText = percent_done+"% completed";

places a text % into the text box called "preloaderText"


if (_level5.getBytesLoaded() == _level5.getBytesTotal()) {

says, if total bytes loaded on level5 is equal to the total bytes

_root.gotoAndPlay(20);

goto and play frame 20 (which opens the door and reveals the new swf file....


} else {
gotoAndPlay(16);
}

if it doesn't, go to frame 16 and execute the above again...





In short:

when you click on the button in the nav.swf.. the actionscript tells level10 (door.swf) to close door, unload level5, load new level5, check the frames loaded on level5 and give a text % in the "preloaderText" of % in level5, and at the same time make the "bar" MC fill depending on the % loaded on level5. When level5 has been fully loaded, the door opens showing the new movie loaded in level5....


I am rather new at action scripting and don't understand what you have done....

Could you by any chance change the script in my source files to make it work and email me to updated source file so that maybe I can understand..... if you like I would pay you $100.00 for your effort if I'm asking to much

My email is: dallas@merlinmedia.com.au

Hope this has made it clear



thanks in advance



Dallas

Check If Specific Swf Is Loaded In Spec Level?
I am making a site with several external swf's that are loaded into different levels. Every menu button loads two swf's - one specific for that page, and one general for that category. Like the ABOUT button always loads generalabout.swf into level 2 and aboutus.swf or aboutyou.swf or aboutthree.swf into level 3. Is there a way to add to the menu button About Us, About you etc, a check if generalabout.swf is already loaded into level 1, and then only load the aboutus.swf or aboutyou.swf? And if it in't loaded (becuase say generalcontact.swf is already loaded into level 1) then load it? Am I making any sense?

Much appreciated if anyone can help!

How To Tell If Movie Is Fully Loaded
I'm used to some outdated ActionScript techniques, I fear. I have a little loop at the start of my movie, and I only want to continue past the loop when everything is loaded. (In this case, to make an executable with many photos play more smoothly.)

root.framesLoaded generates an error. What's the proper method? I'm not having much luck with Search (here or in the docs).

Thanks in advance!

[F8] Swf Movie Plays Before Fully Loaded
Hi there, i'm just trying to figure out how to keep a swf file(that i am loading externally) from playing until its fully loaded. Heres my code...
code: stop();

this.createEmptyMovieClip("introContainer", this.getNextHighestDepth());
var myListener:Object = new Object();

myListener.onLoadInit = function(): Void {
loading._visible = false;
};

var myMCL:MovieClipLoader = new MovieClipLoader();
myMCL.loadClip("intro.swf", "introContainer");
myMCL.addListener(myListener);

the loading._visible code is simply to tell the preloader to disappear after the movie is fully loaded. My problem is that the swf starts playing before fully loaded and makes the movie jumpy and non-coherent. Any help would be awesome!!!

Play Movie Before Fully Loaded
i was trying to use

if (this._framesloaded == 3) {
this.gotoAndPlay(3);
}

to play my movie before the whole movie is loaded, but it doesnt go to frame 3, it just waits until the whole movie is loaded.

How Can A Play A Not Fully Loaded Movie?
I want a video to basically stream, but I want to import the video in flash and then publish a swf and post it on a site... so when its there it just plays as its being loaded, like a gif kind of. When I do this, it seems the screen is blank until its fully loaded, and then it plays.

How Can I Prevent One Movie From Playing Until The Other Is Fully Loaded?
This is a demo of the web site I am making: http://www.lanstarrz.com/demo4/default.html

The way it works is nav.swf is the main flash movie. It loads up home.swf into position, and when a button in nav is pressed, it loads a new swf file into position.

But what I want to do is sync the two movies. I do not want nav.swf to starrt playing until home.swf is fully loaded. How can I do that?

How To Replace Embedded Movie When Web Page Is Fully Loaded
I want to initially load very small swf or gif images, wait until the web page is fully loaded, then load the full size movie. What is the best way to do this - some kind of image swap in the web page using an "onload" script, or via actionscript to load a replacement movie?

If I go the actionscript route, can flash determine when the containing web page has fully loaded?

If I go the onload javascript route, does anyone know if the DOM for various browsers can handle changing the src attribute for embed and/or object tags?

Any other good methods to do this? The current problem is that users with low bandwidth sometimes do not see the HTML page render until the swf is done loading. See the pages at www.bvex.com.

Preloader Not Showing Till Movie Fully Loaded
I've made a preloader for my movie (1.5 mbs), but when it is loading online, the screen is blank until the movie is fully loaded and then the preloader blinks by briefy and then goes to the main movie. Why is this happening?

Nick

How To Know From A Flash-movie That Is A HTML-document Fully Loaded?
can anybody to help me?
how to know from a flash-movie that is a HTML-document fully loaded?

Movie Starts Before It Is Fully Loaded, Look At My Script , Tell Me Whats Wrong.
My preloader doesent work, My movie is like 2.5 MB large, and starts before the movie is 100% loaded which causes misguiding in the buttons in the main page, I have many frames in the preloader and in each frame I have this script:

ifFrameLoaded ("intro", 175) {
gotoAndPlay("preloader", 2);
}

For each scene, what is wrong with my script??

thanks Zain..

Play Movie In Level 0 From Loaded .swf On Level 10?
hi everyone...

i have a movie(frame2) on the main timeline of the the main .swf loaded in at level 0, Which i want to play by clicking a button in a movie on the main timeline of .swf loaded in on level 10 what actionscript do i need to do this, i have looked at several other answers on the message board but none seemed to be relevant any body know what the script should be that i attach to the button.????your help would be much appreciated...

Check Which Level A Specific .swf Movie Is On?
Hi,
is there a way of checking into which level a specific .swf movie is loaded?
cheers,
minka

Playing A Loaded Movie Clip (loaded In A Different Level)
I really don't understand the problem here, I'm loading a swf containing a movie clip with 2 frames with Stop(); on each. The file is loaded on _level5 so I tried this:

Code:
tellTarget (_level5.musicmc) {
gotoAndStop (2);
}


but instead of telling the musicmc movieclip to go to frame 2, it tells it to the main timeline to go to frame 2 and stop...What's the problem, when I use "Debug Movie", I can see the:
_level5
......._level5.musicmc (....... = spaces)

what's wrong, it seems to don't want to tell the MC to go to frame 2. I passed many hours on this simple d*mn thing and I really can't find out...


BTW, I'm using Flash 5

How To Make Sure Randomly Loaded Externals Swfs Are Fully Loaded [F8]
I am randomly loading external swfs into my main movie. I've got the random part working. However, I don't know how to make sure the random swf is fully loaded before jumping to a specific frame in my main movie.

I have a preloader inside each external swf, but I don't know how to make my main movie understand that the random swf is completely loaded before the main timeline should gotoandPlay("start").

What I Have So Far:

I have a blank MC (named "location") on the main stage, which I am using to hold the random swfs. On the first frame inside this MC, I have the following code:

choice = Math.round(Math.random()*2);
switch (choice) {
case 0 :
location.loadMovie("image0.swf");
break;
case 1 :
location.loadMovie("image1.swf");
break;
case 2 :
location.loadMovie("image2.swf");
break;

}

Loading the random swfs is working perfectly. But after the external swf is fully loaded, I want to move onto a frame labeled "start" on the main stage. I just don't know how to make sure the random swfs are completely loaded before I say gotoandPlay("start").

I've tried piecing together bits from so many tutorials, and I just don't know what I need to do to make it work with my current code.

Thanks so much!

Manipulating Loaded Movies Before They Are Fully Loaded
Is there any way to manipulate a movie, e.g. play, stop, roll over etc. that has been loaded using loadMovie or loadMovieNum BEFORE it is fully loaded? From the LOADING movie that is. Not the LOADED movie...
If so. How?

If Movie Loaded In Level 8 Then.. Else...
Is there a way to check if a certain movie is loaded in a certain level.
I have a background that loads into level one and content that loads into level 2.

Each section has a different background and several sub sections. I want to put a script onto the buttons that checks whether the correct background swf is loaded for each section when you are there and only load the content for that sub-sector but if the background is wrong then to load that also.

I presume it'll be something like this but I am brand new to actionscript.

On (release)
If level1 contains "correctbackground"
then
load movie ("content",2)
else
loadmovie("correctbackground",1)
loadmovie("content",2)
end if

The reason for this is because when entering a new section it will have a new background, but when moving through the subsectors I don't want it to keep reloading the background.

Thanks in advance for any help

SetProperty Of A Loaded Movie In A Level?
Is it at all possible to control the placement of a loaded movie that has been placed in a new level?

_level1.setProperty._x = 100 doesn't work...

I know you can position .swf's using the targetting method when loading a movie, but what about in a new level? I would try to use the targetting method, but then the scripting in the "to be loaded" swf doesn't work...

any help is appreciated... i am open to any solutions... actionscript, javascript, whatever... but it can't be slicing the page into html and postioning my swfs in table cells.

thanks.

~N

How Can I Controll A Movie That Is Loaded On Level 1
hello friends...


i have a prob here.....

i have a MAIN mc.... now em loading SECOND mc on level 1 in MAIN mc...

now i want to controll the SECOND mc from main....

i mean how can i stop or play the SECOND mc whenever i want to... by pressing a button in MAIN mc....


i tried my best.... but i cant controol it.. ???... em sure if there is anyway of doing this then i will get my answer ....

Level Loaded Movie Sketchy - Help
so im loading a series of movies into a holder. each one has its own nav and im loading them into level 1 but im leaving a background image on level 0 so that there is something that remains throughout the transitions. inside one of the movies i have a sliding menu that just stops working every now and then. the call is going:

on (rollOver) {
if (_global.menustate == "closed") {
_level1.buttonslide.play();
_global.menustate = "open";
}
with (_root.vidprevA) {
gotoAndPlay(2);
}
}
on (rollOut) {
with (_root.vidprevA) {
gotoAndPlay(1);
}
}

this is driving me nuts, any tips appreciated. i will post the files if necessary but its a whole series....

m

Positioning A Movie When Loaded On A Level?
Can anyone help me with the syntax so I can position a movie when I load it into a level?

loadMovieNum("moviename.swf",5)

This just puts it in the upper left corner (not where I need it naturally)

thanks for any help!

Save Swf Movie Loaded Into Level 1
I'm trying to capture the SWF movie which is stored as a .GIF on the server and that is being loaded into the memory.

g_url = "http://www.kaartenhuis.nl/kaarten/flash/klaroengeschal.gif";
loadMovieNum(g_url, 1, "GET");

Once it has been loaded into the memory, how can I save the loaded file as SWF? Or how do I get the file from the server if they renamed it to GIF?

Thanks!

Calling From A Movie Loaded In A Different Level
I have my flash site split up into four different movies...the first movie is a root movie that loads the other three, and the other three are the header, the body, and the background. The bg is loaded on to level 2, the body on level 3, and the header on level 4. Well, what I need to do is when I hit a button in the header, it changes a value in the body movie but I'm not sure how to do this. How to I have the action tell the movie clip in level 3 do something when it is loaded on level 4? Any help would be greatly appreciated! Thanx in advance!

Level For The External Movie Loaded
hi my friends

can you help me in assigning a level for the external movie(reseller_locations.swf) loaded to a moivie clip(clipHolder)

code

loadMovie("reseller_locations.swf", this._parent.clipHolder);

can any body guide me.

if needed, please tell me for any kind of more details.

thankx in advance for help.

arun

Playing Loaded Movie From Another Level
I'm trying to play a movie that is already loaded. For example. The main movie loads "super.swf" into level 6. "super" plays and then stops. How do I from the main movie tell "super" on level 6 to continue playing after you click on a button. I tried

on (release) {
level_6.play();
}

That didn't work. Should I just copy that last frame of the movie in level 6 and on release from the main tell it to unload level 6 and load level 7 that has the last frame from level 6 as the first frame of level 7?

I hope I made enough sense for someone to know what I was talking about.

Load Movie: Can You Lock A Level Below A Loaded Movie?
I have a mainmovie with lots of buttons from which users can access 200 still images. The way I have set it up is that ALL images are loaded into level 2 from the buttons on the main movie, and all images unload from level 2 (there is only one image ever up at a time) and then go to a certain frame label back on level 0. Glitch has just come up (at zero hour) - seems that the buttons on level 0 still remain active through level 2 images - sooo, I wonder, is there any way to work around this by assigning level 1 a locked value or something?
Any tips or ideas welcome!
thanks

How To Tell If A Jpg Is Loaded Fully?
Is there a way to tell, when using loadMovie() to dynamically load a jpg, when the jpg has been fully loaded?

I want to be able to perform actions *after* the jpg has been fully loaded, but I can't figure out how.

Check For Loaded Movie
Hi all,

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

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

any help would be great

regards

jon

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

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

Can this be done without using event listeners?

Check If Movie Is Loaded
Hi All

can you please help me in validating the following

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

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

i think it should be something like

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

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



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


many thanks in advance

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


Can anyone help?

Check If MC Has Movie Loaded...?
Last edited by [X]Silver : 2008-01-13 at 14:17.
























Hi shockers...

I'm doing a friends photograpy site that has a slideshow. http://www.wowernfoto.dk/test
This slideshow is loaded into a containerclip on the mainstage.
Another container clip loads the site content (services, contact etc.)

But the site also has a gallery which unloads the slideshow mc, as the gallery takes up that place too.
Now... i need the buttons for Services, Contact etc to check if the slideshow mc is loaded into the holder clip, and if not then load it aswell as the related content.

I need it to check if the slideshow is already loaded, so i don't reload the slideshow everytime a button pressed.

Something like:
PHP Code:



services.onRelease = function(){
loader.loadMovie("services.swf");
if(loaderSlideshow.movieisLoaded == false) {        
loaderSlideshow.loadMovie("slides.swf");
}
}; 




Can anyone help?

Check If Mc Has A Movie Loaded?
Hi shockers...

I'm doing a photograpers site that has a slideshow.
This slideshow is loaded into a containerclip on the mainstage.
Another container clip loads the site content (services, contact etc.)

But the site also has a gallery which unloads the slideshow mc, as the gallery takes up that place too.
Now... i need the buttons for Services, Contact etc to check if the slideshow mc is loaded into the holder clip, and if not then load it aswell as the related content.

I need it to check if the slideshow is already loaded, so i don't reload the slideshow everytime a button pressed.

Something like:

ActionScript Code:
services.onRelease = function(){
    loader.loadMovie("services.swf");
    if(loaderSlideshow.movieisLoaded == false) {
        loaderSlideshow.loadMovie("slides.swf");
}
};


Can anyone help?

If Movie Is Loaded Then.... (how Do I Check This)
Last edited by pxlforge : 2006-04-04 at 13:26.
























http://www.pxlforge.com/client/tart/preview_v3.html

Not sure how to use "if then" statement to see which movie is currently loaded.

The purple box to the right of the page only needs to be there on pages that are going to have photos on them. I want to have a script on each button that checks if "purpleboxin.swf" is currently loaded, and if it is then loads "purpleboxout.swf" to animate it sliding off screen. Click on the company button to see what I mean... currently the "purpleboxout.swf" is loading whenever a button is clicked and I only want it coming in if purpleboxin.swf is loaded...

suggestions?

I can upload .fla if it will help...

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