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




Interaction + External Movie



Hi guys,It's my first post in here, I spent most of the day looking for my answer but i still couldn't find it.So my problem is,page1 = indexpage2 = aboutmepage3 = portfolioOn my Index, lets call page1, I have a menu, the same menu that i have on my page3, this menu contain around 10 links, so the basic idea is to open differents externals movieclips in each link, it works fine when I use this links on page3, i just used the action to each link;- on (release) {this._parent.gallery_mc.loadMovie("animal_gallery.swf");}ok, the thing is, when i use the menu on page1, it has to open page3 and then, inside page3, load my external movie in my gallery_mc; so lets see the action;on (release) {if (_root.link<>page && _root.G<>1 && _root.SP ==0) { _root.scroller.gotoAndStop("s0");_parent["item"+_root.link].gotoAndPlay("s2");_root.link = page;_root.ch_cont.gotoAndPlay("s1");}if (_root.link<>page && _root.SP ==1){_root.scroller.gotoAndStop("s0");_root.link = page;_root.play();}}This works fine, its just to call my page3. So now is missing to load my external MC into a MC called gallery_mc into my page3, so I tried all the ways and still didn't work;Just for u to understand the structure;root + ch_cont + all_pages + page3Its a bit difficult to explaim, but hope u will understand it!!!thanks for your time!!!Daniel



Adobe > ActionScript 1 and 2
Posted on: 11/25/2008 05:27:47 PM


View Complete Forum Thread with Replies

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

[F8] Interaction Between External Swf And MovieClip
Hi guys,

I already found a lot of help in reading others posts on this site here. I'm relatively new to Flash and Actionscript and I think It's time now to look for some assistance. I can't wrap my head around the following problem:

Description:

In this project I have 6 buttons which target a moviecliploader to load swfs, which play animations corresponding to the content areas.

The button itself onRelease triggers a button animation and the moviecliploader to load the swf, this works out fine.

Problem:
I want the button animations to be invisible as soon as they and the corresponding swf finished playing.
I would also like to prevent the button from loading the same swf, when released another time and when the swf is still active.

Tested remedy:

Tried the getProgress function to check the loading progress of the moviecliploader and then used the setInterval function for the moviecliploader to make the button animation disappear after a certain time. (maybe not correctly)

Tried several other thing, but what I suspect to be an obstackle is to get the connection between the end of the the playing swf. and the mc inside of the button.

I also thought about setting things up differently as described in the following tutorial ... http://http://www.kirupa.com/develop...ransitions.htm

This would make up for my 2nd problem as I experienced in a previous project, but doesn't give an answer to problem No. 1



Script on buttons:

stop();
this.onEnterFrame = function() {
if (rewind == true) {
prevFrame();
}
};
this.onRollOver = function() {
rewind = false;
play();
};
this.onRollOut = function() {
rewind = true;
};

Script on main timeline:

/*
* This frame we will build the navigation
*/
stop();
this.createEmptyMovieClip("mcCharry", this.getNextHighestDepth());
var mcCharryLoader:MovieClipLoader = new MovieClipLoader();

var charryListener:Object = new Object();
mcCharryLoader.addListener(charryListener);

var warpSound:Sound = new Sound();
//warpSound.attachSound('warp1');

mcCharry._x = 20;
mcCharry._y = 130;

var charryArray:Array = new Array("gangx.swf", "fioteen.swf", "peteTiger.swf", "coolScull.swf", "bellyMan.swf", "larsBen.swf");

var nCounter = i;
for (var i:Number = 1; i<7; i++) {
_root.navBar["navBtn"+i].ID = i;
//Zählvariable zwischenspeichern
_root.navBar["navBtn"+i].onRelease = function() {
mcCharryLoader.loadClip(charryArray[this.ID-1], mcCharry);
warpSound.start();
this.gotoAndPlay(11);
};
};

I would be so thankful if someone could help me. I have already spend 2 days trying to find a solution, but I can't come up with one.

For those who would like to have a closer look, I have attached a zip folder with the fla and one of the external swfs (Dates btn - bellyMan) which are supposed to be loaded.

Interaction Between External Swf And MovieClip [F8]
Hi guys,

I already found a lot of help in reading others posts on this site here. I'm relatively new to Flash and Actionscript and I think It's time now to look for some assistance. I can't wrap my head around the following problem:

Description:

In this project I have 6 buttons which target a moviecliploader to load swfs, which play animations corresponding to the content areas.

The button itself onRelease triggers a button animation and the moviecliploader to load the swf, this works out fine.

Problem:
I want the button animations to be invisible as soon as they and the corresponding swf finished playing.
I would also like to prevent the button from loading the same swf, when released another time and when the swf is still active.

