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




How To Load Multipul Jpeg And Movie Clips?



Hi all, i'm new to ActionScript.org, have been learning actionscript for the last week and just trying to build my first site.

i'm wondering is there a way when loading multiple jpeg's or movieclips into my site to load them all at once without having to call them all individually?

i was thinking of using a for statement and an array of all the names so it would just go through them all by its self, but is there a better way?

also if i am loading jpeg's in is there a way of converting them to movieClips once they are loaded?

Thanks,
BrownWarrior



ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 07-07-2006, 12:39 PM


View Complete Forum Thread with Replies

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

Movie Clips And Jpeg
Hi,

I'm problem is this:
I create a movie clip, with two layer, one of them is a jepg that I already turn it a imagem object and animated it from a point to b point (simple move) and the another layer is a text. When I put this movie clip into the principal movie. I only can see the text. I cant see the moving object. I'm using Flash mx. Does any one know What is wrong?


Tks,
William

Load Random Jpeg In Movie
Hi!
I don't know how to randomly load a jpg.
I have 60 jpeg in a file, and I'd like to load them randomly on my 1st page.
PLEASE SOME HELP

How Do I Load/stream Individual Movie Clips Within Other Movie Clips
I am using flash 5

I have a movie with a huge movie clip in it and that movie clip has lots of movie clips inside that. how do I load each one individually so when the viewer clicks on abutton it starts to laod the related movie clip.

Please help.. I'm working on borrowed time and borrowed money

Movie Clips Acting As Buttons Can't Load Other Movie Clips
Frame 1 has three movie clips on it, instance names are A, B, C. I have the following actionscript on frame 1 as well:

stop();
import flash.filters.GlowFilter;

ar = [A, B, C];

for(var z=0; z<ar.length; z++) {
ar[z].onRollOver = rollover;
ar[z].onRollOut = rollout;
}

function rollover() {
this.swapDepths(0);
this.filters = [new GlowFilter(0x333333, .20, 7, 7)];
}

function rollout() {
this.filters = null;
}

This code creates a glow, obviously, on whatever movie clip I rollover. What I want to do as well is this:

