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




Controlling External Movies In Flash



I need to know how I can load variables inside external movies that are loaded inside an existing movie.



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


View Complete Forum Thread with Replies

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

Controlling External Flash Movies
Hi:

Quick question!!

I have a movie with sound.. When I click the TEXT button I want a new flash movie to load in a new window.

Also when this original parent movie reaches frame label 2 I want the newly loaded movie to goto the next frame.

Can someone please help me with this code.

Thanks

Controlling External Movies
Hi,

If I have 2MCs in different frames, 1 Nav menu, and 1 for misc stuff, how do i go about controlling the 2nd MC from the Nav menu?
I don`t think its by using the tellTarget command is it?

Excuse the Dumbass question!

Thanx

Controlling External Movies
hi my name is dennis....im currently designing a site where the main movie loads all the extra sections externally (for example, the main movie is the navigation, and the 'music' section is an external movie that loads into it)
my problem is, i want to be able to control the newly loaded movie's timeline (the 'music' one) using the menu in the main movie.
I can get the movie to load fine, but i can't figure out how to control it. it's set up like this...

on the click of the 'music' button, it tells a placeholder movieclip
to load the 'music' swf into level 2:

on (release){
_root.placeholderone.loadMovie("music.swf", 2);
}

underneath the music button is a submenu on the main movie's timeline with buttons for 'lyrics' and 'audio'. i can't figure out what script to put on the 'lyrics' button to make it the "music.swf" move to the frame that has the lyrics part on it...i'm going nuts trying to figure it out and i'm sure its something simple but i can't see it now.
I've tried using _level2.gotoAndPlay actions but they don't work.

please any help in what's wrong with my code or just on how to do this would be greatly appreciated...
if it helps, visit http://www.freethinkersmovement.com/.../sog/index.htm and click on the flash link to view the file i'm talking of. The site isn't finished, as i'm just trying to figure out all the scripts before i go and make the full sites, but it's enough so you can see my dilemna. i can even email you my .fla file if it will help.

Thanks!

Dennis

Controlling EXTERNAL Movies
Hey gang,

I've got a far-out question that I thought I would toss to the Flash Guru's out here.

I wanted to create something where I could control external movies from a central one. The application is something like a scoring system that I would use on multiple monitors on the same system.

I was thinking that if I ran a few copies of a scoring 'display' SWF on the other monitors, could I control it from a CENTRAL control by changing the information on the one SWF to alter the output of the other two?

I'm just trying to think a little outside of the box.

Any help you can give would be greatly appreciated!
MrGameShow

About Controlling External Movies
I'm calling an external movie, just like this:

code: var externalMovie:MovieClip;
var myLoader:Loader = new Loader();

myLoader.load(new URLRequest("external.swf"));
myLoader.contentLoaderInfo.addEventListener(flash. events.Event.COMPLETE, finishedLoading);

function finishedLoading (e:Event):void{
externalMovie = MovieClip(myLoader.content);
stage.addChild(myLoader);
}

the external movie loads fine, but when I try to control it from outside its opening function, like:

code: function playIt()
{
externalMovie.play();
}

playIt();


I get an ugly error (1009).

I know it is because the externalMovie variable is available only under the finishedLoading function scope. But what if I want to control my external movie from anywhere else in my movie? How can I "globalize" my variable to be available by any other function?

PLEASE HELP!!!

About Controlling External Movies
I'm calling an external movie, just like this:


ActionScript Code:
var externalMovie:MovieClip;
var myLoader:Loader = new Loader();

myLoader.load(new URLRequest("external.swf"));
myLoader.contentLoaderInfo.addEventListener(flash.events.Event.COMPLETE, finishedLoading);

function finishedLoading (e:Event):void{
    externalMovie = MovieClip(myLoader.content);
    stage.addChild(myLoader);
}

the external movie loads fine, but when I try to control it from outside its opening function, like:


ActionScript Code:
function playIt()
{
    externalMovie.play();
}

playIt();


I get an ugly error (1009).

I know it is because the externalMovie variable is available only under the finishedLoading function scope. But what if I want to control my external movie from anywhere else in my movie? How can I "globalize" my variable to be available by any other function?

PLEASE HELP!!!

Controlling Loaded External Movies
Hi guys,

I hope you can help me before I break this wall down with my head.

Working in MX Pro 2004 I've got a site that I'm loading external swf files into a container MC when buttons are clicked. What I can't get my head round is playing those movies backwards when any other button is hit.

I've been toying with the "on (releaseOutside)" handler but it doesn't seem to be doing anything.

Any help greatly appreciated.

Loading And Controlling External Swf Movies
Hello,

I am trying to create movie controls (pause, rewind 5 seconds, stop and play) These movie controls need to control many small SWF movies that are called separately onto the stage by individual buttons. Also, each SWF movie is called onto the main stage by a separte SWF that sets the x and y coordinates as well on the stage. This is a big project with mulitiple movies (all loaded onto a common level though) - These movies are in SWF format, but not created from Flash. We're using Sorenson Squeeze to take high digital video to SWF, so I cannot create any code in the actual SWF movie files.

Is there a way to target all movies in motion with a set of external buttons? I hear this concept is similar to a main mc like puppet sprite pause in director?

I've tried to use identify the movie with _level but it does not work. I'm wondering if thats because the application has multiple levels.

Does anyone have any suggestions?

Thanks!

Controlling External Set Of Movies With Play Pause And Skip Buttons
hi all,

Been looking for some tutorials on how to get this done but cannot find any. After I build this out I want to post up in the tutorials section.

Ok I was wondering if someone could help me on this small problem I am having. I have a total of 4 flash movies. The first movie will house all my navigation as shown below:

[Movie 2] [Movie 3] [Movie 4] [Pause] [Play ] [Skip to Next Movie]

The simple part of course are the first 3 buttons basically just loadmovie statements.

Now the next 3 buttons are the part I cannot quite figure out. The logic from what I have been reading is basically is the create a variable on the mainstage that updates itself each time a new movie is playing. This way you can tell the movie "pause" or "play" because it has a name.

Any actionscripters want to lend a hand on this? I have included the files all setup just need to few lines of scripting. I want to also post this as a tutorial since I cannot locate any tutorials with this sort of logic.

thanks in advance!

Controlling Flash Movies From Within Other Flash Movies, Contained With Frames...
ok, the title was a bit of a mouthful but hey, i was wondering if anyone could shed some light on this problem :

i know how to control content being loaded into frames, from within a flash movie (using get url) but, i'm not sure how to go about calling various parts of a flash movie that is situated within a different frame with the html page, from the one it's being called from.

so, for example, say i have a set of buttons within one flash movie, that when clicked moves the timeline in the other flash movie (within a different frame) to frame 5 or whatever. see what i mean?

would it be something like this?

on (release) {

getURL("name of html page.html", "name of lable/ number of frame within timeline", "name of frame flash movie is contained within");

}

Controlling 2 Flash Movies?
hello all,

Does anyone know if it's possible to have 2 seperate flash movies (embeded on the same html page)...
where one controls elements of the other such as frame location .



thanks alot

Aron

Controlling 2 Flash Movies
Hey, is it possible to control 1 flash movie from another one elsewhere on my site ?
I have no clue on how to do this, can someone help me a hand ?
Thanks

Controlling Flash Movies
I have a Flash file that I would like to give the user some control over. I would like the file to play as soon as its loaded and give the user a pause button for when it plays (but invisible otherwise) and a play button once its been paused. Can anyone tell me how AS can detect if a movie is running or if its paused? thanks

Controlling AVI Movies In Flash
I'm in a Flash clash here at my college, and the instructor really is incompetent. So basically, between Ozzu and Kirupa, you guys are all where I learn how to do stuff. If only you gave college credit...

anyways, our current assignment is to make a Flash document that plays/controls movie clips. The assignment is to make a Flash thing to be able to control and play 3 movie trailers, downloaded from the internet (or any AVI or MPG will work).

I am curious if anyone has any links or knows of any places where I can figure out to how get AVI's in flash, and have the flash controls control the movie. Supposedly the movie files need to be external and played from the flash.

Thanks again!

Controlling AVI Movies In Flash
I'm in a Flash clash here at my college, and the instructor really is incompetent. So basically, between Ozzu and Kirupa, you guys are all where I learn how to do stuff. If only you gave college credit...

anyways, our current assignment is to make a Flash document that plays/controls movie clips. The assignment is to make a Flash thing to be able to control and play 3 movie trailers, downloaded from the internet (or any AVI or MPG will work).

I am curious if anyone has any links or knows of any places where I can figure out to how get AVI's in flash, and have the flash controls control the movie. Supposedly the movie files need to be external and played from the flash.

Thanks again!

Controlling Flash Movies Via Javascript
Hi all,
I have been mucking around with some Flash methods to control .swf movies via .js. I have been able to easily work out how to stop and rewind a movie via StopPlay() and rewind() but I'm having troubles trying to make a button to goto the last frame.

Currently I have setup the following in my html:

<a href="#" onClick="var totalMovieFrames = document.all.flashfile.TotalFrames(); document.all.flashfile.GotoFrame(totalMovieFrames) ;">Stop Animation</a>

But I get the following .js error:
"Object doesn't support this property or method."

Can someone point me in the right direction please?

Thanks,
Patrick.

Controlling Seperate Flash Movies?
I was wondering if it was possible to control a flash movie from a different movie.

For example. I have a menu, and then in a different frame of the html page i have a flash movie.

Would it be possible to make it so when you click a button in the menu flash on the top frame, and make the flash movie in the botem frame do something?

Thanks alot for your help guys

Controlling Flash Movies Between Frames, Know How?
I need to conect two flash movies, the footer movie tells the top movie
to action (load a movie in to _level1) the problem is the two movies are in diferent html pages (_top & _bottom).

I think the solution is to use Javascript to do this.

But some one knows the rigth way?

I need help, this is urgent!!!

Controlling Multiple Flash Movies In Frames
Hey guys,
I have 2 frames with a flash movie in each. I want to be able to control one movie via the other movie. LIke for example, from movie1.swf can i say gotoAndPlay(2) in movie2.swf which is in the other frame? I wasnt sure if this was possible. Any help would be greatly appreciated. Thanks
Don

HTML Buttons Controlling Flash Movies ?
Hi all, I'm hoping you can resolve this issue for me.

I'm creating a site in HTML that will be a series of photo albums dealing with diffeerent people. I have the photo albums working properly & they are the Flash aspect of my page. What I am attempting is to load diffeent flash movies into a table section or frame.
E.G. you click on a button labeled "Circus 2003" and the coresponding SWF file loads into a "viewing area"; you click "Circus 2005" & a different SWF file loads, etc.

I realize this could probably be done with an all flash site however I don't feel I am ready to tackle this yet.

Any advice? Thanks

Controlling Flash Movies Using DreamWeaver MX Buttons
Perhaps I'm being reeeeaaaally stupid (?)

I'd like a Button image in DreamWeaver to control a Flash Movie. See attached .zip file.

I've followed the official DreamWeaver instructions and it just does not work in any of my browsers. Can anyone have a look at it and see what I'm doing wrong ?!

All I'm after is : onMouseOver of light blue box then play frame 2 of .swf movie. I can't do it ! Heeeelp !

Cheers,
Monkee.

Controlling Flash With External Links
Hello all

I'm populating my dynamic text field with text from my external txt file. All works fine with HTML elements etc.

I have hyperlinks working too, but can only link to external websites, eg -
Code:
<a href="www.mywebsite.com">My Link</a>


How can I target certain frames within my flash movie?

Many thanks

Flash MX 2004: Controlling External Swf (Nav)
I am creating a Flash program that consists of a "master" movie file that will call in individual chapters (*.swfs) as needed.

I want to create a single (page) navigation structure that will reside in the master - yet allow the user to go to the next/previous screens in the movie currently being used.

I have created the master movie and have placed an empty movie clip on one of the frames. From the main navigation, I have been successfully able to load the individual *.swfs into the empty movie clip when called from the menu using the following command:

_root.emptymovieclipname.loadMovie("external.swf") ;

I have been unable to figure out the action script that will allow me to control the navigation within the external swf from the main timeline. Any clues?

Also - is it possible to determine the number of frames within each clip as they are called so I can turn on/off the fwd/back buttons when appropriate?

TIA

- Shawn

Flash 8 - Controlling External .swf's In An Array
Hello Everyone,

I have created a flash file that loads external swf's into a container clip. This I will call "main" it has this code on it to load the external .swf's



Code:


var clips = ["section1.swf", "section2.swf", "section3.swf", "section4.swf", "section5.swf", "section6.swf"];
var n = 0;


loadSWF = function(){
if(container2.holder){
container2.holder.removeMovieClip();
}
var clip = new MovieClipLoader();
var clipCtrl = new Object();

clipCtrl.onLoadInit = function(mc){
// any pre control scripts can come here
}
var holder = container2.createEmptyMovieClip("holder", 1);
clip.addListener(clipCtrl);
clip.loadClip(clips[n], holder);
}


loadNext = function(){
n++;
loadSWF();
}


loadNext();
Another thing to note is each .swf needs to load the next .swf in the array so I have put this code at the end of each of the .swf's
_level0.loadNext();

There are two problems I am having:

1. In the "Main" flash file it doesn't load "section1.swf" like I want it to, instead it skips to "section2.swf" so logically I thought if it is skipping the first .swf in the array I will create a dummy swf; "section0.swf" (this swf file is non-existent since it is being skipped over by my code. Can someone explain why this is?

2. This may be a result of #1 but when I get to the end of "section3.swf" it fails to load "section4.swf" instead it goes back to "secton2.swf" ???? Does anyone have any ideas as to why this is? It should follow the order of the array, right??

If anyone can help me it would greatly appreciated. I am struggling with the figuring this out and it has to be done ASAP (typical, I know)

Thanks for any help you can offer in advance.

-Mpot

Everything is working fine until I get to the 4th section.

Controlling External Movie Clip (Flash MX)
Hi Everyone,

In my main movie I have loaded an external thumbnailer (buttons). My problem is that I don't know how to target the thumbnailer (buttons) with specific frames in the main stage.

Does anyone have an idea how to do that?

m

Controlling Timeframe In A Flash Movie From External Source
Hi all

I've been mustering at this for a while now. All forums give you good advice (though novice) of controlling web pages from within FLASH: Obvious this is a no-brainer. But is there a possibility to do the contrary like controlling a flash in a frame from a hyperlink in another? If someone can shed light on this one for me, i personally hand you a free cocktail at my bar! (that's if you ever come over where i live)

www.rootsreggaeclub.com

Bests

Stormy

Controlling Flash Movies Based On The "current Url"
Hey everybody,
I´m trying to make a swf file that displays different messages/frames whenever the user clicks on a new page. I want the swf file to recognize the current url and change to the frame I want.

Is it possible?
I´m not using frames so everytime the user clicks a new page the swf file is reloaded.

Any help will be much appreciated!
Cheers

External Movies Into Flash
Hey
i'm having MEGA difficulties with actionscript.
I hope there is someone on this forum that can help me out, i am going crazy..

Here is the thing:
I am making a website for a friend of mine. He sells tft screens on wich he shows flash movies (16:9).
he wants the same movies he makes for those screens to be shown on his site.

So i made a PHP file that reads how many files are in the directory "swf" and it also reads the filenames of the swf files in that directory.
It sends the following to flash: &aantal=2 &name1=Doort.swf &name2=Doortie.swf

The whole idea is that my friend can upload swf files in the directory "swf" and that flash automaticly scales them to 35% and shows them.
When all movies are played, it starts over again.

I cant seem to figure out how to continue... this is what i got so far.. Can someone please please please help me??
i dont know if its well coded..

var lv:LoadVars = new LoadVars();
lv.sendAndLoad("swf.php");

var mcReeks:Array=new Array;
var root:MovieClip=this;
var myMcl:MovieClipLoader=new MovieClipLoader();
lv.onLoad=funtion()
{
for(var i:Number=0; i<this.aantal;i++)
{
root.createEmptyMovieClip("container_mc"+i, root.getNextHighestDepth();
root["listener"+i]=new Object();
mcReeks.push(this["name"+i]);
/*
mc1=this.movie1;
mc2=this.movie2;Of
mc3=this.movie3;
*/
//loading starts wiht MovieClipLoader class
myMcl.loadClip(mcReeks[i],root.["container_mc"+i]);
root["listener"+i].onLoadInit(target_mc)
{
trace(target_mc._width);
setProperty(target_mc, _x, 35);
trace(target_mc._height);
setProperty(target_mc, _y, 35);
mcReeks[i]._visible = false;
if (mcReeks[i]._currentframe == mcReeks[i]._total frames) {
mcReeks[i]._visible = true;
}
}
}

Controlling Movies From NC4+ And Mac
hi guys!
i am currently trying to control movies from Netscape and macOS (e.a:document.swf_movie.tgotoFrame(20), etc...). With very poor results I have to admit. The code works fine under Explorer and Windows. But otherwise I find it very frustrating: on some code it works fine, on other similar code, I get error messages. Has anyone an extended /systematic approach to crossbrowser testing in this area of javascripting?
Also, I must achieve some basic control on quicktime movies, and there also, results are mitigated.
Thanks for your input!

Controlling Other Movies
I have two movies (2 swf files)
I have loaded one of the movies in to the outer one.

How do i make a target from one of the movies to the outher one??

help =)

Controlling Other Movies
I have two movies (2 swf files)
I have loaded one of the movies in to the outer one.

How do i make a target from one of the movies to the outher one??

help =)

Controlling Movies...
Here's my situation:

I have a main movie called t_nav.swf. Inside this movie I'm loading another movie into level 40(menu.swf)plus I have a movie clip playing in the main time line labelled "scroll".

In the movie on level 40 there is a button that will play a certain frame in the movie clip "scroll" that resides in the main time line. I have labelled the specific frame "news".

How do I get the button, in the movie loaded into level 40, to go back to the main time line and into the movieclip "scroll" and then play a specific frame labelled "news"?

I hope this is not to confusing...

Thanks!

Controlling Movies
How the hell one can controll movies from within another movies. Say for eg m using movie clip 1 in scene 1 and want it to control movie clip2 in scene 2. Butns are in clip 1 and act as radio buttons say i can slect one option from three in this scene and get response accordingly in second scene.

It is a hard nut to crack but have sweet fruits


__________________
Shleda,
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1 GE/CS/IT d s-:->: a-- C+++ P+ L+>++>$ E? W+++ N? o? K? w+
O? M? V? PS+ PE++>$ Y+ PGP- t 5? X+ R* tv+ b+ DI++ D----
G++ e h! r-- y
------END GEEK CODE BLOCK------
http://www.geekcode.com

Controlling 2+ Movies...
I have a site with two different .SWF's.

One displays the menu (with the buttons) and the other displays content. Is there a way to control the timelines in the content SWF through the buttons in the menu SWF?

I hope that was understandable hehehe



thanks
ghjr

Controlling Swf Movies
Here's one for all the Flash Gurus.

Can anyone please help.

I have a movie and called another swf file into a placeholderMC on an fla file using the loadMovie function.

This works OK but the thing is, is it possible to control one movie from another on the click of a button. If so could anyone tell me how to do this.

I am using Flash MX.

All help much appreciated.

Controlling Different Movies
Hey all, I have a question that I've seen before but nothing I could find helped me with it...

I have one movie embedded in my html page. I want it so that when that movie lands on a certain frame (or a certain button is pressed) it tells another movie embedded in the same page to go to a frame or something...

it seems simple when you think of the concept but I'm not sure how easy it is to do....

Any insight it appreciated
thanks

Controlling Movies Between .swf's?
Hi,

I have 2 swf's. Swf1 is my main Swf and I have loaded Swf2 into Swf1.
What I need to do is control (play) a movie in Swf1 from a script in Swf2.

Swf2 is loaded into level1 of Swf1 and the movie I want to start is on the main timeline of Swf1.

How is this done???

Controlling Movies
OK, I created a basic animation with music.

I then created another movie clip with the stop and play buttons and placed that in my main scene.

I then turned that movie clip into a button so when you scroll over it the music controls fade in with a stop and play button and then fade away when you scroll out.

How do I make this work, tried to use labels, but I'm guessing this is not the way to do it.

Thanx

PS Hope this makes sense

Controlling Movies
It's kinda like this. I have a index.swf that im loading other swfs on top of into different levels. So I have a navigation swf that i want to controll all my other swfs with. Can I do that and what would be the script??

Help With Controlling Movies
Hi, please help as I am new to actionscript and it's giving me a headache. OK, I have a button, and when released a movie clip called mc_alphaFade on its own timeline using a tween, fades from 0 alpha (frame 1) to 100 alpha (frame 30) with a stop(); command on frame 30. When frame 30 is reached, I want to load a different movie. Any ideas.

mc_largeButton.onRelease = function() {
mc_alphaFade._visible = true;
mc_alphaFade.gotoAndPlay(1)
};

Thankyou anyone who can help.

Controlling Movies
K I know this is covered ina tutorial or probably has been covered on this board. I can't find it, so if you want to point me to the link that's coolio.

Here is the issue.

I have a main movie loading up external SWF movies. At the end of each of the loaded movies, I want them to automatically load the another movie into the main movie. So I have a loaded movie loading the next loaded movie into the main movie. Is there a way to do this?


Thanks for the help.

Controlling FLV Movies
I have a SWF that loads an FLV into a MediaDisplay Component. I would like to know if anyone can tell me how program buttons to pause and resume the movie. I can't use Media controller as it wont work when I load the SWF containing the FLV into my main site with loadMovie();

Thanks in advance
J

Playing External Flash Movies
Hey peeps (again)
another problem ermm i have built a timer and saved it as a swf and then using loadmovie command i have loaded the clip into a box...it does appear but the timer does not play...any idea?

[Flash CS3 - AS 2] Loading External Movies
Hi all,

I have this plan for a project, where I will be loading separate movies, in a sequence. I need to implement a player-style navigation, with Play and Pause buttons. Until there everything works fine.

I also need to implement a slider, so the user can drag the slider a the specific point in the movie. This is where I am not sure how to make it happen. I have created this in the past, applied to one movie, but this project will use several external movies, loaded into the "player" in sequence. I am not sure if the slider is possible, and how to do it.

Does anyone have some experience with this? I don't have a file. At this point it is only a concept.

Please, let me know if you have any advice.

Thanks,
CH

Please Help Controlling Movies In Another Frame
Hi:

I have an HTML page with 2 frames. Both frames have different SWF's. The frame on the left is for navigation and the one on the right plays my lecture. I have frame labels in my lecture at specific points and what I need to do is on my navigation tree when I click on a particular name I need it to go to the frame label in the other movie(on the right). Can this be done? If so can someone step me in the right direction.

Thanks

Controlling Multiple Movies PLEASE HELP
I haven't been able to find the answer to this, so if anyone out there can give me a hand it will be much appreciated!

I have a movie (root). On this movie, I want to have navigation buttons that will control all other loaded movies. Ok...now comes the hairy part that I can't figure out. If I load a new movie.swf (NOT A MC) on level1, how do I control the movement of this new movie.swf from the _root navigation buttons?? I basically need this new movie to do 2 things: play, and stop. Nothing fancy! Is this possible???? I have looked and looked and can only find answers on using MCs and instance names and stuff.

Thank you VERY much for any help you can give!

dm
dmolanphy@mac.com

Controlling Multiple Movies
could someone tell me how to get a move loaded on level 2 be asked to go to scene "xyz" and frame no 10 or label "here" , from a movie loaded on level 7

plz..I need help!

thanks a ton!

nixthinx

Controlling Movies Independently
I've got two actions happening that i want to be able to control independently....I want to be able to start and stop a movie (jpg sequence) and have the other action (tweened vector objects) continue to play. How can I do this?

Controlling Loaded Movies
I have a question which is actually multiple questions which are really one problem. In frame 1, scene 1 of my main movie, I load navigation.swf onto level 1. navigation.swf has my buttons in it. The buttons use tell target to tell the main timeline to load images.swf onto level 4 of the main movie timeline. I need my buttons to check the currentframe in images.swf. And if frame X is loaded, goto scene2 of images.swf. I am a novice who is totally confused by now. Any ideas?

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