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




Remove Loaded Movie After New LoadMovie Has Been Loaded



i need to unload a movie once the new loadMovie is fully loaded because once i click on my button to do so, my current loaded movie goes away & the screen is white until the new loaded movie is loaded. (i hope that made sense)



Adobe > ActionScript 1 and 2
Posted on: 11/30/2006 12:24:09 PM


View Complete Forum Thread with Replies

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

Checking If A Movie Loaded With LoadMovie Loaded Succesfuly
Hi,

I have a movie called main. I want to load into a movieClip that sits in main an .swf.

To do it i use a

pictureClip.loadMovie("PR001.swf");

My question is: is there a way that the main movie can know that PR001.swf was not loaded?

Thanks fo the help.

LoadMovie From Loaded Movie
Is this possible in any way? I've been trying and trying but can't get anything to work!

main.swf
menu.swf
content.swf

Those are my three movies...when you open Main it automatically loads Menu into level 10. Here's what I can't get to work, I want a button in Menu to load Content into...saaaay...level 5 and then tell it to go to a certain frame. I can't get this to work, why? I don't know. So please help me.

Thanks in advance.

Loadmovie From Within Loaded Movie
Hi,

I have my main swf called all.swf which contains nav buttons which load an external swf into an empty movie clip:

on (release) {
_root.mtClip.loadMovie("productstoc.swf");
}

This works fine, but in productstoc.swf I have 6 buttons that need to load external swfs into an empty movie clip mtclip2 in productstoc.swf. But this is not positioning to mtclip2 since its replacing productstoc.swf with the newly loaded clip access.swf, so it aligns to the top left of mtclip. This is the code I was using in productstoc.swf:

on (release) {
loadMovie("access.swf", mtclip2);
}

How can I load access.swf in the loaded movie or place in the right position in the main movie relative to mtclip?

Can I load the access.swf in another scene or frame of the productstoc.swf (alreay loaded movie)?

Your help is desperately needed.

Thanks

LoadMovie For Loaded Movie
Hi.

Confusing title, I know. So here is my explanation:
I use loadMovie() to load a few external swf files.
Later I want them to appear in a nested masked MC.

I had a function using loadMovie() in that nested MC,
but the external swf already has to be loaded
(for design reasons).

I wish I could continue using the loadMovie()-function
to load a MC from outside of the stage, but I know
it's only for external files.

How can I solve this problem? I tried to duplicate the
loaded swf into the MC, but I haven't managed it to work.

If you have any idea or hint, please tell me.

Thank you alot!
Best regards from Hamburg, Germany!

Fox

How To Remove One Movie When Another Movie Is Loaded Or Something Like That :)
Ok...
I've uploaded two fla-s so you can get the picture of what i'm trying to do more clearly. I have two files "main_menu.fla" which is sort of a master and "onama.fla" which is one of the movies that opens when you press the first button from the left ... when the button is pressed "onama.swf" is loaded but "main_menu.swf" stays bellow and somehow "gets in the way" to "onama.swf" if u know what i mean , also "onama.fla" has button "meni" that should return you back to "main_menu.swf"...

hope someone will know how to help me...thnx in advance ...chears


here are those two files: http://www.box.net/public/3itkj9zba3

LoadMovie And Scroll This Loaded Movie
I load a swf into another swf with loadmovie in a rectangle(for the position ). I would like to know, if it's possible
, if you have a swf(width 200 px, height 800 px), and than you load this movie in a rectangle (width 200 px, height 300 px!!!!), can you scroll this loaded movie with scrollbar?!?!

Loadmovie-action Within A Loaded Movie
Hi,

with a button action I load an external movie into a mc on my stage of my main-mc. The external movie is now on my stage in the target-mc called loader, let us name the external-mc "aboutme.swf". I do have some buttons in the aboutme-mc which do have also a loadmovie-action: They load an external movie into the level 0 of the aboutme-mc. I want to replace the aboutme-mc with some other mc's.
Everything works fine if i open the aboutme-mc and than load with the included buttonn an external movie into level 0, but the problem is, that if I open my main-mc, click the aboutme-button on my main-movie, click also the button in the aboutme-mc everything gets replaced with the external-movie.

Sorry about my english-problems, I hope that you have understand it though.

Omitofo
Attila

Why Does Loadmovie Slows Down The Loaded Movie
why does loadmovie slows down the loaded movie?
I have a lil problem here. Whenever i load external swf movie into my placeholder1 and placeholder2 at main.swf, the movie that i've loaded seems to slow down quite a bit.
But if those swf file is playing standalone, it runs smoothly.