Tested remedy:

Tried the getProgress function to check the loading progress of the moviecliploader and then used the setInterval function for the moviecliploader to make the button animation disappear after a certain time. (maybe not correctly)

Tried several other thing, but what I suspect to be an obstackle is to get the connection between the end of the the playing swf. and the mc inside of the button.

I also thought about setting things up differently as described in the following tutorial ... http://http://www.kirupa.com/develop...ransitions.htm

This would make up for my 2nd problem as I experienced in a previous project, but doesn't give an answer to problem No. 1

:confused:

Script on buttons:

stop();
this.onEnterFrame = function() {
if (rewind == true) {
prevFrame();
}
};
this.onRollOver = function() {
rewind = false;
play();
};
this.onRollOut = function() {
rewind = true;
};

Script on main timeline:

/*
* This frame we will build the navigation
*/
stop();
this.createEmptyMovieClip("mcCharry", this.getNextHighestDepth());
var mcCharryLoader:MovieClipLoader = new MovieClipLoader();

var charryListener:Object = new Object();
mcCharryLoader.addListener(charryListener);

var warpSound:Sound = new Sound();
//warpSound.attachSound('warp1');

mcCharry._x = 20;
mcCharry._y = 130;

var charryArray:Array = new Array("gangx.swf", "fioteen.swf", "peteTiger.swf", "coolScull.swf", "bellyMan.swf", "larsBen.swf");

var nCounter = i;
for (var i:Number = 1; i<7; i++) {
_root.navBar["navBtn"+i].ID = i;
//Zählvariable zwischenspeichern
_root.navBar["navBtn"+i].onRelease = function() {
mcCharryLoader.loadClip(charryArray[this.ID-1], mcCharry);
warpSound.start();
this.gotoAndPlay(11);
};
};

I would be so thankful if someone could help me. I have already spend 2 days trying to find a solution, but I can't come up with one.

Movie Interaction
Hi
I am self taught in Flash and I am having difficulties with the following content for my elearning project.

I have created a .fla file called Main Menu and in frame 4 I have a clickbox that the learner has the option to click to view a short movie which has been created seperately with some animation included (filename Person ID Group.fla). Once this movie has completed I want the learner to be navigated back to the parent movie to continue. Also if they do not choose to view the option movie from the parent movie they are to continue on.

These files will eventually be loaded onto a 3rd party software for distribution to clients.

I have read about 'attachMovieClip', 'loadmovie' etc but have not been able to get them to work. I am now totally confused and would appreciate some guidance in this matter.

Many thanks

Debbie

Movie Interaction
ActionScript Code:
loadMovieNum("mymovieurl",10);
_level10.Stop();
Why can't i interact with the loaded movie? Any ideas? I like to keep it that simple for the export in 5.0. Plus I need the loaded movies on descending layer order so I'd like to stick with the loadMovieNum method.

Movie Interaction
ok - I have the main timeline. Frame 1 of that timeline is a movie. When editing the child of that movie all I want to do is place a script in there that say's to go back to the main timeline and play frame 2.

I know it's gotta be easy but it's one of those things I cannot figure out!

Any help would be appreciated.

Interaction Between A Main Movie And Secondary Movie ... HELP
Hello,

My principal movie, call it 'MainMovie', is calling other external movies (swf files - MovieA.swf, MovieB.swf).

What is the way to make them communicate between each other ?

I explain:
The MainMovie contains a menu used to select between MovieA or Movieb to be loaded.
The MovieA also contains a menu. Its buttons are recognized (when the mouse rollover the cursor it changed in a 'hand') but the are not working, If I click on them nothing happend.

or example on of the button of the MovieA contain the following Action:
on (press) {
getURL ("javascript:Start1('Pics/Comic.htm')", "_self");
}
This actionscript is working correctly when I launch 'MovieA' out of the MainMovie.

I am sure that is something to do with the path, but what I have to do ? I have tried several but without success.

Thanks,

Attoc.

Interaction Between Swf Using 'load Movie' ?
Hi,

I have a movie and using load movie I load another movie on level 1. Now when I unload the movie I want to go directly to a scene in the movie on level 0. Can this be done???

Thanx

Interaction With Draggable Movie
I'm trying to make a movie clip change its size as you drag it across the screen. Heres what I have on frame 1 of my movie:


box_x = getProperty ("dragit", _x );
box_y = getProperty ("dragit", _y );
if (box_x >= 200) {
setProperty ("dragit", _xscale, 30);
setProperty ("dragit", _yscale, 30);
} else {
setProperty ("dragit", _xscale, "50");
}