I want to click on mc "A" and have it launch a different movie clip (let's say "X") on top of everything else (so that A, B and C are still visible in the background). "X" is in a sub-folder of "A" if that makes any sense or is relevant. Same kind of action for mc's B and C. B should launch mc "Y" and C should launch mc "Z".

What is the actionscript for this? Any questions please let me know. Please respond, I need this info as soon as possible. Much appreciated!!

Text

Jpeg & Text Expand With Load Movie
Hi folks!

I'm new to this great forum and I've just finished experimenting with Kirupa's tutorial on loading movies:
http://www.kirupa.com/developer/mx/full_site2.htm

Very cool and straightforward tut, but I have a problem applying it to my website.

Please view what I am attempting to accomplish first so my question makes sense (the site is in its EARLY stages!):
http://education.concordia.ca/~CECILE.EGOU/

Please click on the link "Employment"

Basically, the movie loads into the clip, but the jpeg and text (which are grouped) expand;
How can I keep them to the original size?
How can I load movies (.swf) of different lengths and have a scroll bar for the whole page, not for the clip box (where the movie is loaded)?

I also read the message from Exedus on Hyperlinks in Flash, but I want to build a 100% Flash site.

Thanks in advance for your help.

Sissou

Load A Jpeg Into A Specific Frame Of A Movie
Hi. Basically, I'm wanting to load a series of jpegs into respective frames of a movie. I can't seem to find the syntax for doing that.

Here's the idea:

myMovie.loadMovie(image.jpg);

But how can I tell it to put the jpg into, say, frame 5 of myMovie?

Thanks!

[F8] Help Making Movie Clips Load Other Movie Clips...
well i have miraculously figured out how to make my buttons grow and shrink simultaneously reacting to mouse overs... and even stay large when they are clicked on... however the only way i found to do this was by making them movie clips and not buttons...

now luckily the task at hand i'm assuming will be quite a bit easier than what i've already accomplished...

i am looking to now make those movie clip instances (when clicked on)... load photos into an empty movie clip that will be a separate swf... in the same dreamweaver file...

i have made each photo into a small movie clip that simply tweens the photo from alpha 0 to alpha 100 and back to alpha 0...

so i'm hoping for some code that will call up the first part of the movie clip (the fade up) when the corresponding movie clip is clicked on... and hold it... until another button is clicked... making the current movie clip play to end (fade out)... and then load the new movie (up to the middle... alpha 100) into the empty movie clip...

Multipul Flv
Hi,

I?m a novice flash user so you?ll have to excuse me if this doesn?t make much sense!

I have a number of encoded flv files created in final cut pro, what I?d like to do is give the user the option of selecting which video?s they want to see (perhaps with radio buttons or something similar) and for the selected videos then play in order, one after the other in the main stage.

I've had a look at the XML video playlist tutorial, which is great, but i'm wondering if i can adapt it so that a user can click tick boxes and watch a selection of videos, rather than them selecting them one at a time.

Has anyone any suggestions?!

cheers

mike

[CS3] Problem Setting Css Style To Multipul Textfields
Hi guys i got a bit of a problem setting css style to sever textfields.

Only just starting messing with css style sheets in flash so please forgive me if the answer is obvious.
i have _global.csStyle; set in the first frame of the movie with the code below on the second frame.
code:
nwsData_xml = new XML();
var nwsCount:Number;
var XMLRoot:XML;
nwsData_xml.ignoreWhite = true;
nwsData_xml.load("news.xml");
nwsData_xml.onLoad = function(success) {
if (success) {
XMLRoot = nwsData_xml.firstChild;
nwsCount = Number(XMLRoot.childNodes.length);
for (var i:Number = 0; i<nwsCount; i++) {
var mc = eval("mc"+i);
var news = XMLRoot.childNodes[i].childNodes[0].firstChild.nodeValue+XMLRoot.childNodes[i].childNodes[1].firstChild.nodeValue+XMLRoot.childNodes[i].childNodes[2].firstChild.nodeValue;
mc.txNews.styleSheet = _global.csStyle;
mc.txNews.htmlText = news;
}
} else {
trace("Load XML failed");
}
};

Load Movie Clips Help
hi
i need some help on loading/preloading movie clips all in one swf file.

what i want to learn is how to speed up my movie for slow connections without having a huge preload in the beginning.

in the beginning id like to preload the intro and the main page"s background and layout.
after that is loaded and shown id like to have a small preloader in the main swf that says "loading interface" or something... preloading the navigation m/c.

when navigation is all up and loaded....when the destination is chosen (profile, links or whatever) id like to have a similar preloader load the next mc containg the content. instead of preloading it all initially in the begining.

etc. etc. etc.

i see many many site use this technique ( 2advanced.com , dennisinter.com and many others.)

any help would be appreciated
any points to a good tutorials would be great!


thank you.
[Edited by heks1 on 01-08-2002 at 09:01 PM]

Load Movie Clips
Hey Board! Im in need of some of your eternal wisdom once again.
I have 4 movie clips in my library (each 65 frames long) that I need to play in successive order (one after the other) throughout my movie on my main timeline. How would I actionscript them to load/play (where i need them to) in succession and then keep repeating that succession throughout my entire timeline?
Trying to get the hang of actionscripting and would appreciate any shared help or knowledge!
Sincerely,
~geoff

Need To Load Movie Clips One After Another
How do you load external movieclips into a movie clip that will display the external movieclips one after another.

I have the following entered

Main Timeline

Frame 1
loadMovie("theintro.swf", 0);
gotoAndPlay(2);
stop();

Frame 2
loadMovie("menu.swf", 0);
stop();


The movie automatically goes to frame 2 But I want it to play theintro.swf and the go to menu.swf

I know how to do it with a button but do want a button event.

Should I us on clip event?

Load Movie Clips
this one I know should be easy but screwing with my head. I'm loading movie clips into a main 'player' movie clip and when the loaded movie clip refers to _root the action script ain't working. I guess it looking for variables in the player ?? Is there anyway I can get round this ?

Load Movie Clips
Hi all,
For a project I'm working on, I need to load an external movie clip into the main flash timeline, which I've done, the only thing is that it appears at the upper left corner of my screen and I want it to appear near the center of the screen. Do you know how to do this? Thanks in advance. Let me know if you need the fla to help.

Movie Clips Don't Load...
This is really weird... I'm using this actionscript to load all of my movies:

loadMovieNum("my_video2.swf", 1);

I have four movies all together (the main file, plus the 3 loaded ones) and when I put the actionscript on koolmoves, it works fine... the problem is that when I put it on the website (www.filepimp.com) it doesn't load the last 3 movie clips. They're all saved in the same file (my documents) ... so does anyone know what could be wrong? I'm supposed to have the movie up by today, so please HELP! thanks in advance

[F8] Load Movie Clips
Is it possible to load multiple swf files into one empty movie clip on different depths of the empty mc then be able to switch between those depths.
I want to switch between clips with the click of a button.
If so, can someone help me with the code?

Thanks,
~SC

Load Movie Clips Through AS
Hi everyone, I am having trouble loading a movie clip through actionscript. I have 3 movie clips. One is "Circle_mc, Second "Square_mc adn the Third Rect_mc. I want to load each of the three through actionscript but be at different positions? I appreciate your help. I have searched but couldn't find a thread like I needed.

Example:

onLoad()
Circle_mc.play()
this.Circle_mc_x=50;
this.Circle_mc_y=65;
//Load the Square Movice Clip
Square_mc.play()
this.Square_mc_x=80;
this.Square_mc_y=90;
//Load the Rect Movice Clip
Rect_mc.play()
this.Rect_mc_x=20;
this.Rect_mc_y=30;
Thanks

Is It Possible To Load Two Movie Clips At Once?
I am trying to load a opening box animation and simultaniously text on top of the animation, is that possible?

How Do I Load Movie Clips
Hi all,
I have five buttons and each button click I want to load a different movie clip for each button press. Currently I have the five different movie clips on five different layers with labels attached, so in my on press event for each button i do a goto to the label. This is not working to well. Is their a better way to do this. I want to hit the ground using as much action script as possible.

Thanks

How Do U Load Swf Movie Clips
hi

i need some help how can i load outside swf movie clips onto 1 swf movie.

i know i need to use action script for this ive had a go but cant get anywhere

thanks guys

Is It Possible To Load Two Movie Clips At Once?
I am trying to load a opening box animation and simultaniously text on top of the animation, is that possible?

How Do I Load Movie Clips
Hi all,
I have five buttons and each button click I want to load a different movie clip for each button press. Currently I have the five different movie clips on five different layers with labels attached, so in my on press event for each button i do a goto to the label. This is not working to well. Is their a better way to do this. I want to hit the ground using as much action script as possible.

Thanks

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

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

any help?

bhee

Load & Unload Movie Clips
hi all,

anyone knows how to load and unload a movie clip from an empty movie clip? what i would like to achieve is loading a movie clip onto an empty movie clip on the main movie; then, when click on a button, unload the previous movie clip and load a new one in its place.

i'm very new to actionscript so, please give me the necessary line of codes in details.

thank you so much for your help!

michael

Load Movie Clips Seperately
i searched the forums for ages and couldn't find the answer to my problem..seems easy enough, but here goes... i want my movie clips to stay unloaded until they are needed...so my main timelime will be the background and the buttons...the movie will have only loaded to frame one...so when when someone clicks on one of the buttons, it will go to ,say, frame 5 where i have inserted a movie clip..then the movie clip pops up, loads (with loadbar or animation) and so on..any help is appreciated..
cheers

Random Load Movie Clips
Hi there,

Could someone point me in the right direction..

I have created my site perfectly and each clip loads from Movie Clips etc.. What I have is on the homepage different areas such as news, clients, features.. What i want to do now is in each of these areas load a random movie clip to make the site look like it is more dynamic.. Has anyone got a script for this that i can pre select say 3 - 5 swf files to load randomly or in order each time the page is refreshed. I would want to do this for each MC so the site looks dynamic.

Thanks.....

Load Dynamic Movie Clips
I'm new to actionscript. Hope I can present the problem clearly. I have set up a variable after clicking a button:


Code:
on (release) {
var targeticon = "picA";
}
so after clicking this button, the movieclip "MC" and image "PIC" will be changed to the value of "targeticon", i.e. "picA" in this case.

I don't want to use createEmptyMovieClip to create "MC" & "PIC". Anyother way doing so. Isn't there's an easier way to do that like the dynamic text field?

How Do You Load Movie Clips Randomly?
I've got these mc of characters walking around. I want to add them to my stage randomly with code so these 12 different movie clips seem to come and go as they please. I understand I may need a timer so I don't get to may loaded at one time? This is a bear. Any help or tutorials I can use? Thanks, sincerely frustrated, Keith.

Load Movie Clips On Swf Start...
Hello. I'm still using Flash MX, and I'm trying to do something very simple but I can't seem to locate the function.

I want to have an swf that loads up only movie clips when it starts. I'll have about 6 objects on different levels. But I want the entire screen to be movie clips only. What's the name of the event handler/function that kicks off when an swf starts?

Thanks!

[F8] Unload And Load Movie Clips
hello,
I have navigation bar who contains an intro, when the intro is finished I want it intro movie to "swap" for the working nav bar. (am I clear???)
So the user cannot see their is a swap.

Should I have something in my AS like play movie, unload and load??

Thank you

[CS3] Load Random Movie Clips
Hello,

I have created a flash site/game. The stage consists of a static picture ive made that lasts for one key frame. there are several movie clips that i would like to start randomly playing within the stage called pigeon, giraffe, ibis, zebra and plane. They are all animated movie clips.

Question is how do i get them to start playing randomly at any moment? I cant seem to find the right answer. FYI im using Actionscript 2.0

thanks

Load Movie Clips With Actions
Hi All,

I am totally new to action scripts, so please bear with me.

I have 2 movie clips, which are made out of image sequences.

I want to play the first movie clip only at the start and play the 2nd movie clip in loop.

Any help is appreciated.
Thanks in advance.

-kart

Random Load Movie Clips
Hello all. I'm new to action script and I'll appreciate it if anybody could give me some help.

I'm currently creating a kindergarten game where the user is supposed to drag and drop a correct answer (from a list of options given) to a specific place to check the answer.

Eg: Given a,e,i,o,u and in the bottom right corner there is a "A". The user is supposed to drag the "a" to the "A" which produces the right answer. Anything else is wrong.

So my question now is, how do i generate a random given options(a,e,i,o,u)? Naturally there must be a correct answer among the given options. I've already made movieclips for a-z as well as A-Z.

My second question is:
Is there any way to loadMovie to a specific coordinate, even after I've managed to randomise the questions?

Please help! I really appreciate any given help!
Thanks!

Load Random Movie Clips
Hi,
I am trying to make a flash site where the intro scene would randomly load 1 of 4 movie clips from my Library. I've never done a random script before. Any help is appreciated.

Thanks!

How To Load Multiple Movie Clips
Hi,

Can anyone tell me how to load multiple movie clips on the stage?

My ActionScript 3 are as below:

I declared a movie clip - "mcPhotoFrame" (i.e. an instance of "mcPhoto" movie clip) and would like to load all the pictures on the stage but after finished loading, only the last photo shows on the stage.

Thanks and regards,
Wayne.
---------------------------------------------------------------







Attach Code

import flash.display.*;

/* Load XML File */
var myXML:XML = new XML();
var urlRequest:URLRequest = new URLRequest("flowers.xml");
var loader:URLLoader = new URLLoader();
loader.load(urlRequest);

/* Declare PhotoFrame */
var mcPhotoFrame:MovieClip = new mcPhoto();
mcPhotoFrame.x = 10;
mcPhotoFrame.y = 10;
addChild(mcPhotoFrame);

/* Photo Loader*/
var photoLoader:Loader = new Loader();
var urlPhoto:URLRequest = new URLRequest();
photoLoader.scaleX = 0.03;
photoLoader.scaleY = 0.03;

loader.addEventListener(Event.COMPLETE, onComplete);
function onComplete(e:Event):void {
myXML = XML(loader.data);

for (var str:String in myXML.id) {
urlPhoto.url = myXML.id[str].@fileName;
photoLoader.load(urlPhoto);
mcPhotoFrame.addChild(photoLoader);
mcPhotoFrame.y =+ 50;
}
}

Effective Way Load Movie Into Movie Clips
Is there a effective way to load movies into MC's(movie clips) rather than using levels. For some reason, I try use the load movie action and the movies start to play before I want them too. I place a stop action on the first frame of the swf.file, but flash seems to be ignoring it.

First I use the load action in the frames before;

loadMovie ("tb.swf", "lb");

and the trigger frame where I want clip to start, I place this

with (_root.lb) {
gotoAndPlay (2);
}

For some reason, it loops. Do I have to have a blank keyframe or any keyframes on the movie clip? Does the MC have to have only one layer? How does the action know which layer to go to?

Tempe,Arizona

Load Movie/Unload Movie Clips
Hello all you learned people:

I am having diffuclty in getting information on how Loadmovie and unloadmovie scriptds work.

Here is what I am trying to do. I am developing some computer based training where I would like to have a menu of selections about the training to be taken so the student can navigate to each movie clip individually then return to the main menu.

I have gotten the Loadmovie script to work for one instance, opening only one movie so far but I am unsure how make the .swf file that is called unload and return to the main menu so the student can move on to another topic.

Any help in understanding how these work would be greatly appreciated.

Oh and I have looked through the tutorial on this site for this subject but it did not help much.

Thank You
Shungon

Load Order Of Nested Movie Clips
I find it disturbing that load clip events for child MCs occur after the load event for parent MCs. I would expect that when a parent load event is fired, you would be guaranteed that all contained children are also loaded. Unless I am mistaken, this is not the case.

The inner/child MC is just a couple of items such as a text box and such. The load on the inner child works fine. This is where I define my properties, functions and events. The wrapper MC just encapsulates all of this and allows me to stick it all in the library. When I drop (reuse) an instance of the wrapper MC onto the stage and try to hook up to MY event handlers in the wrapper MC's load clip event, I find that the properties, functions and event definitions on the innter MC have not yet ben set up.

Anyways, I have a work around which seems a little cludgy to me. The enterFrame event DOES seem to wait until all child MCs are loaded. As such, initialization can be done the first time that event is entered as such:

onClipEvent(enterFrame){
if (this._initialized == undefined){
this._initialized = true;
obj.setOnChangeValue(_root.HandleIt);
}
}

Note that obj is the instance of the inner MC. setOnChangeValue sets my event handler (which is defined in the wrapper MC).

Does this seem like a strange approach to you? I don't really like the enterFrame approach, but I don't see another way due to the load order.

Thanks,

Using Butons To Load Movie Clips And Replace Old
Hello (first post)
I'm trying to use buttons to load movie clips. Here are the details: I need the buttons to call the movie clips onto the timeline. I need the movie clips to replace existing movie clips. Basically, I want different movie clips in the same location using the buttons to choose which movie clip is displayed.

Making Sure Load Movie Clips Are Loaded
I have a flash movie where I load several external movie clips, each clip goes in an empty movie instance in a different frame label. The problem is that all the clips don't load when I first view the movie, but load OK after I refresh the browser. How can I make sure all loadmovie clips get loaded?

Load Movie Clips Into Predefined Positions
Hi there! Just wondering if anyone could please help me on this. Basically I want to define 4 positions on my main movie clip (root level), so that when I click on 1 of the 4 buttons in this main movie clip, 2 child movie clips at level1 will be loaded into those predefined positions depending on which button the user has selected.

For example,
Select button1 - childMC1 into pos1 & childMC2 into pos3
Select button2 - childMC1 into pos4 & childMC2 into pos2
Select button3 - childMC1 into pos3 & childMC2 into pos4
and so on......

I've read from some other posts that I could use "creatEmptyMovieClip" or something like that to do this, but since I'm kind of new to actionscripting, can anyone please tell me how do I go about coding it or where I can find some similar examples of the solution???
Thanks very much in advance!

[F8]how To Load Scene After Clicking On Three Movie Clips
I want after clicking by left button on three movieclips to load another scene.
How i can do it?

What Is The Code To Load Movie Clips From The Library
what is the code to load Movie Clips from the Library using a button?

Without putting the movieclip on the stage.

Hello! I just learned not to use scenes so, now I made all my pages into a movieclip. Im using those movieclips to load using a button. I want the button to grab the Movieclip from the library.

Thanks in advance for helping me.

Pre-load Question - Attached Movie Clips
I'm not very experienced in flash, and I have been asked to re-do a section of a clients website. they needed display and navigation for listing over 70 of their advertisers and ads. I'm about 90% done now, and I'm realizing that the way I've set it up might be utterly wrong.

I have it all contained in a single swf, which is only 3 frames long. 1st frame for the main menu, 2nd frame for the ad listings, and 3rd frame for the category listings. For each ad and category, i've created movie clips of the main layout and added linkage so that they can be attached at will.

the problem... this creates a huge file size, and the movie won't even show up until the entire swf is loaded.

Any suggestions? I'd like to load each ad as it is clicked, but would I need to create a separate swf to do this?

Any help would be greatly appreciated, as the deadline is closing in fast and I am already over the estimated hours.

here's what I have so far to give you a better idea...
http://www.skateaz.com/redbook/ad.html

[MX04] Preloader, Then Load Movie Clips Help
I am having trouble with the actionscript here. Preloader works fine, then goes to movieclip1 (slide1) which then plays.
But then I want it to play movieclip2, which is an external mc, and then from movieclip2 (slide2) I want it to cycle back to movieclip1 and play.

Can anyone help me with this?

I'm attaching the (not completed and inserted smaller jpegs for the purpose of uploading) file here...
BIG NOTE: There's a third actionscript file you need but it won't let me upload it.
Take the code below and create a file called Preloader.as, save it to the root.

class Preloader extends MovieClip{

private var target_mc:MovieClip;
private var progress_mc:MovieClip;
private var pct_str:String;

private var dispatchEvent:Function;
public var addEventListener:Function;
public var removeEventListener:Function;

function Preloader(){
// initialize with EventDispatcher so the preloader can broadcast events
mx.events.EventDispatcher.initialize(this);
}

public function startPreload(t:MovieClip){
// set a reference to the timeline that is loading
target_mc = t;

// reveal the preloader clip
this.gotoAndPlay("IN");
}

private function onAnimateIn(){
this.stop();

// this is called from the preloader mc timeline on the last frame of the 'in' animation
// starts checking the load progress of the target movie clip on each frame
this.onEnterFrame = this.checkLoadProgress;
}

private function checkLoadProgress(){
// get the total bytes and the loaded bytes of the target clip
var bl = target_mc.getBytesLoaded();
var bt = target_mc.getBytesTotal();

// calculate the percentage of bytes loaded
var pct = bl/bt;

// get the current frame and total frames of the progress clip
var cf = progress_mc._currentframe;
var tf = progress_mc._totalframes;

// calculate the frame that corresponds with the load percentage
var f = Math.ceil(tf * pct);

// if the current frame of the progress mc is less than the value of f then let the clip play
// otherwise, stop the progress clip to wait for f to catch up with the current frame
// this prevents the animation from jumping ahead if the target clip is loading faster than
// your progress animation
if(f > cf){
progress_mc.play();
}else{
progress_mc.stop();
}

// set percent display in preloader_mc based on percentage of frames that have played
this.pct_str = (Math.round(cf/tf * 100)).toString();

// if the clip is entirely loaded, and the progress clip has played all the way through
// then the preloading is complete
if(bt > 20 && bl == bt && cf == tf && progress_mc){
onPreloadComplete();
}
}

private function onPreloadComplete(){
// stop the check load call
this.onEnterFrame = null;

// animate the preloader
this.gotoAndPlay("OUT");
}


private function onAnimateOut(){
this.stop();

// dispatch event that tells any listeners that the preloader is done
dispatchEvent({target:this, type:'onPreloaderOut'});
}
}

Randomly Choose & Load Movie Clips
Hi All -

I'm still new to Flash, so please forgive me if this is a repeat or remedial question!

I have a html page that has a swf movie on the header. This header movie clip has anywhere between 4 and 6 different embedded movie clips that it cycles through. What I would like to do is have it randomly start the movies, so that the first movie in the movie clip isn't the first one to start everytime the html page is loaded. Is there an action script that will let me randomly load the movie clips?

Any help would be appreciated and please let me know if I can clarify if my question does not make sense. Thanks!

LoadMovie To Load External Movie Clips
Hi,

Is it possible to load an external MC within an external SWF into my container mc in the main swf movie.

Hope that makes sence.

My reasons:

i have main movie reading variables from an RSS XML feed

if (_root.weatherType == "Heavy Showers") {
(load heavy_weather_mc from the main weather swf file)
}

Thats the basic methodology of it, if there is a better way of doing it please put me out of my misery!

Thanks in advance

Damon

[MX04] Load / Unload Movie Clips
I am loading external SWFs on my main flash file.

For every External SWFs:
They also have multiple levels. There is a base SWF and then 5 levels of other external SWFs there.

So- i load an external SWF on my main flash and that external SWF also has its own external SWFs.

This is how i do that:
on my main flash file.. i create a blank MC:
this.createEmptyMovieClip("blank1", this.getNextHighestDepth());

Now, by default i load my first external MC there (ExtMC1)
_root.blank1.loadMovie("ExtMC1.swf");

Now i have a button (Button2) and when it should be clicked- it should replace ExtMC1 with ExtMC2.
_root.blank1.loadMovie("ExtMC2.swf");

This just don't work because it does replace the base file for ExtMC1 but the external SWFs within ExtMC1 remains on the main flash file..

so i use this instead:

button2.onRelease = function() {
unloadMovieNum(1);
unloadMovieNum(2);
unloadMovieNum(3);
unloadMovieNum(4);
unloadMovieNum(5);
_root.blank1.loadMovie("ExtMC2.swf");
};

so basically i clear all the levels first and then load my second MC (ExtMC2.swf).

similarly to load my third MC i use this on button 3:
button3.onRelease = function() {
unloadMovieNum(1);
unloadMovieNum(2);
unloadMovieNum(3);
unloadMovieNum(4);
unloadMovieNum(5);
_root.blank1.loadMovie("ExtMC3.swf");
};

is there any better way of doing the same- it does work but the issue is, when the first MC (ExtMC1) is loading and click on the button 2 to load the second MC (ExtMC2) - it takes a lot of time.. so i need an effective way of doing the same.. please help.

How To Load Scene After Clicking On Three Movie Clips
I want after clicking by left button on three movieclips to load another scene.
How i can do it?

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