Haveing Trouble With Controlling Loaded Movie (layers)
right, i've got my main interface, call that "1" for now.
MC that gets loaded into it call that "2"
inside 2 i'm loading swf's with photos call them "3"
ok, loading "2" into "1" with this code:
Code:
on (release) {
_root.container.unloadMovie()
_root.createEmptyMovieClip("container", 1);
loadMovie("1.swf", "container");
container._x = 0 ;
container._y = 2 ;
}
"2" contains a scaleing window (box) that will be a background to the images. but when i load the images into the directory that contains the window the image comes out behind the background.
this is the code i'm useing to load the image:
Code:
on (release) {
box.unloadMovie();
createEmptyMovieClip("box", 2);
loadMovie("cow.swf", "box");
box._x = -250 ;
box._y = -50 ;
_parent.scaler.target_xscale = 240;
_parent.scaler.target_yscale = 183;
}
i've tried putting the button that controls the scaleing window and the loading of the movie clip back a directory but i can't get the button to reference the the actual scaleing background one directory up. i know i can't use _root.blah.blah.box because it's getting loaded intosomething else and _Root would reffer to the main interface (i think). i've tried checking some tutorials but i'm pretty dyslexic and have quite a hard time with them. any ideas?
cheers, squid.
FlashKit > Flash Help > Flash ActionScript
Posted on: 09-08-2003, 08:01 AM
View Complete Forum Thread with Replies
Sponsored Links:
Trouble Controlling A Loaded Movie
Hi... I want to control a loaded movie doors.swf (_level5)
the movieCLip name is "doorAction"
It has 2 labels,
frame "open" //doors are closed, when played they open and stops at "close"
frame "close"//doors are open, when played they close and stop at "open".
I have a button on the main timeline of the Main Movie that on(press) it closes the doors and loads a new movie at _level4.
and then opens the doors.
on (press) {
_level5.gotoAndPlay( "close" );
}
I cant even get the doors to close...
when the Main movie loads I made the doors load with it , to see if the doors.swf actually played, I removed the stop action on the first frame of the doorActionMovieCLip and it works; It opens automatically but I cant figure out why I cant get it to work...
I made sure that the doorActionMC was tracked as a MC in doors.swf, in the instance box with doorAction as the name.
also I checked the instance on the button in the main movie ... it seems fine...
Am I targeting incorrecly? ...
thank you in advance
View Replies !
View Related
Haveing Trouble With Background Music
I have a game where it has 3 frames,
1 the main menu
2 instructions
3 the game itself
I have background music on the title. When you click the button to go to the instructions I want the old music of the main menu to fad away and the instructions music to come in, then when you go back to the main menu I want the Instructions music to fad away and the main menu to music to play!
Is this possable??? If so please tell me how!
Thanks if you answer!!!
View Replies !
View Related
Controlling Visibility Of Specific Html Layers From Swf Movie
Hi Folks.
Three questions really.
1) Can it (Controlling visibility of specific html layers from Swf movie) be done, cross browser and cross-platform within the swf via actionscript?
2) How? And please would someone be kind enough to give me an example and/or some sample code to work with please?
It is basically because Netscape doesn't support transparency settings, so I am having to make layers that appear/hide instead of just using the transparency settings in Flash (Which would be the ideal option), unless someone knows how to force NS to behave properly with the transparency option???
Are there any problems with Mac variants (IE and NS) that I should code for too, as there's nothing worse than doing loads of work only to find that it doesn't work at all with one platform/browser combo?
I'm using Flash 5
cheers
Biz
View Replies !
View Related
Urgent Loaded Movie Controlling Other Loaded Movi
I need this one done today!
I have two holder movie clips in my main .swf. One is selectloader, the other is normloader.
So selectloader.loadMov..... that works
In the select I load a selection with three boxes, the user chooses one.
When the user clicks one of the boxes I do
_root.normloader.loadMovie...
and it doesn't work!
So I created a new frame on the holder .swf for each of the three buttons so all the selectino has to to is go to another frame.
That works, but I also want each of the boxes to direct to a certain frame in normloader
so the problem comes back again
I can't get one loaded movie to control another loaded movie
I'm assuming it has to do with levels, and I need to do more then just _root.normloader.gotoAndPlay(3);
what do I have to do?
View Replies !
View Related
Having Trouble Controlling Movie Clip
Hello,
I am trying to control a movie clip by buttons on the left side. Each from of the movie clip is the corresponding "page" to a button. However, if you try to use the buttons, they do not always go directly to their intended destination. I am using the gotoAndPlay() method, but it doesn't seem to work.
you can view this at www.barryross.com/index_clip.swf
any help would be great, thank you...let me know what actionscript you need.
rossbar@interchange.ubc.ca
View Replies !
View Related
Trouble Controlling Parent Movie?
Hey guys!
I have some trouble with my program. I have 1 parent movie which is where i log in. When i log in i load an external swf file and the parent movie has a stop(); command
In that child swf file, at root level i have an actionscript layer which holds my actionscripts. At time 100 i have an actionscript:
MovieClip(_parent).gotoAndPlay(150);
which i thought would make the parent movie play at fram 150 and the child movie would continue playing.
Thing is the child movie stops playing
So the gotoAndPlay() function stops the current movie and continues playing what i told it to play.
THIS IS THE QUESTION!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!
Is there some way to get the child movie continue playing?
And while im at it, , how would I go about ... I have a main .swf, in that .swf i have a movieclip container which i load external .swf files, i would like to be able to preload 1,2 or 3 of those eternal swf files and let the main swf file know about it?
thx for your effort guys
View Replies !
View Related
Loaded Vs Internal Movie Layers
Is it possible to have an internal movie be above a loaded movie?
My loaded movie (contact) loads on level 1...and my movie symbol called (menu) is on the top layer of the movie timeline (which I guess is layer 0), but the loaded movie (contact) is getting placed on top of my movie (menu).
Is it possible for the internal movie to be on another layer. I dont want to bring it in externally if possible.
thanks!
View Replies !
View Related
Trouble Controlling Root Timeline From Movie Clip
This is probably simple, but I'm new to AS3 and am stumped!
I'm trying to control the root timeline from a movie clip. On the last frame of the movie clip, I have:
MovieClip(root).gotoAndPlay (10);
which successfully brings me back to frame 10 on the main timeline. However, from here, none of the ActionScript that is on Frame 1 seems to work... the rollovers aren't working, except on those embedded in a separate movie clip.
Any suggestions?
View Replies !
View Related
Question About Controlling Layers From Other Layers
Is it possbile to create an action in a loaded movie in layer1 that will tell the movie in layer0 to go to a specific frame and start playing?
Another question I have is, can you load a movie into a container or layer and have it start, not at the begininning, but at a specific spot in the loaded movie's timeline?
View Replies !
View Related
Controlling A Loaded Movie
ive been makin this really cool music menu, and i wanna set it up like this, i have it load up but on the first fram of the music menu it has a stop command, so that the music starts w/out them havin to open up the menu, but they cant see it. Then when they click to open it i want it to start fading in, so i wanna get past the Stop command, i wanna to have it Goto&Play Frame 2,the problem is i cant really command it from the movie it was loaded onto besides loading it and unloading it, is there any way i could give it a Goto&Play command from the movie it was loaded onto? , i really wanna load this movie up, instead of havin it be part of the whole thing(its laggier if u do that) HELP!
View Replies !
View Related
Controlling Loaded Movie
I'm loading a movie into my 'main' movie. This movie has a stop() in the first frame so I can start it from the main movie... but I can't get it to work. I'm using this actionscript:
var strDemoFilm = "video/demofilm_custom06.swf";
_root.mcVideoHolder.loadMovie(strDemoFilm);
_root.mcVideoHolder.play();
I've also tried this instead of the last line:
_root.mcVideoHolder.gotoAndPlay(100);
Nothing seems to work. If I remove the stop() from the 2nd movieclip it plays just fine, so there doesn't seem to be a problem in the 'loading' part...
Any thoughts???
View Replies !
View Related
Controlling Loaded Movie?
in my movie, i loaded a movie named "DT.swf" into a movie clip with an instance name of "blank". is there anyway to control or tell the movieclip DT.swf, to ..... for example
Code:
gotoAndPlay (11) ;
ive heard people post on it before, but i never listened in for the answer. thanks for any help.
View Replies !
View Related
Controlling A Loaded Movie.
OK, here it is. I am currently developing an interactive flash presentation that shows the different sections / departments within our company.
The navigation system is loaded into level0, most of the buttons that reside on this level use the loadmovie command to load other SWF's into level1.
My problem is that I want to navigate though the scenes in my movies at level1 (First, Previous, Next, Last) from navigation buttons at level0.
Anyone Any Ideas?
PS. All my Loaded movies have a different number of scenes.
View Replies !
View Related
Controlling A Movie Loaded Into Another
I have a flash movie (movie A) that uses a LOADMOVIE command to load an external swf file (movie B). Is it possible to tell movie A to perform an action after movie B has reached a certain frame?
for example, when movie B reaches its 10th frame, movie A displays a text message of some sort.
- Brad
View Replies !
View Related
Controlling A Loaded Movie ...
I currently have a 'main' movie ..and a loaded movie with the main.
In my 'main' movie level 0, ...I have a button. I want this button to flip to the next scene in my level 1 swf movie.
At the moment I have the following action on the button on level 0.
on (release) {
_level1.gotoAndPlay ("start");
}
The above works fine if I have a lable on the level 1 movie. But I don't want to use labels. I want to use 'next scene'.
So I tried the following:
on (release) {
_level1.nextScene ();
}
That doesn't work, ..so what am I doing wrong? Thanks
-Justin
View Replies !
View Related
Controlling A Loaded Movie
I there a way to load a movie and have it advance to a frame lable within the movie that is loaded? For example have it load movie (X) with the play head at frame lable (Y)? Any help would be greatly appriciated.
Thanks! Andrew
View Replies !
View Related
Controlling A Loaded Movie
Could someone please help me?!?
I have two movies (A & B) I am loading movie B into movie A, and I need movie A to tell movie B to go to a MC in B and stop on frame 2. Sound easy and I'm sure it is, but I'm stuck. Please help!
Thanks, Steve
View Replies !
View Related
Controlling Movie Loaded In MC
Why is this not working? All I want is the movie that is loaded in the "loadBox" is to "play".
FIRST FRAME OF MOVIE BEING LOADED
==============================
_parent.moviePath = this;
BUTTON
==============================
on (release){
if( _root.loadBox.movieLoaded == 1) {
}else{
_root.loadBox.loadMovie("salesPitch.swf");
_root.loadBox.moviePath.play();
}
}
It worked fine in other applications, but it seems like it quit working after I put the "if" statement in with it. Could there be a conflict? WTF?
Thanks ahead of time!
View Replies !
View Related
Controlling A Loaded Movie
Hi
I have loaded a small animated flash movie ("B" into a main flash movie ("A") using the following script:
on(release){
loadMovie("firmInfo/B.swf",_level0.firmInfo);
gotoAndStop("pause");
}
This plays movie B from within movie A until movie B reaches a stop.
I would like to resume movie B from its stop point with a button located in movie A. I have tried the following script on the button in movie A, but it doesn't work:
_level0.gotoAndPlay("resume");
(resume is the name of the keyframe immediately after the stop in movie B)
also,
_level0.B.gotoAndPlay("resume");
does not work.
any ideas?
thanks!
View Replies !
View Related
Controlling A Movie Once It Has Been Loaded
I used the below script to control a video. It works just fine when I run it, but the problem is when I load the .swf complete with controls into into my main movie the controls stop working. how can i rewrite the code so that the root movie can control the flow of the loaded movie. the name of movie clip i am loading into is called "video."
//Play button
playButton.onRelease = function(){
_root.video.play();
}
//Restart
restartButton.onRelease = function(){
_root.video.gotoAndPlay("1");
}
//Pause Button
pauseButton.onRelease = function(){
_root.video.stop();
}
//Fast Forward and Rewind
ffButton.onPress = function() {
ffw = true;
};
ffButton.onRelease = function() {
ffw = false;
};
rwButton.onPress = function() {
rw = true;
};
rwButton.onRelease = function() {
rw = false;
};
onEnterFrame = function () {
if (rw == true) {
_root.video.gotoAndPlay(video._currentframe-15);
}
if (ffw == true) {
_root.video.gotoAndPlay(video._currentframe+10);
}
};
View Replies !
View Related
Controlling A Loaded Movie
Hi
I'm sure this has been answered before, but bear with me, I couldn't find the right thing, and I have looked.
OK, it's a loaded movie thing. I have a frame on my main .fla that says:
loadMovie ("ex01.swf", "holder01");
where "holder01" is my wee empty mc. Takes a frame or 2 to work, but at least it does.
Now, once "ex01" is loaded in, I want to control its x an y coords from frames on the main timeline of the main.fla. Their code looks like this:
setProperty ("_level0.holder01.invoice1", _x, "-200");
etc. etc. But my wee "ex01.swf" has a tween on it that isn't showing up. And I want the frames controlling the coords of the wee .swf to move it about so the motion is apparent but doing it without tweens ie. with script. I've looked at the tutes on this and on paths but I must be missing something. Anyone got any ideas - any pointers would be gratefully appreciated,
Thanks in advance,
D
View Replies !
View Related
Controlling A Movie Once It Has Been Loaded
I used the below script to control a video. It works just fine when I run it, but the problem is when I load the .swf complete with controls into into my main movie the controls stop working. how can i rewrite the code so that the root movie can control the flow of the loaded movie. the name of movie clip i am loading into is called "video."
//Play button
playButton.onRelease = function(){
_root.video.play();
}
//Restart
restartButton.onRelease = function(){
_root.video.gotoAndPlay("1");
}
//Pause Button
pauseButton.onRelease = function(){
_root.video.stop();
}
//Fast Forward and Rewind
ffButton.onPress = function() {
ffw = true;
};
ffButton.onRelease = function() {
ffw = false;
};
rwButton.onPress = function() {
rw = true;
};
rwButton.onRelease = function() {
rw = false;
};
onEnterFrame = function () {
if (rw == true) {
_root.video.gotoAndPlay(video._currentframe-15);
}
if (ffw == true) {
_root.video.gotoAndPlay(video._currentframe+10);
}
};
View Replies !
View Related
Controlling A Loaded Movie
I am loading external swfs with loader
var myRequest:URLRequest = new URLRequest("main.swf");
var myLoader:Loader = new Loader();
myLoader.load(myRequest);
The problem is I need to do two things.
(i) control the timeline of my loaded swf things like gotoframe(10), play stop etc.
(ii) determine what frame it is currently on.
I suppose I need to turn my loading swf into a MC then do some on the other things.
Help would be much appreciated.
View Replies !
View Related
[F8]Controlling A Movie Loaded Onto A Layer From The Original Movie
Here is my problem. I have a 'first' movie that contains this script:
loadMovieNum("second.swf",3);
So I'm loading second.swf onto Level 3. But when I want to say:
_level3.gotoAndPlay("start");
...it doesn't work. Is there a way I can control 'second' and its contents from 'first'?
I'm also wondering, if I load first.swf onto Level 1 using another movie and then load second.swf onto Level 3 using first.swf would second.swf continue playing even when first.swf is replaced, or would it disappear too.
Thanks in advance for any help.
View Replies !
View Related
Trouble With Loaded Movie
I've loaded some .swf files into my movie, and when I use my navigation buttons the image remains on the screen, on top of the navigation.
Right now I have it set up so that the .swf is actually a pop-up from a hotspot, contained within a movie. The button is contained on frame one. The swf is on frame 2. I have an exit box in the upright corner that hold the unload movie command. This works great as long as you don't try to use the navigation buttons. But!! as I said, when you try to use the navigation buttons while viewing the movie holding the .swf, the .swf stays right on top.
What can I do? Please Please Please help me. I'm supposed to be leaving on a much needed vacation today.
View Replies !
View Related
Problem Controlling Loaded Movie
I am trying to control the timeline of a loaded movie with a button. The loaded movie clip gets stuck on first frame and doesn't proceed to the frame indicated in my script.
SCRIPT IN FIRST FRAME OF MAIN MOVIE:
this.createEmptyMovieClip("empty", 1);
SCRIPT INSIDE MAIN MOVIE BUTTON:
on (release) {
loadMovie("title.swf", "empty");
gotoAndPlay("label");
}
Not sure whats going on. Any Suggestions or Solutions?
many thanks,
-Richard
[Edited by superintendent on 07-25-2002 at 10:16 PM]
View Replies !
View Related
Controlling Depth Of Already Loaded Movie?
I am making a jigsaw puzzle type game, in which you have to drag the pieces to their appropriate place. I want to make sure though, that once a certain piece is clicked on, it is not possible to drag it 'under' other pieces. So basically, what I want to happen that the piece that is being dragged, is always on top of everything else. The pieces are all movieclips (with buttons inside them) and are all loaded in the same frame on the same layer.
I hope anyone has an idea how to go about this... Thanks in advance!!!
View Replies !
View Related
Controlling A Dynamically Loaded Movie ?
Hello again all. I have a question. I have a movie that I load onto a placeholder and now I want to control it with buttons from the main time line,
I want to use comands like
on (release) {
nextFrame();
}
but this doesnt advand the movie clip, just the main time line, how do I reference the clip?
View Replies !
View Related
Controlling Movies From Within A Loaded Movie
I have a loaded swf A on my main timeline, on level 4, and when i go into swf B (also on the main timeline) to play it i have used the unload movie, level 4 scripting to get rid of the swf A.
From within swf B i have managed to get back to the main timeline using _parent.gotoAndStop(1); but i cant get swf A to load again, is it possible from within the swf B movie or should i be thinking of some other method. Clear as mud?
View Replies !
View Related
Controlling Externally Loaded Movie
Hi there, well I found out a way to make my image 'canline-alpha' loader to work perfectly smooth .. now I have one more question (haha always more .. what a newb!)
I have my site setup to load, and unload external movies into a "contback" layer that I have ... while that works, I need to be able to control the loaded movies timeline and can't seem to figure how.
im using the command :
b1.onRelease = function() {
if (_root.whatscene != "main1.swf" ){
_root.whatscene = "main1.swf";
_root.contb.gotoAndPlay("open");
}
}
which then in a movie on the main timeline (contb) goes and "opens" the named "scene" via. "loadMovie(_root.whatscene, _root.contback);" which obviously, loads the external movie called main1.swf into the layer contback on the main timeline.
My question now .. is if I wanted to go to a certain frame in the external movie (main1.swf) ; how would I go about doing so?
View Replies !
View Related
Controlling Mc On _level0 From Loaded Movie
I have a very large file that I am trying to optimize to display better on the web. To do this I have set up some of my movie clips as load movie functions.
I have the main timeline with a mc with instance name "techmc" inside that mc I have a load movie level 5 script. At the end of the loaded mc I have the following script:
_level0.techmc.gotoAndPlay(TechStep03);
unloadMovieNum("5");
With the hopes that I can jump to main timeline-techmc- frame label-TechStep03.
I also tried
_root.techmc.gotoAndPlay
_parent.techmc.gotoAndPlay
Any suggestions??
Flash MX 2004, Mac
Thank you!
View Replies !
View Related
[F8] Problem Controlling A Loaded Movie
I have a main movie with 2 empty movie clips (loader1_mc and loader2_mc)
I want to load an external thumbnail gallery ("gallery.swf") into loader1_mc (which is fine).
Then, by clicking on the thumbnails, i want to load external jpegs (pic1, pic2, etc) into loader2_mc.
I'm trying to do this using script on the main movie, but can't work out how to.
Help would be greatly appreciated.
View Replies !
View Related
Controlling Movie Clips In A Loaded SWF
I've been away from Flash for awhile.
I have a "master" swf that loads independent swf's inside of it. In the "master" swf I have controls (Stop, Play, FF, RR). These controls work for the main timeline of the loaded swf. The only problem I am having is when I press "STOP", the main timeline of the loaded swf stops, but the movie clips in the loaded swf continue to run.
Does anyone know how to stop all movie clips in a loaded swf?
Any help would be greatly appreciated.
-John
View Replies !
View Related
Controlling Loaded Movie In Emptymovieclip
OK i've been at this for two days now, i'll admit i'm sorta new at this.
pretty simple for the gurus, not so for me.
Ok i have a main. swf (resume.swf) and in that i create an emptymovieclip called "educ_mc" and place it on level 1. In that emptymovieclip I load education.swf.
this is where it all falls apart.
education.swf has buttons to control it's own timeline, and i can't get them to work, i've tried about every combination out there.
can someone please have a look and tell me what i'm doing wrong.
thank you very much
View Replies !
View Related
Controlling A Loaded Movie Clip
Hi,
I have question regarding the control of a loaded movie clip. Here's what I have currently in place...
I have an empty movie clip named "empty_content_top". I have a button in the main movie that loads an swf into the empty movie clip using the following...
on (rollOver) {
_root.empty_content_top.loadMovie("flash/laguna_intro_photo.swf");
}
This movie loads fine and stops at frame 30 as it should. What I would like to do is add control on this loaded movie clip on rollOut. Basically when I roll off of the button in the main movie I would like for the loaded movie to gotoandplay frame 31.
Any suggestions would be greatly appreciated!
Thanks
Van
View Replies !
View Related
Controlling Loaded Movie Clips
I'm a bit stuck on this one:
I'm loading external movie clips which have nested movie clips inside them. I'd like to know if it's possible to send instructions to those nested movie clips.
i.e. _mainMovie.holder_mc.loaded_mc.gotoAnd Play(3);
This doesn't work and every variation I've tried doesn't seem to work, even though you can trace() these nested movie clip instances, they don't seem to respond to ActionScript.
Any help?
View Replies !
View Related
Loaded Movie Controlling Main?
Im making a wee tutorial as part of a computing project and i wanted to know if a movie loaded into either an MC or _root can control the main movie, i.e. a button in the loaded movie that will advance the main movie one frame.
anyone know if this is possible?
View Replies !
View Related
Controlling Loaded Movie Clip
Hi all,
I have a movie that loads other movies into it, one of which is effectively a page footer. As some of my movies are different heights (all pages conform to one of 2 heights), I want the footer to animate it's y position to sit at the bottom of the content.
I am currently loading the footer into _level0, the content into _level1 and the navigation into _level100.
One of the pages (loaded into _level1) requiring the footer to change positon has the following AS on the first frame:
_global.isTall = true; // (For pages where the footer should be at the normal height, this is false)
trace("This "+_global.isTall);
if(_global.isTall = true and _global.wasTall == false){
_level0.gotoAndPlay("TallPage"); // (The animation for the footer to its new position)
_level101.gotoAndPlay("out");
}
The button (at _level100) relating to this page has the following AS attached:
on(release){
_global.wasTall = _global.isTall;
trace("Last "+_global.wasTall);
loadMovie("cars.swf", 1);
}
This works as expected once, but if I press the button twice, while already on the page, the trace tells me that _global.wasTall is false, when previously on the same page it traced true.
Am going about this in a completely backwards way?
TIA,
Paul
View Replies !
View Related
Controlling A Loaded Movie Clip
Hi i am trying to give a command to a loaded into a level mc
to goto a specif frame.
this is the original command that is attach to a Button (without the gotoandstop action)
on (press) {
loadMovieNum("photographers.swf", 2);
loadMovieNum("massimo.swf", 3);
unloadMovieNum(4);
}
i want massimo.swf to load and goto a specif frame in massimo.swf.
I tryed the
massimo.gotoandstop(10);
_root.massimo.gotoandstop(10);
_parent.gotoandstop(10);
and i also tryed to define the mc
var wichcliptouse="massimo";
this[wichcliptouse].stop();
i also used the [ and " on all the _parent actions etc.
So it is very confusing to me , do i have to change the level dept of massimo.swf? please help
thanks a lot guys
max
View Replies !
View Related
Controlling A Movie Which Has Been Loaded From An External Swf
Hi Folks,
I have a Flash page which loads an external movie (swf file) into an object which I have named "body". I then wish to start the movie at a frame other than the first, in this case I have labelled the frame as "history" in the external swf. The swf appears to load fine but it starts from the first frame, not the frame labelled "history". I have placed the following ActionScript on the first frame of an empty layer in the Flash file that contains the "body" object.
Code:
loadMovie("menubot.swf", menuBottom); // Load bottom menu
loadMovie("menutop.swf", menuTop); // Load top menu
_root.section = "thehotel.swf"; // Name of external swf
loadMovie(_root.section, body); // Load swf into "body"
_root.body.gotoAndPlay("history"); // Play loaded swf at "history"
Any idea what might be the problem? Could it be that the swf file is not loaded before the gotoAndPlay function occurs? If so, how can I tell it to wait until the movie is loaded?
I have a similar problem elsewhere but I suspect that if I can get an answer to this problem, I will be able to fix the other problem as well. Thank you in advance.
Glen
View Replies !
View Related
Controlling A Movie Loaded With LoadMovie()
Hey, guys! Stumped again. I am trying to load an external .swf file into a clip instance, so that I can move/resize/etc. with AS. First, I make a new movie symbol called "logo" in my main timeline. Then, I use:
logo.loadMovie("myfile.swf");
That doesn't seem to work. I guess my REAL question is: how do you load an external .swf so that you can tweak it with AS?
THANKS!!!!!!!
Shannon
View Replies !
View Related
Controlling Sound From A Loaded Movie (MX)
Hi All,
I am trying to control the volume of an mp3 that is loaded into my main movie. the volume control is inside a movieclip which is dynamically loaded into the main movie....it won't work. If I place my volume control button in the main movie, I have no problems.
Is this normal...???
...please help!
thanks guys
View Replies !
View Related
Controlling A Loaded Movie Clip
Hi i am trying to give a command to a loaded into a level mc
to goto a specif frame.
this is the original command that is attach to a Button (without the gotoandstop action)
on (press) {
loadMovieNum("photographers.swf", 2);
loadMovieNum("massimo.swf", 3);
unloadMovieNum(4);
}
i want massimo.swf to load and goto a specif frame in massimo.swf.
I tryed the
massimo.gotoandstop(10);
_root.massimo.gotoandstop(10);
_parent.gotoandstop(10);
and i also tryed to define the mc
var wichcliptouse="massimo";
this[wichcliptouse].stop();
i also used the [ and " on all the _parent actions etc.
So it is very confusing to me , do i have to change the level dept of massimo.swf? please help
thanks a lot guys
max
View Replies !
View Related
Trouble Positioning Loaded Movie
Now that I got my swfs for my menu to show up (which link to different scenes in my root movie), I need to put a pointer showing which link it is currently on. What I want to do is load the pointer (a right-facing triangle) as a movie over the menu which is on level2. So I load the pointer movie onto level 4 and I want it to appear in different locations for each link (will be called from a each scene in the root movie). So I have this:
loadMovieNum("pointer.swf", 4);
setProperty(_level4, _x, 50);
setProperty(_level4, _y, 100);
I can't seem to manipulate where the pointer appears on my root movie. If I make a button and put the above setProperty as the action, it works fine, but I want it to appear in the proper place automatically. The pointer movie is 25x25 pixels. I don't want a separate pointer movie for all 15 links, so I'd like to be able to position this one. Thanks.
View Replies !
View Related
[CS3] Having Trouble Unloading A Movie Once It Has Loaded
I am having trouble unloading a movie clip once I have loaded it. I have my main fla movie and within one page (frame) I am loading an external .swf of a calendar application. The problem is once I have loaded that frame, the movie clip shows up on all my other pages on top of the regular content of that page.
I am new to flash and have no idea how to unload it so that it only appears in that frame. I read a few articles on the net and some people are suggesting that I have an unloadMovie() statement in all my links. I have dozens of links and adding this would involve a lot of work. Is there a way I can unload this movie once someone navigates away from that frame?
Here is the code I am using to load the movie:
//on the frame action in the main timeline
this.createEmptyMovieClip("calcontainer",1);
//positioning the emptyMovieClip named calcontainer
calcontainer._x =-350;
calcontainer._y =-160;
//attach the swf file which is in the same folder
calcontainer.loadMovie("calendar.swf");
//that's it
Please help!!!
View Replies !
View Related
Controlling Main Movie From A Loaded Clip
here's my problem: i've loaded a movie clip into my main movie, and when it finishes playing, it needs to tell the main movie to gotoAndPlay. what am i missing? right now, my script is this: "_parent.gotoAndPlay("stopped");" i've tried plenty of different combinations of _parent, _root, etc.
any help would be appreciated.
View Replies !
View Related
Controlling A Loaded Movie Clip On Mouse Out
Button question.
I have 9 buttons, each button loads a movie clip (animation) that corresponds to that button. Each movie clip fades in. I want that movie clip to also fade out on mouse out and I don't know how to do that.
Instead of doing that I have the movie clip unload on mouseout, that's all that I figured out so far. Any help would be much appreciated.
Link that explains this visually
Link to Flash buttons
View Replies !
View Related
|