the box that I want to change size starts off at %50 x scale which is ok. but when I move it past the 200 mark, it doesn't change to %30 like I want it to. The box_x and box_y variables are not updating as I drag my movie clip. They are only getting the x and y co-ordinates when the movie loads up. How do I get the variables to update as the movie is being dragged so that it changes the size of the box once you drag it past the 200 point?

Frame And Movie Interaction
Hi

I'm working on a site with two menus, one on the top and the other on the left. So, I made 3 frame to the html document. In every section, there a new interface.

Actually, i've made a flash movie and a html page for each interface, but when the page load, we see the 3 frame load one after the other.

So i put all the interface in 2 movie, one for the top, and one for the left.

When a menu is clicked, I would like to change the movie frame on the other HTML frame.

I've tried several way, but wasnt able to make it work..

Anyone can help?

Movie Clip Interaction
I'm pretty sure this is an action script thing so I'm posting the question here. I'm trying to make a little animation for my girl friend, it's of a penguin. What I want is for the penguin to just sort of waddle around the screen (that's the easy part) but what I am asking about is that I want the penguin to be interactive. If you click on the penguin I want it to react to the click in some random way, like have it jump or run away or somthing. I was wondering if anyone has any ideas as to how to go about this.

Movie Clip Interaction
Hi, here is my newest problem.

I have a movie clip that repeats itself and moves down the stage evertime it repeats.

I want a blank clip to load another instance of the moving clip and begin it playing on the stage when the first instance moves across the point on the stage where the blank clip is. I also want that clip to be rotated so it moves 90 degrees differently from the original clip.

Anyone have an idea?


(i am using mx2004)

Preloaded Movie No Interaction
I have a preloaded movie that loads in to the movie fine. However when I try and interact with the buttons etc they dont work??

does any one know what could be the problem here?

Interaction Between 2 Seperate Movie On 1 Page?
Is there any way possible to have one movie interact with another movie on the same HTML page?

Interaction Between A Movie And The Main-timeline
Hi! This is for Flash MX 2004: Can anyone figure out the actionscripting that could apply to the following example?:

I've got two frames in the main-timeline.
The first one is labelled "ONE", the second one "TWO".
The first frame contains a movieclip (instance name: "MC"); the second one contains a simple Bitmap. I've got one button inside "MC" (instance name: "BTN").

THE ULTIMATE QUESTION:
How can I tell "BTN" to go to frame two in the main-timeline "on release"?

NO Loaded Movie - Parent Interaction
Sorry... duplicate post... please read the post here:

http://flashkit.com/board/showthread.php?t=670293

Help Movie Interaction Question Variables?
Hi all,
Ok. I have a huge question, and it can be very difficult for me to explain, so I'll do my best.

I have a movie (which is a website), in where I have labels in my timeline, and I basically have all my buttons with the script...on(release) gotoAndPlay("framelabel"). This is the only way I've learned to make a flash website. Now.
??My problem is that I would like for my pages to fade out (or do some kind of animation) BEFORE the next part of the movie that the user just clicked on comes in. I know everyone has seen this before.. and I've given an example.

Is this variables? Because I wouldn't be able to use gotoandplay because of I would have to make a label and timeline for every separate instance. (If that makes sense?)

So can anyone help me out? Example of what I'm talking about is below. THANKS!
www.foxracing.com

Interaction Between Main And Loaded Movie
Hey guys. You have all surely been doing this a long time now, so you probably encountered this question many times. I have to make this project in flash for my university. It's like a full flash site with four links. I want to use a loadMovie action to load the 4 different pages on top of the main menu. The first question is:
Is it possible to have a BACK button on the loaded movie which tells my main movie to go at a certain frame when the pressed and right after that just unload itself if necessary? If so, then with what function or action ... it would be just great if i can do that, i would've solved all my problems. Then comes the second issue... if i have a volume slider in my main movie and i don't use loadMovie() but just jump to another scene or frame, would all the values of the volume in the main scene change themselves as i jump to another scene? I'm just afraid that if i load the whole navigation once more the volume slider would change it's position to default.
I'll be very greatful if you could share some of your experience with me. Thanks and i hope hearing from you.

Interaction Between Main And Loaded Movie
Hey guys. You have all surely been doing this a long time now, so you probably encountered this question many times. I have to make this project in flash for my university. It's like a full flash site with four links. I want to use a loadMovie action to load the 4 different pages on top of the main menu. The first question is:
Is it possible to have a BACK button on the loaded movie which tells my main movie to go at a certain frame when the pressed and right after that just unload itself if necessary? If so, then with what function or action ... it would be just great if i can do that, i would've solved all my problems. Then comes the second issue... if i have a volume slider in my main movie and i don't use loadMovie() but just jump to another scene or frame, would all the values of the volume in the main scene change themselves as i jump to another scene? I'm just afraid that if i load the whole navigation once more the volume slider would change it's position to default.
I'll be very greatful if you could share some of your experience with me. Thanks and i hope hearing from you.

Help With Button/movie Clip Interaction
I have 4 buttons on a page and a long rectangle movie clip that slides to a different area each time a button is clicked. The idea is similar to http://www.immigrantindustries.com/i...ords/index.htm when u go from label to news button the image slides over to the left. Basically thats all I'm trying to do. I've looked at most of the posts and no one's asked this question or had it answered so thanks in advance if anyone can help.
-Project-09

Pausing Movie & User Interaction Issues
Hello All –

I have been going around and around in circles trying to find a script for what I thought would be an easy thing to do. Here’s where I’m at – I have a Flash movie that has five images. What I need it to do is automatically play through the movie and display each image for about 10 seconds then move onto the next image.

What is also needed is for the user to click on one of the five buttons so if Image 4 is showing the user can click on Button 2 to bring up Image 2 and then after pausing for the specified time the movie will resume playing and pausing.

Client Specifications: The images and text/link must be set up so that those elements can be updated externally. Right now this movie has the images being loaded with the Loader Component so that the five jpgs are loaded dynamically and the text/link is being loaded with the TextArea Component through the five txt files in the folder.

Each image is set up in its own Movie Clip and each clip contains a mask for the rounded corners and a fade-in for the beginning along with the image and text being loaded. So there are five movie clips.

My Problem: When you first load the movie it plays fine. However, when you click on a button – say the movie is displaying Image 4, click on Button 2 and it jumps back to display Image 2 and then the timing goes crazy. The movie starts playing faster and will even get to the point where it skips from Image 1 to Image 3.

Here is the movie: http://www.fractalrust.com/flash/

The Code: This code is on the first frame of the main timeline:
function wait() {
stop();
var myInterval = setInterval(function() {
play();
clearInterval(myInterval);
}, 10*1000);
}

This code is on the same frame as each movie clip on the main timeline:
wait();

I have gone through a lot of different scripts that I found and this is the only one that comes close to doing what I want. Not sure if the script I found is compatible with Flash 8, which is what I am using. If anyone could let me know if what I am looking to do is doable that would be great. Also if you want to take a look at the movie you can download it: http://fractalrust.com/flash/fiveheaders.zip

One last note – the person who asked me to do this got the idea from this site: http://aimtoday.aim.com/
It’s the Flash movie off in the upper right corner that has four rotating images and you can click on the buttons to jump to anyone of them.

Thanks in advance!
Kecia

Changing Movie Clip Color Stops All Interaction
I have a symbol called myMovieClip that I've animated along a path. I have buttons that call play, stop, prevFrame, etc on the main timeline. This all works fine. However, when I click a button that calls...

on (release) {
trace("set color.");
c = new Color(myMovieClip)
c.setRGB(0x993399);
trace("done.");
}

...the movie clip changes color, but then the buttons don't work anymore. I can't even make it play by hitting the play button in the flash player. Anybody know what's going on? It should be way easier than this to change something's color.


thanks...
-sascha

How To Duplicate Movie Clip Without Any User Interaction On Main Time Line
Hi, Guys

Can any one tell me how to duplicate movie clip (using for loop)in main time line.

yeah! guess right Something to do with game.

Please help me for this.

Bhushan

Movie Position Related With Size Of Browser Window - Flash Interaction 02
ok,
there are a couple of things of flash, that i was unnable to solve from a long time up to now.
and everitime i look on related post of these topics, there are always with 0 answers.

so, i will place here a couple of posts, one with each problem i want to resolve,
i really prefer to use as much flash as i can before i like it much more than any other software, but i believe we will all agreed that it has some weak points.

so basically this post is related on how we can interact flash to other web design software

Here is problem 2:

our flash movies, at least mines,
that i design everithing in flash,
ther are located in a special place of the browser window

here, the flash movie its centered in the browser window,
and when i resize the BW,
it stays centered unless the BW its smaller than the movie


i will like to know how is this done,
i mean,
its flash with another software working together ?
its everithig designed with something else and the flash movies are just accesories ??
or is full designed in flash in a way i still dont get it ???

becouse i've alrready tried a lot of things without any luck

could any of you give me a hand with this ??

pd: i will also post another topic related to this, and this example but, not about the BW it will be about the text and the search engines. so we can discuss these topics separately

thanks in advance

oc

Interaction From External Apps To Flash Apps
The Flash Remoting MX documentation describes how a Flash application can call an external application service (i.e. a method of a Java module). It seems that Flash Remoting application structure allows only interaction from Flash apps to external Application Servers.
Anyone knows if it is possible to share data (in a synchronous manner) between Flash and another external application, or to raise an event/invoke a method on a Flash application from an external app?
Thanks a lot

Problem With Flash Movie To Flash Movie Interaction
hi people! i hope yu guys can help me out. i have a problem with this flash movie to flash movie interaction. i have two SWFs and are in an HTML page.the first one must play first. once the first one is finished the other one then plays. i used javascript and the fs command to tell the 2nd movie to play once the 1st one is finished playing. i made it work on I.E. 5 on my P.C.(yehey!). but when i try it out on netscape 4 on my pc, the 2nd movie just freezes on the 2nd frame. and the bad part is when i try to execute it on the MAC it doesn't work. Hope yu guys can enlighten me on this matter. thanks!

Loading External Movie And Starting With Specific Frame Of That External Movie
I would like to load an external swf onto my stage and go to any specific frame of that external swf. Can this be done in Flash? If yes Please give me a sample or any help.

Help Trigger External Movie To Load From Button In Another External Movie - Stuck
I really hope someone can help me!!!

I am loading movie C.swf into movie B.swf which gets loaded into movie A.swf the main movie. All loading works except C.swf has buttons that need to trigger another movie E.swf to load into A.swf and that is not working!!!

Here is the structure I am using:

A.swf (main final movie loads B.swf on start)
B.swf (loads main nav C.swf and scrolls it infinitely)
C.swf (main nav with buttons that trigger sub nav E.swf to load into A.swf)
E.swf (sub nav with buttons that trigger F.swf to load into A.swf)
F.swf (scrolling images of portfolio)

The actionscript I am using for the button in C.swf to trigger E.swf to load into the main movie A.swf is:

metals_mc_bn.onRelease = function() {
reActivateMenu();
this.gotoAndStop(3);
this.enabled = false;
loadMovieNum("E.swf", 1); // trigger sub nav E.swf to load into A.swf
};

I am so stuck with this and seems so simple a problem, but I'm just pulling hairs out at this point, can anyone please help me!

Loading External Movie And Starting With Specific Frame Of That External Movie
I would like to load an external swf onto my stage and go to any specific frame of that external swf. Can this be done in Flash? If yes Please give me a sample or any help.

Loading An External Movie Through An External Movie To The Main Movie
I hope I can explain this well enough for someone to understand.....Here it goes

I am creating a full site in flash. The main movie has an empty movie clip in the middle of the movie to load external movies as the user clicks on the links. Everything has worked good so far as the linking has only gone 1 level deep. However, when I created a new external movie, and had buttons on it for another external page, but yet to open in the main movie, I can't get anything to work. Example.... In the main movie, the user clicks on the archive link, and the external archive movie is loaded into the main movie. Now, on this archive movie, there is a button on it that links to a another movie (say text effects.swf). However, when they click this button for text effects, I can't get it to load into the main movie clip and replace the archive movie that was currenlty there. Can anyone help me figure out how I need to go about doing this?

I hope I have been pretty clear on my problem. You can always visit www.davidgreer.home.dixie-net.com to see the movie and how it works. I can always post the .fla if I need to.
If anyone can help, please let me know. Thanks.

Loading An External Movie When Another External Movie Completes
I am looking for a way to load an external movie when another external movie completes. Also, is there a way to check the extistence of an external movie or iterate through a directory to get external movie files?

TIA
Tim

I Cant Seem To Load An External Movie, Within An External Movie That Has Been Loaded
Ok. I created a button.. and added a behavior that loads an external swf into a movie clip. Now the external swf movie that loads into the mc also has a button that loads a second exteral movie. Nesting several movies swf files in the main movie.

http://www.dondi.biz/newsite06/ (click on portfolio)

When I view the final movie. It only loads the first external movie showing the buttons (web, Print etc.). But when I click on the button it doesnt load the third movie.


but when I view the second movie it loads it just fine when not nested in the first movie. http://www.dondi.biz/newsite06/portfolio.html it loads just fine.


Can I not nest these movies together to work just fine? Why is this so frustrating? Can anyone help me please?

Loading An External Movie Inside An External Movie?
This is my problem.

First my nav buttons load an external movie to a container movieclip. However in this loaded movie I am using another container to load in other movieclips (I am loading a movie in turn that movie contains buttons which loads in other movies to another container in that movie).

I'm using the following code on the buttons -

on (release){
_root.container.loadMovie("test.swf");
}

however when I click on the button in the movie clip it just goes white. Is my code wrong? Can you only load one movieclip using containers? I know I've explained it very complicated.

1. I click a button.
2. That button loads an external file to a container.
3. In that external file there is another button, when clicked loads another external file into it using another container.

Please someone help!!!

Loading An External Movie Inside An External Movie?
This is my problem.

First my nav buttons load an external movie to a container movieclip. However in this loaded movie I am using another container to load in other movieclips (I am loading a movie in turn that movie contains buttons which loads in other movies to another container in that movie).

I'm using the following code on the buttons -

on (release){
_root.container.loadMovie("test.swf");
}

however when I click on the button in the movie clip it just goes white. Is my code wrong? Can you only load one movieclip using containers? I know I've explained it very complicated.

1. I click a button.
2. That button loads an external file to a container.
3. In that external file there is another button, when clicked loads another external file into it using another container.

Please someone help!!!

Load External Text Inside An Already Loaded External Movie
here's the problem as simply as I can explain it.
there's a main.swf, a news.swf and a text.txt
the news.swf is loaded into the main.swf and I want to load the text.txt into the news.swf

everything works when I just load the text into the news.swf without loading it into the main.swf, so I know the text.txt part is loading.

How To Load An External Movie Using A Link Within An External Swf - Urgent
Hi all

Flash CS3 but coding in AS2 - mac.

I believe I have asked this question before but i was using loadMovie() - I am now using loadClip and the MovieClipLoader class and obviously I have managed to break something.

I have a number of external swfs which load fine, with preloaders using MovieClipLoader, into an empty MC on the stage called holder_mc. In one of the external swf's, there are two links to separate external swf's - if you click on either of them, the current swf is unloaded and the new one is loaded. I used:


Code:
myButtonWithinSwf.onRelease = function() {
this._parent.loadMovie("newMovie.swf");
}
However now that I am using a different code (because before, evrything wasnt preloaded, i just had a white space until it appeared) the code within the swf obviously has to change. The only problem is, I cant for the life of me work out what it is, I have tried all sorts of combinations and probably missed the most obvious one. I do not want to create empty movie clips, I want the movie to load into the MC which I have defined - holder_mc - and usually I would tell it to unloadClip() before loading the new one, but it cant load a new one if it has unloaded itself. I hope that makes sense!
This is the code I am using on the main timeline to control the preloading of the external swf's:


Code:
var mcLoader:MovieClipLoader = new MovieClipLoader();
var loadListener:Object = new Object();
loadListener.onLoadStart = function() {
holder_mc.stop();
};
loadListener.onLoadProgress = function(target:MovieClip, loadedBytes:Number, totalBytes:Number) {
pleaseWait._visible = true;
var preloaded:Number = Math.floor(loadedBytes / totalBytes * 100);
preloaderMC._visible = true;
preloaderMC.loadText.text = preloaded.toString() + "%";
preloaderMC.loadBar._yscale = preloaded;
};
loadListener.onLoadInit = function() {
preloaderMC._visible = false;
pleaseWait._visible = false;
holder_mc.play();
};

/**** register listener object with MovieClipLoader object ****/
mcLoader.addListener(loadListener);

anotherButton.onRelease = function() {
mcLoader.unloadClip(holder_mc);
mcLoader.loadClip("anotherMovie.swf", holder_mc);
}
my preloader is called preloaderMC and pleaseWait is just a movie clip that is placed on the other side of the screen for another reason. loadText and loadBar are the dynamic text and loading bar within the preloaderMC.

I really hope someone can help me ASAP as this was all working before with loadMovie() and now suddenly I cant get it working!

Thanks in advance

Theo

How To Load An External Movie Using A Link Within An External Swf - Urgent
Hi all

Flash CS3 but coding in AS2 - mac.

I have asked this question before but i was using loadMovie() - I am now using loadClip and the MovieClipLoader class and obviously I have managed to break something.

I have a number of external swfs which load fine, with preloaders using MovieClipLoader, into an empty MC on the stage called holder_mc. In one of the external swf's, there are two links to separate external swf's - if you click on either of them, the current swf is unloaded and the new one is loaded. I used:


Code:
myButtonWithinSwf.onRelease = function() {
this._parent.loadMovie("newMovie.swf");
}
However now that I am using a different code (because before, evrything wasnt preloaded, i just had a white space until it appeared) the code within the swf obviously has to change. The only problem is, I cant for the life of me work out what it is, I have tried all sorts of combinations and probably missed the most obvious one. I do not want to create empty movie clips, I want the movie to load into the MC which I have defined - holder_mc - and usually I would tell it to unloadClip() before loading the new one, but it cant load a new one if it has unloaded itself. I hope that makes sense!
This is the code I am using on the main timeline to control the preloading of the external swf's:


Code:
var mcLoader:MovieClipLoader = new MovieClipLoader();
var loadListener:Object = new Object();
loadListener.onLoadStart = function() {
holder_mc.stop();
};
loadListener.onLoadProgress = function(target:MovieClip, loadedBytes:Number, totalBytes:Number) {
pleaseWait._visible = true;
var preloaded:Number = Math.floor(loadedBytes / totalBytes * 100);
preloaderMC._visible = true;
preloaderMC.loadText.text = preloaded.toString() + "%";
preloaderMC.loadBar._yscale = preloaded;
};
loadListener.onLoadInit = function() {
preloaderMC._visible = false;
pleaseWait._visible = false;
holder_mc.play();
};

/**** register listener object with MovieClipLoader object ****/
mcLoader.addListener(loadListener);


anotherButton.onRelease = function() {
mcLoader.unloadClip(holder_mc);
mcLoader.loadClip("anotherMovie.swf", holder_mc);
}
my preloader is called preloaderMC and pleaseWait is just a movie clip that is placed on the other side of the screen for another reason. loadText and loadBar are the dynamic text and loading bar within the preloaderMC.

I really hope someone can help me ASAP as this was all working before with loadMovie() and now suddenly I cant get it working!

Thanks in advance

Theo

Scrolling External Movie From External Movie :)
main timeline loads external movie1 (navbar) and external movie2 (all the pages) 5 pagespages@400px each hence entire swf=2000px....when i load i want to auto scroll thru each page quickly and stop on the welcome screen xpos @1600 then on each navbar button i need to scroll to the correct page, i think where i get confused is between all the different mc's loaded, i have tried several routes to make each work properly ie: loadMovie and loadMovieNum im not sure i see which one is working easier, and im losing focus on the containers that hold the external MCs....ill try and explain as best i can...