Anyone knows why this is happening?
Is it because i've put too many soundobjects or is it the animation?
Any tips for optimisation?

your feedbacks will be greatly appreciated

Dragging A Movie Loaded With LoadMovie
Hi
I've got a button in my main timeline that loads a movie over the main one like a pop-up in html. What i'd like to do is to make it draggable, but i don't know how - or where i have to put the code (in the loaded movie or in the main movie but referring to the loaded movie) ...
Could you help ?
thank you :-))

[Help]:Loadmovie Inside A Loaded Movie?
Is it not possible to load a movie inside a loaded movie?

In a movie lets call it "1.swf" there is a empty MC where the movie "2.swf" is loaded.
The movie 2 got a photo-gallery where each pic is loaded in a new empty MC......

Possible yes/no? and what could I have done wrong?

Resizing A Movie Loaded With LoadMovie()
I'm looking to resize a movie that was loaded with loadMovie() into a movie clip. Once it's finished playing I want it to reduce down in size. Any ideas?

loadMovie("test.swf",main_Movie);

main_Movie is the empty movie clip, its a simple rectangle that is 550 x 400 so it fills the whole stage.

Any ideas, or if you need more info please let me know.

Rob

LoadMovie Squishing Loaded Movie
Hi,

Another problem I am having; when I load movie b.swf into movie a.swf, it squishes movie b.swf by 20 pixels vertically.

both movie a.swf and b.swf have a size of 760x480.

so when movie b.swf is loaded there's 20 pixels at the bottom where movie a.swf shows through.

Any ideas why this is happening?

Thanks!

Why Does Loadmovie Slows Down The Loaded Movie?
I have a lil problem here. Whenever i load external swf movie into my placeholder1 and placeholder2 at main.swf, the movie that i've loaded seems to slow down quite a bit.
But if those swf file is playing standalone, it runs smoothly.

Anyone knows why this is happening?
Is it because i've put too many soundobjects or is it the animation?
Any tips for optimisation?

your feedbacks will be greatly appreciated

GotoAndPlay To A Movie Loaded With LoadMovie
I have a movie which loads a swf file onto _root.mClip1.mClip2.mClip3 .... easy enough. but then I have a button on mClip1.mClip4 that I want to tell the loaded movie to go play frame 2.

I'm trying to do all this from the maintimeline so all my targets are absolute.

Can anyone help me out??

LoadMovie: Control Movie Loaded In
Hi,

I have a main movie that loads in a movie into an empty movie clip. the movie loaded in has a motion tween but is set to stop in frame 1

how can i get the root movie to tell the movie loaded in to play the motion tween ?

thanks in advance

Controlling A Movie Loaded With LoadMovie()
Hey, guys! Stumped again. I am trying to load an external .swf file into a clip instance, so that I can move/resize/etc. with AS. First, I make a new movie symbol called "logo" in my main timeline. Then, I use:

logo.loadMovie("myfile.swf");

That doesn't seem to work. I guess my REAL question is: how do you load an external .swf so that you can tweak it with AS?

THANKS!!!!!!!

Shannon

LoadMovie To Be Loaded In Movie Clip
good day members

i have a question

i want to loadmovie using targets

exactly i want as follow
in the main scene i will drag a blank movie clip
this movie clip will loadmovie a movie with defferent width and hight
for examble
the index movie 800*600
the movie to be loaded is 500*300

is that possible
if it is can you please add the code

thanks for help

Resizing A Swf Movie Loaded With LoadMovie
hi,

the following gives some funny behaviour:

loadMovie("li.swf","rect_mc");
rect_mc._width = 50;
rect_mc._height = 50;
    
button_mc.onRelease = function() {
    rect_mc._width = 50;
    rect_mc._height = 50;
}

the first alteration to _width and _height make the movie a particular size, then when the button is pressed, the movie is made even smaller, but it should be the same (always 50pixels x 50pixels)

any idea why it happens? i have a bigger project where this behaviour is causing some issues.

thanks.

How To Unload A Movie Not Loaded In By LoadMovie() ?
I have a movie clip in my file I do not want anymore after 100 loops.
When I go into the reference, it is said I only can unload movies that were loaded with loadMovie() function.
So what should I do?
It is not sufficient to just put the visibilty to 0.
This movie do some actions I really admire to kick.

btw: onClipEvent( enterFrame ) <- I thought this event cannot be provoked when I stop the animation within the movie

