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




Unload Mc Loaded From Scene



My mc get loaded by an emty mc with identifier. The mc's have an external link. My problem: when I push a button it load's the required mc but how unload the mc when I push my home button.What actionscript to juse?



FlashKit > Flash Help > Flash ActionScript
Posted on: 10-28-2002, 01:11 PM


View Complete Forum Thread with Replies

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

Unload Scene?
Does anyone know if there's a way to unload a Scene like you might unloadMovie?

LoadMovie Then Unload And Goto Next Scene
Hello,

I have a project that is setup like a slide show. It is all dynamically loaded. Scene01 has a pic and audio explaining the pic. When the audio is done on to Scene02 which is slide 2 and so on for 20 scenes.

Now slide1 (scene01) has changed to an animation, an swf. My Question is how do I get the scene01 anim/swf to tell the parent when done go to the next frame or scene?

I can loadMovie and watch it play. I just don't know how to tell the main timeline that the loaded swf is done and the main movie can go to the next frame or scene.

Thanks in advance!

Unload An External Scene And Play A Movie
i am running and external swf, with out problem but i have a button to unloadit(button 1) and it unload. now i have inside the extrernal a button to close(button 2), the thing its that my button that activate the external swf is an animation, and when i close the external from it own button my other button (button 1) stays th same when it sould play at the same time that i click the button 2

how i do this i know this is possible but how

help me please its urgent

How Do You Delete / Remove / Unload Xml Jpeg Image From Stage Once Scene Changes?
based on attached file: "slideshow"

Scenario:
suppose after view one slideshow (scene1 slideshow) you want to transition to a new scene (scene2 slideshow) with a completely different slideshow. via clicking on a menu button that takes you to that new scene.

so far I am able to get to new scene but the images from the previous scene (scene 1) xml jpeg image remains on the stage in the new scene (scene 2)

is this a image cache problem? The jpeg is still there but the other stage elements do not remain on the stage in the new scene.

How do I remove, delete them, unload or get the xml jpegs from scene 1 out of scene 2
please help

How Do You Delete / Remove / Unload Xml Jpeg Image From Stage When The Scene Changes?
Scenario:
3 scenes
scene 1 "home"
scene 2 slideshow1 "images" (XML images and file)
scene 3 slideshow2 "images1" (XML images and file)

see attached file: "slideshow"

so far I am able to get to new scene but the images from the previous scene xml jpeg images remains on the stage when you go back to the "home" scene or to another scene.

How do I unload (delete/remove/destroy) the XML jpeg data from the stage when you go to a new scene?

is this a image cache problem? How can I correct this?????

please help!!!!!

Unload Loaded Swf
Hi, I'm creating a menu with a thumbnailer component and loading external swfs within a blank movie clip. These swfs have linked .flv files (video). How can I modify the code to automatically unload the last swf loaded when I click the next thumbnail. The problem I'm having is that it WILL load a new swf file(although it ends up blank) but I still hear the old one in the background.

Any help would be great.

By the way, here is the code I'm using:

img_array=["british", "rites", "quebec", "taxcuts", "darntootin", "noneoftheabove", "enemy", "jerkinthebox", "kids", "filmfestival"];
mc_array=["british_video.swf", "rites_video.swf", "quebec_video.swf", "taxcuts_video.swf", "darntootin_video.swf", "noneoftheabove_video.swf", "enemy_video.swf", "jerkinthebox_video.swf", "kids_video.swf", "filmfestival_video.swf"];


tnailer.onThumbRelease=function(mc)
{
picHolder.unloadMovie(mc_array[mc.no]);

picHolder.loadMovie(mc_array[mc.no]);
}

tnailer.loadThumbnails(img_array, "thumbs/")

How Do I Unload A Loaded MP3...
Ok, so I made a flash MP3 player and I finally found an easy way to auto load MP3s from my server... BUT if an mp3 is selected twice, it comes out all herky jerky like it's playing two copies of the same song in intervals.

Can anyone help me with a line of code that'll initialize or unload an MP3?

my code:
soundurl1 = "http://homepage.mac.com/saggerpance/.Music/MeAndYouVsTheWorld.mp3";

SpaceMusic1 = new Sound();