last frame of maintv.swf (stage)

Code:
loadMovieNum("pages.swf",1);
//?? how can i initially position pages.swf on the stage
//_level1._x = 0 <~doesnt work
//_level._y = 220 <~^
createEmptyMovieClip("nav",2); //load navbar
loadMovie("template.swf", "nav");
nav._x = 0
nav._y = 220
i have this in each navbutton on template.swf

Code:
on (release) {
_root._level1.xpos=0; //xpos depends on location of page on swf

}
its obvious im doing something wrong since the pages.swf doesnt scroll when button is clicked...kinda stumped, any help?
thx

Calling An External Movie From An External Movie.
Ok here is what i am trying to do.
My project consists of 3 movies.
The main movie "wone.swf"
the menu movie "tourney.swf'
and the item view movie "vision.swf"
I am using load movie command to load these externally.
So i create 2 blank movies in wone.swf and gave them instance names of tourney and vision.
Tourney is activated by a button on wone.swf which loads the tourney.swf movie into the place in wone.swf no biggie. But tourney has buttons in itself. I want the buttons to call the vision movie on the wone.swf stage from the tourney.swf movie that is loaded into wone.swf. Is this possible? how do i do this?

thanks
Undrdg

Load External Movie From Another External Movie
Hi ,

I load external movies into a main movie using the class MovieClipLoader. I wanna use some transition between the loaded movies so I follow a tutorial that show that.