Check To See If LoadMovie Movie Is Loaded
I want to check if a movie has been loaded by loadMovie.

ie. I want to know if movie.swf has been loaded in content_mc.


Code:

loadMovie ("movie.swf", "content_mc");




thanks!

Loadmovie - Telling Movie Loaded To Go To A Frame?
Hi!

Here's my dilemma:

I have a button that loads a movie. I want to be able to tell the movie loaded to goto frame 2. I'm sure there is a simple solution. Any help would be appreciated ...thanks!

-drew

LoadMovie - Accessing Variables Of Loaded Movie
I am trying to access variables of a mc loaded via loadMovie.

movie1 loadMovies movie2. Then from movie1 I want to get a variable value stored in movie2.

I'm setup like this:

1. movie2 has the following code on frame 1:

var foo='bar';

2. From movie1 I do the following in frame 1:

mcHolder.loadMovie(movie2);

3. From movie1 I do the following in mcHolder's object actions:

onClipEvent(data) {
trace(foo); <-- blank
}

What am I doing wrong?

TIA

Smapdi

Using LoadMovieNum Or LoadMovie & Positioning The Loaded Movie?
I'm trying to load a .swf into another flash file I am creating and have a couple questions.

Should I be using LoadMovieNum or LoadMovie?

Also, I am able to get the movie to load, but I want to position it so it is at _y=100. Can someone tell me how to do this?

Thank you!

LoadMovie() Make Loaded Movie Invisible
I have a mc called loader which loads "1.swf"

I want 1.swf to be invisible so I made "loader" not visible


PHP Code:



this.onLoad = function() {
    loader.loadMovie("1.swf");
    loader._visible = 0;
}; 




Anyway, 1.swf is visible. What should I do to make it invisible.

Thanks in advance

Controlling Movie Clip Loaded With LoadMovie
Hi everybody,

I have some problems controlling a movie clip loaded with loadMovie. When I do the following:

Code:
var mc;
mc = createEmptyMovieClip("someinstance_mc", 0);
mc.loadMovie("someclip.swf");
mc.stop();
Nothing happens, the loaded movie keeps playing (while I want it to stop).

So basicly, how do I control a movie clip loaded with loadMovie?

- Pan

LoadMovie Loaded Movie Wont Play
Hey.
Im loading in a movie from some external source, which works fine...
If i play the movieclip i load in by itself it works fine and plays its animation.

However the movie does not play once its been loaded...

even when i try to make it play by

movicelipcontainer.gotoAndPlay(1);

any suggestions?

LoadMovie(); ...having The Loaded Movie Not Play The Sound?
is just so strange.

the .swf with sound plays fine alone... but when i load it into an empty movie clip with loadMovie("filename.swf")

...no sound!

here is the .swf with sound...
http://www.camthomas.com/process/con...preService.swf

click the grey square to loadMovie(); in another movie...
http://www.camthomas.com/process/context/loadTest.swf

Loaded Swf Movie Wont Play (loadMovie)
I modified Scotty's Finite Menu...

http://www.kirupa.com/forum/showthre...ht=finite+menu

and now I'm trying to load it into a movieclip using this code:

loadMovie("tweety.swf", _root.contents.container);

It loads but won't play. I even tried loading it directly in the main movie and it still won't play.

It plays fine by itself.

I have another swf loading into a MC that plays fine.

Is it a preloading issue?

Can anyone shed some light? I would be very grateful...

Loaded In Movie Using LoadMovie - Buttons Don't Work
Hi Chaps

I'm loading in a .swf file using loadMovie
all works fine apart from the buttons within this loaded movie aren't working.

Any suggestions as to whats wrong ?

Thanks

Addressing The Main Movie Timeline From A Movie Loaded Via LoadMovie.
I have a clip on the main time line of a host movie that I would like to make visible when the second frame of the swf to be loaded, containing an embedded video movie clip loads.

I have this code on the video clip in the movie to be loaded:

code: onClipEvent (load) {
_root.witch_mc._visible=true;

}

Which I had hoped would have addressed the main timeline of the host movie where the targeted clip was – but no joy.

Any help please?

LoadMovie/loadMovie From Loaded Movie?
I know I know .. messed up heading .. but ..

I have a button that loads a swf into an empty mc (sliderContainerMC)

(release) {
_root.sliderContainerMC.loadMovie("http://www.justinsteiger.com/flash/anims/sliderOpen.swf");
}