SpaceMusic1.loadSound(soundurl1, true);

Thanks.

How To UNLOAD An AS2 .swf Loaded From An AS3 .swf
Hi!
I'm new with ActionScript and i'm having a problem:

I have a Flex/AS3 application that loads an AS2 swf using an SWFLoader component (or a Loader, i tried both). The AS2 swf starts ok but the problem appears when i trie to unload it. I don't know how to unload the swf. I tried exiting it from inside calling fscommand("quit") or unloadMovie( ) but it doesn't work. What can i do? I just need to unload the As2 swf when i click a button inside.
The AS3 swf is a Lobby from where you can load some games (made in AS2). There is a "Quick" button inside of each game and I need to make the swf to unload itself so the user can continue interacting with the lobby.

Can anyone help me? Do you had this problem in the past?

Thanks a lot in advance!!!

How Do You Unload ALL Loaded Swf's?
Hey guys!

How do i unload all loaded swf's at once? i load/unload my gallery with this code:

container.un/loadMovie("gallery.swf");

Unload A Loaded XML?
Hey guys.

So basically, I'm trying to figure out how to unload (or close) a loaded XML file. I can't find any reference in the help in flash to unloading XML (just in case you thought i was just lazy).

So yeah, I'm loading my XML file using:


Code:
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML();
xmlData.load("skills.xml");
So yes... any help to unloading my skills.xml file would be great.

Unload Anything MCL Has Loaded
Hello, i'm having trouble unloading whatever I have loaded in a MovieClipLoader

I need that when I go to frame label HOME, MCL unloads whatever it has loaded.

Any ideas?


Cheers

How To Unload An AS2 .swf Loaded From An AS3 .swf
Hi!
I'm new with ActionScript and i'm having a problem:

I have a Flex/AS3 application that loads an AS2 swf using an SWFLoader component (or a Loader, i tried both). The AS2 swf starts ok but the problem appears when i trie to close it. I don't know how to unload the swf. I tried exiting it from inside calling fscommand("quit"); but it doesn't work. I tried to get the AVM1Movie content from the AS3 application to call the unload method but it crashes. What can i do? I just need to unload the As2 swf when i click a button

Can anyone help me? Do you had this problem in the past?

Thanks a lot in advance!!!

Unload SWF Loaded Into MC
I have a script which loads a SWF file into a movie clip called holder_mc. There is a button in the loaded SWF called close_btn. When this button is clicked, it should remove the loaded SWF from the holder_mc. I've tried the following:

close_btn.addEventListener(MouseEvent.CLICK, closeMe);
function closeMe(evt:MouseEvent):void {
holder.unload();
}

But the communication is all wrong. I've tried parent.parent. root.parent., etc.

Any suggestions?

How Do You Unload ALL Loaded Swf's?
Hey guys!

How do i unload all loaded swf's at once? i load/unload my gallery with this code:

container.un/loadMovie("gallery.swf");

Unload SWF Loaded Into MC
I have a script which loads a SWF file into a movie clip called holder_mc. There is a button in the loaded SWF called close_btn. When this button is clicked, it should remove the loaded SWF from the holder_mc. I've tried the following:

close_btn.addEventListener(MouseEvent.CLICK, closeMe);
function closeMe(evt:MouseEvent):void {
holder.unload();
}

But the communication is all wrong. I've tried parent.parent. root.parent., etc.

Any suggestions?

How To Unload Last Loaded Movie?
how can i unload last loaded movie?

Unload A ,swf Before It Has Fully Loaded
hi guys

i am having trouble unloading a .swf from an mc before it has loaded.

i have four buttons. each loads a .swf (replacing the previous one) into the same mc on the main timeline.
but these .swfs are quite big, so if the user decides to select a different button and load another .swf i want the previous .swf to unload. i don't whether this is a bug within the flash 6 player; i was pretty sure this didn't happen in version 5.

if the user gets frustrated and keeps pusing buttons, the whole thing slows right down and can even bomb out!

many thanks

Loaded Jpegs.. Need To Unload Them
hi
I've imported external jpegs into my movie... but when I go to the next section via pressing a button the image stays there..

I would be very happy if some one can help me get rid of the image for me..