The idea is the make an intro and outro animation to each external movie , when button 1 is pressed , the attached movie is loaded into the main movie , when button 2 is pressed , button 1 is ordered to play its outro and than loading the button 2 attached movie.

In the script the movie that plays the outro has a frame in the end that load the original movie the to main movie container , since in using the class MovieClipLoader I have some scope or syntax issue to load other external movie from external movie

the is the frame in the end of the external file that should load another external file to the main movie , mcl is the instance of the MovieClipLoader that i define in the main movie , holder is a movie clip that exist in the main movie as well.


Code:
_root.mcl.loadClip("contact.swf",holder);
and this is a simple of the code i use in my main movie (it has no relevant functionality)


Code:


var mcl:MovieClipLoader = new MovieClipLoader();

var mclL:Object = new Object();

mclL.onLoadProgress = function(target,loaded,total){
loader.percent.text = Math.round((loaded/total) * 100) + "%";
}

mclL.onLoadInit = function(){
loader._visible = false;
loader.percent.text = "";
}

mcl.addListener(mclL);
mcl.loadClip("ext1.swf",holder);

bn1.onRelease = function(){
loader._visible = true;
mcl.loadClip("ext1.swf",holder);
}

bn2.onRelease = function(){
loader._visible = true;
mcl.loadClip("ext2.swf",holder);
}
so i need to have external file loading another external file to main movie, how?