That works as advertised. The difficulty comes when I tell the button on that swf to load a new swf into the same MC (sliderClose.swf). Since the swf in the MC (sliderOpen.swf) isn't the same swf (loading into a MC in justinsflashsite.swf) do I need to change the path? Say to include something telling it to load the swf into the parent swf?

Eventually the swf that's called into the empty MC is going to have buttons that are supposed to call up other swf's that load in other empty MC's around the site. HELP?!

Thanks,
Justin
http://www.justinsteiger.com/flash/justinsflashsite.fla (Is the parent swf)

Going To Specific Scene In A Movie, That's Loaded By LoadMovie(...) Won't Work..?
Hi,

I've loaded a movie into another via the 'loadMovie'-Command:

loadMovie ( "test.swf", "aha");


I've got a button in the movie that calls the loaded movie:

on (release) {
aha.gotoAndStop("three", 2);
}

means, I wan to go to scene "three" framenumber 2 in my loaded movie, but it won't work...
Is it impossible to go to a specific scene in a loaded movie..?

(By the way: aha.gotoAndStop(12); works...)


Thanks for fast answers...
TOBI

OnLoad Event For Movie Clip Loaded With LoadMovie
Here is a basic one (I think).

I load a movie to a pre-existing clip like this.

<i>loadMovie("redcircle.swf",_root.myClip);</i>

..And it works very well. No prob there.
but when I call

<i>_root.myClip.gotoAndPlay(2);</i>

then myClip wont play frame 2.
If put the gotoAndPlay action under a button and wait
just a little while before pushing it then
it plays as it should. So I think there is a delay
while it is loading that makes it impossible to play
a frame in myClip right after I call loadMovie.

<b>My question is</b>: How do I tell my movie to wait until
redcircle.swf has been fully loaded into myClip and
then try to call gotoAndPlay?

LoadMovie : Loaded Movie Contains Scrollpane That Doesn't Work :(
I have a photo gallery which is divided into different sections chosen from a menu. The menu consists of several movieclips within a scrollpane. Each movieclip contains a button which will load a different gallery section into an empty movieclip (empty_clip) on the main stage. This works fine, I pasted the code below:

on (release) {
_root.empty_clip.loadMovie("g_030214.swf");
_root.empty_clip._x=207;
_root.empty_clip._y=112;
}


However, the loaded movieclip ("g_030214.swf") also contains a scrollpane with several thumbnails (buttons). Clicking the thumbnails will display larger versions of the images (each image is located in a different frame within the loaded movie). This is where I have a problem as I can't get this to work.

This is the code for one of the buttons:

on (release) {
_parent.gotoAndStop("feb03_11");
}

When I click the button, nothing happens. "feb03_11" is the frame label containing img11 from this section.

I am quite new to Flash and I suppose I'm just mixing up the terms here, but I really don't know how to sort this out. Can anyone please help me out?

Thanks

tori03

LoadMovie And Nested MC's In The Loaded Movie With Timeline Calls To Itself?
i'm sure that title sounds very confusing...

well i'm very confused

so i'm creating a portfolio flash movie. in this movie there is an empty movie clip i use for loading the main sections called content_clip.mc

now at some point content.mc is filled with a portfolio section(portfolio_mc) which has a empty movie clip called holder_big
so bascially WE ARE HERE

_root.content_clip_mc.portfolio_mc.holder_big


now i'm doing a loadMovie call to replace holder_big with an external swf.
holder_big.loadMovie("samples/sample_ten.swf");

this swf (sample_ten.swf)has a bunch of nested movie clips just like the portfolio swf and it's buttons make calls to it's timeline from inside these nested movie clips

ie:
on(press){
_root.nexusClip_mc.sectionSwitch ("sec2");
_root.sectionChoice = "menu";
}


now if i load this movie clip up in a level in portfolio_mc...these calls all seem to work. BUT I need to load it into holder_big because holder_big is in the right position and it is being masked and i'm also scaling the loaded movie down to fit via some script that is dependant on the holder_big MC.

the problem is when i load it up into the holder(holder_big) none of the button calls work.

Do I have to change the dot.path of the button calls in the loaded swf, if so any ideas as to what?
Or is there something else i'm missing.


hope this is explained well enough
thanks for any help

::shrugboi::

LoadMovie() – Then Refer To Loaded Image In New Location / Movie Clip?
Hello,

I am using the loadMovie function to load an external image into a movie clip. Once loaded, I would like to refer to this image in another location, in another movie clip.

Is it possible to loadMovie and then put this image in another location?

Many thanks,
Rob