I need to "get rid" of it when I press the other button which brings in the new section.... I just don't know how...

Can anyone help??? please

Is It Possible To Unload A Loaded Object?
I load on an swf file that has a video it takes from youtube.

Problem is, using the unload function only makes it dissapear, but the audio still plays.

How can i delete the swf itself once it's loaded? I'm thinking if i do that, then the audio will dissappear as well.

Unload A Movieclip After Jpg Is Loaded
hi

here is a part of my code. This code accesses an array with the productnames and automatically loads the jpg (thumbs) and places them in a column. each empty clip placed on the stage, contains a preloader, a simple animated movieclip. I'd like to make dissappear that preloader (with instance name preloader) from the moment the jpg appears in the scene. Can somebody help me with it.

thanx in advance




Code:
for (var i = 0; i < totalProducts; i++) {
content.thumbs.attachMovie("thumbnail", "thumb"+i, 0+i);
content.thumbs["thumb"+i]._y = (i*thumbHeight) + (i*spaceThumbsY);
content.thumbs["thumb"+i].productPreview.loadMovie("pics/kachels_"+kachelLijst[i]+"_s.jpg");
content.thumbs["thumb"+i].productName.text = kachelLijst[i];
content.thumbs["thumb"+i].ID = i

Telling A Loaded .swf To Unload Itself
I load an .swf into the main movie using:

ActionScript Code:
loadMovieNum("Blah.swf", 14);
I have a button inside that movie that when clicked I want it to unload itself.

I tried:

ActionScript Code:
on (release) {
unloadMovie("level14");
}
//and
on (release) {
unloadMovieNum(14)
}
I have no idea why it doesn't work

Wise To UnLoad Each Loaded MC When Done?
I see in the actionscript reference that it 'may decrease memory required by flash player' to unload each loaded MC when it's done, ie when another is loaded over top.

Is this true? And if this is done, does this mean each MC must re-preload before playing, or does the browser cache it (Assuming loaded movies are preloaded)?

Thanks.

Unload All Loaded Movies?
i apologize if this is a frequently answered question, but i have looked all over trying to find an answer, with no luck.

a design i am working on relies on loading movies into the main stage (untitled2.swf). this main movie has links to all of the other movies, which also correspond to a frame.

for example, "button5" links to frame 62 in the main movie (untitled2.swf). frame 62 automatically loads movie (background5.swf) onto the stage, then "background5.swf" automatically loads a movie (portfolio1.swf) onto it.

"background5.swf" then acts as a consistant background for all of the portfolio movies. it contains all of the buttons which load and unload the subsequent portfolios.

ok, so my question is: is there a way to unload all of these movie from the main movie with a single button?

currently, i have a close button that opens with frame 62 of the main movie (untitled2.swf), but it only unloads "background5.swf," leaving "portfolio#.swf" on the stage.

it's getting close to driving me mad- any help would be greatly appreciated.

Wise To UnLoad Each Loaded MC When Done?
I see in the actionscript reference that it 'may decrease memory required by flash player' to unload each loaded MC when it's done, ie when another is loaded over top.

Is this true? And if this is done, does this mean each MC must re-preload before playing, or does the browser cache it (Assuming loaded movies are preloaded)?

Thanks.

Cant Unload Externally Loaded Swfs Please Help
Hi guys...I have searched the board and read everything to do with loading and unloading external swfs yet I am still having problems unloading some swf's.

My main stage starts by loading an intro.swf and a menu.swf into level1 and level100 respectivly. The menu.swf then has a slideup menu system with buttons that load other external swf's which all work fine. However when I try to unload some of the swf's they dont work.

If I click on a button within the menu I then load a movie into level1 replacing the intro.swf and another set of buttons appears next to the main menu which are loaded into level3.

If I then click the home button to return to the start it should unload the content on level1 and load the intro.swf again whilst unloading the swf on level3 to appear like it is back to the start...the main content unloads fine but the buttons in level3 do not.

on (press) {
unloadMovie("_level3.bottommenu1.swf");
unloadMovie("_level1.op01.swf");
unloadMovie("_level1.patientsleftbox.swf");
unloadMovie("_level4.video1.swf");
loadMovieNum("intro.swf", 1);
}

this is the code to return to the start basically the home button...to see this working please goto http://www.gallstone-surgery.com/site/index.html you can also download the fla's

Close/unload Button For A Loaded Swf
I have a video window (component) that I made to put ontop of an FLV on its own Timeline. I save this entire compilation as an .swf. Then another MAIN .swf loads this when a button is pressed. Pretty simple. The movie (swf) pops up with the controls component to play/rewind etc. the FLV video. I'm trying to put a close window button on the component video controler to unload/close the entire video and controler. I can only get it to close the component/controler but the video clip (on a lower movie clip in this .swf) stays there.
Now my main SWF that loaded the movie clip w/ a controler has just a first frame from the video still there and no controler, meaning no way to play or better yet get rid of it.
So after that long, hopefully understandable explanation. How do you script a button to unload the whole .sfw its in.


Marc

How Unload A Loaded Swf From The Root Menu
hi there.
my question:
how unload a loaded swf from per example _level23 from the _root menu
with "onRelease()".

BUT:
its an in- and outsliding window.

so with "on release"in the main menu(root) the level
23 swf have to go first from frame 20 to 21 to play the sliding out animation and then unload itself, to load the next window.

i´m probably not a genius in AS,
so please anybody can help me with an example script or something.

Can't Remove, Delete, Unload A Loaded .swf ?
Hi all,

i am trying to hide an external loaded carousel on button click with the following AS

ActionScript Code:
function showCarousel(showThis) {
    var holder:MovieClip = this.createEmptyMovieClip("holder", this.getNextHighestDepth());
    holder._x = 10;
    holder._y = 50;
    // define listener
    var listener:Object = new Object();
    // define onLoadComplete event (this event occurs after the file is loaded)
    listener.onLoadComplete = function(theTarget:MovieClip):Void  {
        TweenLite.from(holder, 2, {_alpha:0});
    };
    // define loader variable
    var loader:MovieClipLoader = new MovieClipLoader();
    // add listener to it
    loader.addListener(listener);
    // and call loadClip method
    loader.loadClip("Carousel.swf", holder);
    if (showThis){
        holder._visible = true;  
    } else {
        //remove Carousel
        trace("remove Carousel");
        holder._visible = false;//tried
        holder.removeMovieClip();//tried
        delete _root.holder;/tried
    }
}

I can see the trace ""remove Carousel" but the Carousel.swf is still shown????

When i look in debug mode i can see the _root.holder, but it doesn't hide???

What can i do, what can cause this??

regards,

Can't Remove, Delete, Unload A Loaded .swf ?
Hi all,

i am trying to hide an external loaded carousel on button click with the following AS

ActionScript Code:
function showCarousel(showThis) {    var holder:MovieClip = this.createEmptyMovieClip("holder", this.getNextHighestDepth());    holder._x = 10;    holder._y = 50;    // define listener    var listener:Object = new Object();    // define onLoadComplete event (this event occurs after the file is loaded)    listener.onLoadComplete = function(theTarget:MovieClip):Void  {        TweenLite.from(holder, 2, {_alpha:0});    };    // define loader variable    var loader:MovieClipLoader = new MovieClipLoader();    // add listener to it    loader.addListener(listener);    // and call loadClip method    loader.loadClip("Carousel.swf", holder);    if (showThis){        holder._visible = true;      } else {        //remove Carousel        trace("remove Carousel");        holder._visible = false;//tried        holder.removeMovieClip();//tried        delete _root.holder;/tried    }}


I can see the trace ""remove Carousel" but the Carousel.swf is still shown????

When i look in debug mode i can see the _root.holder, but it doesn't hide???

What can i do, what can cause this??

regards,

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

Unload All Loaded Movies On 1 Click
hi folks,

is there a way to unload all movies i loaded into a project with one click?

what I want to do is to create a website were every "site" is an extra swf-file which gets loaded into the main movie.
so when somebody clicks a button in the menu the new "site" is loaded into the film. therefore i have to unload every movie the user could have been viewing before (i.e. every point in the menu exept the one he just clicked). do i have to name every movie in the actionscript (even those which are not even currently loaded) to unload all or is there a way to do that with one command.

i'd like to have something like

on (release) {
unloadMovie (ALL);
loadMovieNum ("alexander.swf",1);
}


instead of


on (release) {
    _level1.unloadMovie("tom");
    _level1.unloadMovie("flo");
    loadMovieNum("alexander.swf", 1);
}


thanks

firegambler

How To Use A Loaded Swf To Load/unload Another Container?
I'm having difficulty addressing loaded swfs and I'm going nuts trying to solve this. Please help!

How can I get a swf loaded into a container clip (in a main movie) to load/unload another container clip (also in the same movie)?

Here's the container clip in the main movie:

var story:MovieClip = this.createEmptyMovieClip("storyHolder", 3);
story._x = 675 ;
story._y = 325;
var storyLoader:MovieClipLoader = new MovieClipLoader();
storyLoader.loadClip("aboutStory.swf", "storyHolder");

and here's the button script (from a swf loaded into a container in the same main movie) I'd like to use to load/unload the above container:

this.crewBtn.onRelease = function() {
_root.storyLoader.loadClip("aboutCrew.swf", "storyHolder");


The above movieclip traces fine but it won't load the "aboutCrew.swf" into "storyHolder".

thanks for any insight!

Can't Unload Remotely Loaded Youtube Video
I am able to load videos and play them in the flash movie, but when I try to unload the movie, the sound continues to play even thought the clip disappears from the stage.'

I have tried creating an empty clip and then creating another empty clip in the first one, but I just cannot seem to delete the youtube movie completely.

frame 1

stop();
stop_mc._visible=false;


if(videoloaded!=true){
videoloaded = true;
this.createClassObject(mx.containers.ScrollPane, "categoryscrollpane", 10);
categoryscrollpane.setSize(550, 500);
categoryscrollpane.border_mc._height=0;
categoryscrollpane._y = 20;
categoryscrollpane._x = 15;
categoryscrollpane.hPageScrollSize = 10;

var spListener:Object = new Object();
spListener.scroll = function(evt_obj:Object) {
}
categoryscrollpane.addEventListener("scroll", spListener);

categoryscrollpane.contentPath = "category_thumb_mc";
}else{
categoryscrollpane._visible = true;
}


frame 2:
stop();
stop_mc.swapDepths(21);
//hide feed thumbs to make room for the video player
categoryscrollpane._visible= false;
//allow access to youtube for flash movie
System.security.allowDomain("http://www.youtube.com");
System.security.loadPolicyFile("http://www.youtube.com/crossdomain.xml");
createEmptyMovieClip("v_mc",20);
v_mc._xscale = v_mc._yscale = 50;
v_mc._x = 180;
v_mc._y = 150;
v_mc.loadMovie("http://www.youtube.com/v/"+_root.Vid+"&autoplay=1",20);
//v_mc.loadMovie(_root.Vurl);
stop_mc.stop_btn.onPress = function() {
v_mc.unloadMovie();
}
stop_mc.stop_btn.onRelease = function() {
v_mc.removeMovieClip();
play();
}

anyone have any ideas about how to completely clear out the dynamically loaded clip???

you can see what happens in the live version:

click the videos link: http://www.sajencorona.com/sajen_corona3.swf

RemoveChild Or Unload Is Not Enough For Deleting A Loaded Movie?
Hi,

Im loading an external swf into a container movieclip with a loader (ldr).
When I want to close the loaded movieclip I use containerMovieClip.removeChild(ldr) and ldr.unload().

This seems to work fine because the loaded movie disapears, BUT it seems it is still playing in the background because I can still hear the sounds in it, and the actionscript I have in the end of it fires even though the movie is removed.

Is there any solution to this?

Best regards,

Gibbah

Dynamically Loaded Jpgs Won't Unload In New Frames
Hello,
This is my first posting and I'm fairly new at Flash. I've searched elsewhere for an answer to this question, but nothing's helped. Perhaps someone will have an answer here?

I am creating dynamically loaded thumbnails in Frame 10. These load perfectly. But when I click on a button to go to a Frame 5 the thumbnails still appear. I've tried unloadMovie but it doesn't work. What am I doing wrong?

Below is the ActionScript for the thumbnails.

mydata=new XML;
mydata.ignoreWhite=true;
mydata.load("datahome.xml");
mydata.onLoad=dosomething;

function dosomething(success) {
if (success) {

showinfo(0);

originalx=180;
originaly=90;
currentx=originalx;
currenty=originaly;

// Create thumbnails

for (i=0; i<5; i++) {
_root.attachMovie("thumbnailmovie", "thumbnail1" +i , 10000+i);
_root["thumbnail1" +i].thumbnailname=mydata.firstChild.childNodes[0].childNodes[5].childNodes[i].firstChild.nodeValue;
_root["thumbnail1" +i].itemnumber=i;
_root["thumbnail1" +i]._x=currentx;
_root["thumbnail1" +i]._y=currenty;
currenty+=75;
}
}
}

To Target A Scene In A Loaded Swf
hey guys..i read all the messages above and feel that there's a lot of u who are knowledgeable on the subject, can neone help me out?

i got some solutions about loading a swf into an MC and then going to a frame label.
it works fine

but how do i go to a frame label on a scene other than the first?
what i want to do is to let the user continue from where he left off by tracking his clicks and storing in database. and then when he comes back he gets a link to his last viewed frame. i plan to assign frame labels and then call them from variables by making the user click on a button with the foll action

- on frame 1 of the parent movie i have:
##
lastmodule = "module2.swf";
lastframe = "Overview1";
##
- on the button the user clicks i have:
##
on (release) {
loadMovie (aa, "_root.callerMC");
gotoAndPlay (2);
}
##
- and on frame 2 i have (for the waiting peroid as some of u have rightly pointed out):
##
_root.callerMC.gotoAndStop(_root.bb);
stop ();
##

Now, if framelabel "Overview1" is in scene 1, it works, but not if it's in a subsequent scene.

flash requires u to enter scene name as a quoted string and not a variable, but the frame label can be a variable as i have done above.

i need to know if we can, in the above setup assign the scene name as a variable as well so that i will keep it in my database and send it to flash along with the last swfname and last frame label.

i'll be really grateful guys if u can provide a soln to this, cuz otherwise i will have to make some huge modules in one single scene!

thanks,
Sammy

Detecting Whether A Scene Has Loaded
hi,

i have a movieclip of menu items that is placed on the main timeline. my movie is split into 10 scenes (i menu item = 1 scene). i would like the menu items to only appear once their relevant scene has loaded.

my intial preloader only loads a fraction of the entire movie. i would like the user to be able to initally see the 'home' scene and as the movie loads in the background, menu items would appear.
is there an easy way to detect a particular scene has loaded.

i have just started using MX and i remember in version 4 that you could detect if a particular frame has loaded. obviously the format for this may now have changed somewhat??

How Do I Get A New Scene Loaded With A Mouseclick
I have my movie stopping on frame 246, on a mouse click i want the scene to finish and then go to a new scene.

Any help will be appreciated

Thanks

Already Loaded? Skip This Scene
normally, when i'm makin a swf, i create (at least) two scenes:

(1) the preload animation scene
(2) the main content scene

the preloader scene has a lil animation to make the wait more fun, and then once y'hit 100%, you travel on to the next, content-filled scene.

however, when you go back and wanna watch the movie again, there's a lil problem. the swf is already in the cache, so it doesn't have to load again, however...

the preload scene "blinks" before the viewer gets to the content scene. like, it shows the very beginning of the preload animation, then instantly shows the very end, then moves on to the content.

its not a huge problem, but something that i find pretty annoying.

is there any simple line of code i could add to, say, the first frame of the preload scene that says, essentially, "if the swf is already in your cache, just skip this loading scene, and immediately go to scene 2"

?

Want To Activate Scene Once All Frames Are Loaded. How?
K, I'm trying to make this website that's done entirely in Flash. It originally had two scenes. The main scene, and a preloader. I used the getBytesLoaded (or something like that) for the preloader and it worked fine.

Then, I had this great idea. The main scene was a little big because it had this underwater virtual tour. If I made the tour into a THIRD scene, I could make the preloader only wait for non-tour stuff to load. It would dramatically reduce the amount of time a user would have to wait to access the main scene. And while he/she browses through the information on the main scene, the tour would load in the background.

Ok, so here's what I tried to do in Actionscript (don't laugh, if you were as dumb as me, you'd try to do this too).

My main scene is called, MainScene. So in my preloader, I tried to do this:

if (MainScene._framesloaded == MainScene._totalframes) {
gotoAndPlay("MainScene",1);
}

This doesn't work at all. So could somebody tell me what I'm doing wrong, or perhaps how to solve this problem?

To sum it up, the problem is that I have three scenes, I want to use the first one to be displayed while the second one loads, and then the second one to be displayed while the third one loads.

Thanks in advance.

Chris Wilmer

Detect Frames Loaded In A Different Scene
Hi, is it possible to use _framesloaded, refferencing a different scene?

M@)

Target Main Scene From Loaded In .swf
hello,
I have loaded a .swf into my mainframe, using Loadmovienum(target)
i know have a button in this new .swf, and i want it to tell the Main scene to go and stop frame 4.
Can i do this, if so how?
Thnx

Goto A Scene In A Loaded Movie?
Hi there

I am looking for a way to go to a specified scene (fx. scene 2, frame1) in a loaded movie - loaded into level 0 in the main movie?!

Can anyone help me????

//Jacob

Showing Percent Loaded Of A Particular Scene
PLease can someone tell me what I need to change in this preloader script so that instead of showing the percent of the total moviw loaded it shows the percent of Scene 1 (say) loaded.
textPre is the text box.
Here's the script:


onClipEvent (load) {
textPre = " ";
}
onClipEvent (enterFrame) {
textPre = _root.getBytesLoaded() / _root.getBytesTotal() * 100;
if (_root.getBytesTotal() == _root.getBytesLoaded() ) {
textPre = "done";
}
}


Do I need to change the _root to the scene1 somehow?
Thanks
Jill

Load .swf Into .swf That Has Been Loaded To Main Scene
How do i load a .swf into a .swf that i have loaded into my main scene?

Example, i load 1.swf into home.swf, then in 1.swf there is a button which i want, when clicked to load 2.swf into 1.swf
how is this done?
thanks

Targeting A Scene From An Swf Loaded Into A Level
How do I target a main movies time line address from within another movie that will be loaded into a level in side that main movies time line. I know how to target the loaded movie on a _level within the main movie, but I am not sure how to target it going back out to communicate with the movie it is loaded into so that it will direct to the path of play were I want it to. I know I don't want to use _root., so what do I use?

How To Place The Loaded MC In The Center Of My Scene ?
hi all

i used the load movie to load a MC inside my scene so


how can i from the setproperty or any thing to place my loaded MC in the center of my scene

asumming that the scene with 790 width and 550 height

i used this code


Code:
this.createEmptyMovieClip("logo_mc", 999);
loadMovie("gallery.swf", logo_mc);
setProperty("logo_mc", _x, 10);
setProperty("logo_mc", _y, 40);
it is work fine but when i maximize the swf it placed on the left upper corner

so i want it related to my scene size at the center of it

[F8] Scene Preloaders With Amount Loaded..
Hi.

I'm currently working on a web site put together completely in flash. Basically what I want to do is make it so the page compresses itself down into a loading bar when I want to transfer to another page, and then de-compresses into the new page, with the new content. If you want a visual of what I'm trying to do, I want something similar to what they have on this site:

http://www.falcon-nw.com/

On that site, the effect I want does not occur on the main page, rather when you click a link to go to the about/desktops/notebook pages...etc.

In simple terms, I want the site to shrink into a loading bar in the middle, and then grow out again with the new content. In essence, a scene preloader

I assume that an explanation of how to do this would be really complicated, so I'd appreciate it if you could post a link to an existing tutorial for this, or if you would make one and then link to it on this board.

Best,
-Nick.

Taking A Loaded Movie To Another Scene
Hi there...

got this problem with loadmovie in scenes.
I've made a flashfile on one frame, where all the actionscript is.
Our designer has made an intro and an outro scene.

the problem is that the current background of the .swf is chosen in my actionscripts, by loading an swf and going to a specified marker in it.

How can I tell flash to start the outro animation with that specific marker still loaded? What I want to do in the outro is to fade in the standard image above the current background, but I don't know how to use that loaded movie on that right frame.

robin

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