Thanks in advance
Shay

JS-2-Fla Interaction[? I M P O S S I B I L I T I E S ?] Can You Help'em Out?
all of the examples on the WEB that i found tryed and looked through.. are pretty basic, old and.. lets face it NOT-CROSSBROWSER at all.. can this kind of comunication actually work.. nowadys! and be relatively stable and crossbroser?
i have worked with that kind of matters last year.. maybe.. before the BIRTH of Gecho, NS 5.5,6.. and the "OhSoPrettyGoodLookingAndPromisinglyMagiclyEasyToU SE"-NEW!-DOMbrowsers.. and before the establishing of that JOKE-browser-thing OPERA...
I know I managed to make it work on.. IE an ns4,x... but i never faced the newDOMies.. and OPERA.. OK. With Gecho and DOM.. i think or i hope i'll find a way to deal with.. GetElementByID... blabla.. not that i realy know how to do it.. but at least thay have documentation of some sort.. but what about OPERA?

Anyway do you know.. how crossbrowser comunication from JS to FLA movie can be done.. hev you seen it somewhere on the WEB? Have you seen some link , reference, example, tutorial.. related.. or sth that can help out.. if you have.. tel me.. mail me.. help me out.. I'll be so greatful.. and happy.. and i'll owe you ONE..

Didko.