Preloader In Externally Loaded Swf Stops Working (loaded Into An Empty Movie Clip)
SEE BOTTOM OF THREAD FOR CURRENT PROBLEM

1. I have my navigation buttons in level0

2. When a button is pressed it loads an external .swf into the highest empty level

3. There is an MC in this loaded .swf called loadmovie and inside that another MC called empty.

4. Inside the 'loadmovie' MC, there is a frame action that loads another external .swf file into the 'empty' MC.

The problem I am having is that the preloader that is on the external .swf that is loaded into the 'empty' MC does not work.

It works fine if you test it on its own. But not when loaded into a Movie Clip.

MY SCRIPT:
iBytesTotal = _root.getBytesTotal();
iBytesLoaded = _root.getBytesLoaded();
iBytes = (iBytesLoaded/iBytesTotal)*100;
percentageNumber = Math.round(iBytes)+"%";
setProperty("progressBar", _xscale, iBytes);

Do I have to refrence it differently? Because of where it is situated?

e.g
iBytesTotal = _level32._root.loadmovie.empty.getBytesTotal();

confesed!

[MX04] Loadmovie-- Actionscript Goes Wacky On Loaded Movie If User Reloads
I'm having an issue with loading a .swf into an empty movieclip. It loads when a button is pushed, however the problem occurs if the user hits the load button again. This sends the actionscript on the movie being loaded to act really weird and do some odd things.

simple actionscript for the button:

on (release) {
_root.holder.loadMovie("newimages/swing/swing1.swf");
}

Should I maybe do a loadMovieNum? and resort to levels? Or is there some script that will unload the movie and then reload it when pressed to get a "clean" version?