ASP Interaction
Hi guys, I am having trouble passing data from asp to flash. Is there is there a clear example of it that ca show ASP code too?.
Thanks very much in advance!

SWF Interaction
Is there any way to for one Swf to interaction with another one?

In more detail:
My main stucture is called main.swf.
Within this swf, I'm loading another swf called background swf which will change depending on where the user is on my site.

I'm loading another swf called nav.swf which will be the primary Nav for my site.

Overview:
Main.swf
Level0 bk.swf
Level1 nav.swf

Now here is where I get fuzzy. How do I get the nav.swf to interaction with the bk.swf.

I want to be able to target certain frames. Is this possible?
If it is what do I use for this?

Swf Interaction
Sup Ladies and Gents,

I ran into a small problem. I'm in the middle of a project, and can't seem to get 2 SWF files to interact properly.

I'm working with 2 files. One is called (portfolio.swf) and the other is called(thumbs.swf).

Now Portfolio is loaded into level 3. There is small nav that has a thumbnail link that will unload (port.swf) and load (thumbs.swf into level3). It's been clean up to this point.

Now within the Thumbnail gallery, when someone clicks on an image, I want to reload (port.swf) back into level3 and target it's corresponding picture.

I have tried

On release {
_level3.gotoAndPlay("framename")
}

also

_level3.portMC.gotoAndPlay("framename")

The main reason why I added portMC, cause the targeted frame is withing a Movie Clip called portMC, with the (port.swf)

Does anybody have any ideas what I'm doing wrong??? Any help would be much appreciated.

Ryan

Interaction Help
I am trying to make a card game like flash game where two people can play each other. Now I am not to sure on how I can actually do this in real time. If anyone can give me any pointers or help I would be very greatful.

Thanks for your time
- Rayn

Interaction
There is probably a tutorial on the matter but where? what I want to do is: ie: a birthday present wrapped and when the viewer clicks on it he sees what is inside; easy you may say, it can be done with a button, trouble is with a button when you move the mouse away from it it reverts to the first image; I want it to stay open then do other presents the same way until they are all showing the contents. Is it that difficult?

Interaction
Hello !

As i can do this:
button on release i change _x, _y coordinates of image (at html page)

I exactly now, what this can realize javascript, but as?

button.onRelease = function(){
getURL("javascript:...('...')");

}

Sergey Samoylenko.

Interaction Between 2 Swf's
What is the simplist way to interact between two seperate swf's on one page?
The reason I need to do this is because a want a menu to left justifed and have another swf centered in the browser.

An example of what im talking about:
http://www.nagaoka-id.ac.jp/gallery/gallery.html

Interaction Help
this is what i want to do:
load a dozen layer of images and then the user will be erasing them with the cursor. at the end there should be a a new image made from all those layers... Is this possible? and if it's then how?

thanks in advance

and please help me...

[F8] Mc Interaction
i have a block of text that the user is able to scroll through on a site i am building. i want the user to be able to rollover an image inside this text and a floating text box will appear next to the image with a brief explanation of what the image is.

i have set the image up as you would if you are using the mc as a button, so it has an up over and out state for the mouse interaction. i know to usually to get the effects to display you would use this action script on the time line


Code:
this.but1_mc.onRollOver = function() {
but1_mc.gotoAndPlay("over");
};
this.but1_mc.onRollOut = function() {
but1_mc.gotoAndPlay("out");
}


how can i do this for the image_mc inside the text_mc so that when the mouse rollsover it the text will display. i have never tried to do this before so i dont no really what i need to do with it. if there is a tutorial explaining how to do this please point me in the direction.

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