(I'm unsure if it makes any difference, but the actionscript on the movie being loaded is all on the first frame and uses mx.transitions.)

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

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

Urgent Loaded Movie Controlling Other Loaded Movi
I need this one done today!


I have two holder movie clips in my main .swf. One is selectloader, the other is normloader.

So selectloader.loadMov..... that works

In the select I load a selection with three boxes, the user chooses one.

When the user clicks one of the boxes I do
_root.normloader.loadMovie...
and it doesn't work!

So I created a new frame on the holder .swf for each of the three buttons so all the selectino has to to is go to another frame.
That works, but I also want each of the boxes to direct to a certain frame in normloader

so the problem comes back again

I can't get one loaded movie to control another loaded movie

I'm assuming it has to do with levels, and I need to do more then just _root.normloader.gotoAndPlay(3);

what do I have to do?

How Do I Remove A Loaded Swf?
Hello! Thank you in advance for any insight you can give.
I have a main FLA, within which I load several other SWFs for each section like this:
loadMovieNum("load/Welcome.swf", 2);

This works beautifully. However, I created a Movie Clip for the portfolio section of the site and placed it on the stage in a frame. When the user goes to "portfolio," the loaded SWF file stays on the screen until the whole portfolio Movie Clip is loaded and starts playing. How can I remove any and all loaded movies as soon as the user clicks on "portfolio"?

I tried assigning this code to the instance of the movie clip and got an error:
onClipEvent (unload_"Welcome.swf")

Can anyone help?

Thank you!

Remove An Externally Loaded Swf?
i am trying to remove an external swf from my main movie. it doesnt want to go away! does anyone know how to do this? i tried to use:

on (press) {
_root.contents.unloadMovie();
}

but it didnt work. it just made the move get stuck.

here is what it looks like now:
http://www.braddockdesign.com/kirupa...moveMovie.html

i am attaching the file here:
http://www.braddockdesign.com/kirupa...emoveMovie.zip

thanks for any help!

Getting A Loaded MC To Remove Itself From Stage?
Hi

I'm creating an image gallery. I've got thumbnails at the bottom of the movie, which when clicked load the image into a loader ('imgLoader') above the thumbnails. I've then created a button on top of 'imgLoader' that loads up an external swf (containing a larger version of the image) into a new loader 'bigLoader' in front of the whole movie. This swf then contains a 'close' button that I want to use to remove 'bigLoader' from the stage so that is returns the user to the gallery.

Here's the code for the loaded swf:


ActionScript Code:
close_btn.addEventListener(MouseEvent.CLICK, closeClick);

function closeClick(myevent:Event):void {
    stage.removeChild(bigLoader);
}

But when I export this, I get an error saying:

"1120: Access of undefined property bigLoader.

So, I understand the error - flash cannot find bigLoader because it is in the main movie & not the external swf (where the above code is), so I just wondered if anyone knew of a way for the movie in the loader to remove itself from the stage? If the call to remove it comes from within itself?

Many thanks in advance.

Play A Frame In A Loaded Movie From Another Loaded Swf
this is driving me crazzzzy []
i have the main movie which is 1 frame (containing the menu navagation for the site), under the 1 frame i have an MC (called scoot) that is 8 frames long and each frame has a stop action. I have set the site up to use browser back/forward button <script>
varPass=location.search.substring(1,location.searc h.length); //grab variable from cgiPass
if (parent.main.num == 1)
{parent.main.num = 2;}
else
{parent.main.num = 1;}
parent.main.controlFlash(varPass);//call controlFlash funct in main.html
document.write(varPass); //for testing purposes
</script>

the above script is a sample from the back/forward function/procedure.

Now... I labled the 5th frame of scoot as "map" and under the 5th frame, when it is played, is a button to open another swf, i'll call swf2. In swf2 is a button that i'm trying to action to go back and play map of scoot. But what ever i try nothing seems to work. Swf2 is loaded into level3 of the main movie and the loading action is in the first frame (and only frame) of the main movie. Someone please help me..... ???? Thanks a gekadrazillion in advanced !

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

Keep The 1st Loaded Movie Visible While The 2nd Is Being Loaded To Replace It?
when you have an external movie loaded in an empty mc, how do you keep that movie visible when the preloader is trying to load another external movie to replace that movie?
Thanks!

How To Remove Loaded External Video?
I'm not sure if this goes in the advanced area or not.

I'm building a web site, and I am loading in video using "getMovie" from youtube.

How i do it is I have one swf that loads the url of the movie into a movieclip and resizes it. Then in a the main swf, I load that video swf into a placer mc, and it shows up and plays.

I have a seperate swf "back button" that has the code:

on (release)
{ _root.placer.unload();
_root.placer.loadMovie("specs.swf", 2);
this.unloadMovie();
}

placer is the variable name for the movie clip that the video gets loaded into, and I unload the swf itself when it goes back to the page "specs.swf" which i want to load into the movie's place.

This works, it unloads the video and brings back the normal page, but when i push back, the audio DOESN'T go away. Meaning if the person clicks back in the middle of the video, the audio will keep on going.

How can I totally remove the swf, or deload the page, or at least silence it -.-

[F8] Remove Loaded Image From Movieclip
I have this XML gallery with loads of different categories. I want to make a button that clears the image that is loaded in the movie clip when I click on it. Can some one tell me how I'm gonna do this plz

thanx.


Code:
var x:XML = new XML();
x.ignoreWhite = true;
var urls:Array = new Array();
var captions:Array = new Array();
var wis:Number;

x.onLoad = function() {
urls = new Array();
captions = new Array();
var photos:Array = this.firstChild.childNodes;
for (i=0;i<photos.length;i++) {
urls.push(photos[i].attributes.url);
captions.push(photos[i].attributes.caption);
}
holder.loadMovie(urls[0]);
caption.text = captions[0];
wis = 0;
}

classic_mc.onRelease = function() {
x.load("XML/gallery/invitations/iClassic.xml");
}

handmade_mc.onRelease = function() {
x.load("XML/gallery/invitations/iHandmade.xml");
}
unique_mc.onRelease = function() {
x.load("XML/gallery/invitations/iUnique.xml");
}


/////////////////////////////////////
p = 0;
this.onEnterFrame = function() {

filesize = holder.getBytesTotal();
loaded = holder.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {

preloader.preload_bar._xscale = 100*loaded/filesize;

} else {

preloader._visible = false;
if (holder._alpha<100) {

holder._alpha += 10;

}

}

};

/////////////////////////////////////////////////

//previous button
previous_btn.onRollOver = over;
previous_btn.onRollOut = out;
previous_btn.buttText.buttonText.text = "previous";

function over () {
this.gotoAndPlay(2);
}

function out () {
this.gotoAndPlay(7);
}
previous_btn.onRelease = function() {
if(wis > 0) {
wis--;
holder.loadMovie(urls[wis]);
caption.text = captions[wis];
}
}
//next button
next_btn.onRollOver = over;
next_btn.onRollOut = out;
next_btn.buttText.buttonText.text = "next";

function over () {
this.gotoAndPlay(2);
}

function out () {
this.gotoAndPlay(7);
}

next_btn.onRelease = function() {
if(wis < urls.length-1) {
wis++;
holder.loadMovie(urls[wis]);
caption.text = captions[wis];
}
}

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