Newbie PLEASE Help...loaded Movie Controlng The Parent Movie...
I have a main movie .swf that loads another movie like this:
// In A.swf...
onClipEvent (load) {
loadMovieNum("B.swf", 2);
}
The B.swf has a "play" button that I want to play the next scene of A.swf when clicked. I tried to do it like this, but it does not work. What am I doing wrong?:
// In B.swf, "play" button action
on (release) {
_parent.gotoAndPlay("Play", 1);
}
I know there is a simpler way to do this, just by moving the play button to A.swf, but I need to learn how to do this. Please help.
Thank you
FlashKit > Flash Help > Flash ActionScript
Posted on: 10-20-2002, 09:11 PM
View Complete Forum Thread with Replies
Sponsored Links:
How To Control PARENT Movie From Within A LOADED Movie?
Hello there,
Here my situation.
I have one main movie and load in it two other swf movies into two separate levels (level1 and level2). I use LoadMovieNum and everithyng works fine.
problem:
I have a button within the movie, which is loaded on level2 of the parent movie. With that button I want to control the parent movie (level0 or _root) to jump to a specific frame. How could I do this?
I tried:
_root.gotoAndPlay (...);
but it controls only the movie in which the button is placed, not the parent movie.
I also tried:
_parent.gotoAndPlay (...);
doesn't work either.
Any suggestions would be greatly appreciated.
Thanks, and Happy New Year
Metodi
View Replies !
View Related
Actionscript Between Loaded Movie And Parent Movie
i have actionscript in the main movie that loads a new movie into level 3. this script is inside a movieclip which is nested in a few others. i have a button in the loaded movie that i want to control the timeline in the movieclip that originally loaded that movie. this button is also inside a movie clip in the loaded movie.
can anyone help?
thanks!
View Replies !
View Related
How To Control PARENT Movie From Within A LOADED Movie?
Hello there,
Here my situation.
I have one main movie and load in it two other swf movies into two separate levels (level1 and level2). I use LoadMovieNum and everithyng works fine.
problem:
I have a button within the movie, which is loaded on level2 of the parent movie. With that button I want to control the parent movie (level0 or _root) to jump to a specific frame. How could I do this?
I tried:
_root.gotoAndPlay (...);
but it controls only the movie in which the button is placed, not the parent movie.
_parent.gotoAndPlay (...);
and
_level0.gotoAndPlay (...);
don't work either.
Any suggestions would be greatly appreciated.
Thanks, and Happy New Year
Metodi
View Replies !
View Related
Controlling Parent Movie From A Loaded Movie
> This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
--B_3264494197_595630
Content-type: text/plain;
charset="US-ASCII"
Content-transfer-encoding: 7bit
Hi!
I have a swf file which I call "Stage" and it contains 3 scenes.
In scene 1 of Stage, I have another swf- "Info1." loaded on level 10. I know
how to get Info1 to unload and load Info2 but what I am trying to accomplish
is when I click on Info1, it loads Info2 and it also go to Scene 2 of Stage.
Is there anyway I can do this?
I appreciate any input.
Thank you.
K.
--B_3264494197_595630
Content-type: text/html;
charset="US-ASCII"
Content-transfer-encoding: quoted-printable
<HTML>
<HEAD>
<TITLE>Controlling parent movie from a loaded movie</TITLE>
</HEAD>
<BODY>
<FONT FACE=3D"Arial"><SPAN STYLE=3D'font-size:12.0px'>Hi!<BR>
<BR>
I have a swf file which I call "Stage" and it contains 3 scenes. =
<BR>
<BR>
In scene 1 of Stage, I have another swf- "Info1." loaded on level=
10. I know how to get Info1 to unload and load Info2 but what I am trying t=
o accomplish is when I click on Info1, it loads Info2 and it also go to Scen=
e 2 of Stage. Is there anyway I can do this? <BR>
<BR>
I appreciate any input. <BR>
<BR>
Thank you.<BR>
<BR>
K. </SPAN></FONT>
</BODY>
</HTML>
--B_3264494197_595630--
View Replies !
View Related
Communication Between Loaded Movie And Parent Movie?
Hi all
Is it possible to communicate (send variables) between a loadedMovie and its parents movie in flash?
If so, can you give me any tips on how to do this?
e.g.
how could I change the contents of a variable of the parent movie from the loaded movie?
_root.variablename = "duh"; only goes back to the root of the loadedMovie
any ideas?
Cheers
View Replies !
View Related
Newbie: Does An Action Script In A Movie Clip Control Is Parent Scene?
This is probably very simple... but I can't seem to find this looking at the help files. I have a my main flash file (flash 8), that has within it a movie clip that with the menu I created. I want to use this menu to control the main movie... but going to a specific frame. Can this be done... can a movie clip control the playback head of the main movie. I'm using the following but it doesn't work.
on (release) {
gotoAndPlay("Scene 1", "frame 5");
}
thanks
View Replies !
View Related
Loaded Movie Not Seeing Functions In Parent?
Hi,
If I load a movie like so
ActionScript Code:
loadMovie("path/to/my.swf",'target_mc');
It is not seeing any functions in the parent movie that loaded it.
It says they are all undefined.
however the functions are still there (in _level0 ) because I did a trace to test the fact.
Is there some issue where a loaded movie can not call functions of its parent movie?
Is ther a special way to get functions talking to functions when you load a movie? (or is it not allowed due to security issues?)
Cheers,
JV
View Replies !
View Related
Stop Sounds In Parent Movie While Another Is Loaded?
I have a master flash movie that has several different flash movies that can be loaded into a different level so they display on top of the master movie. The problem is, there are buttons with sound effects in the master movie; while another movie is loaded, the buttons below it are still active, so rolling over certain areas of the new movie trigger unwanted sound effects. Is there a way to stop all sounds for the master movie while a new movie is loaded? [It would be great, but not crucial, if this could be scripted within the master movie instead of within the many child movies]. Thanks for any suggestions!
View Replies !
View Related
Problem Telling Parent Movie From Loaded Swf
So here's my plight:
I have a parent movie that loads a swf(events.swf) file into a movie clip with an instance name of container. (container.loadMovie("events.swf");) It loads fine and seems to work great.
events.swf has a movie clip inside of it called design_mc that contains the content. In that movie clip I have a button that needs to target the parent movie and tell it to gotoAndPlay("eventsout"); which is on the _root of the parent movie. However, anything I try will not target the parent movie. I've tried _parent, _parent._parent, _root, and even assigning the parent movie this._lockroot = true; . Nothing seems to target the parent movie. I've searched all over and I can't find a solution to this problem.
View Replies !
View Related
Problem Telling Parent Movie From Loaded Swf
So here's my plight:
I have a parent movie that loads a swf(events.swf) file into a movie clip with an instance name of container. (container.loadMovie("events.swf");) It loads fine and seems to work great.
events.swf has a movie clip inside of it called design_mc that contains the content. In that movie clip I have a button that needs to target the parent movie and tell it to gotoAndPlay("eventsout"); which is on the _root of the parent movie. However, anything I try will not target the parent movie. I've tried _parent, _parent._parent, _root, and even assigning the parent movie this._lockroot = true; . Nothing seems to target the parent movie. I've searched all over and I can't find a solution to this problem.
View Replies !
View Related
Control Parent MovieClip From Loaded Movie
Hello Flashers,
Can anyone help with this?
I want to control a movieclip on the main timeline from a loaded movie but cannot get it to work.
The main timeline contains a movieclip called "Intro". I have also given this an instance name of "Intro"
I want to be able to control automatically which frame this is on from the loaded movie without having to click a button.
In the loaded movie I have tried the following:
_parent.Intro.gotoAndStop(1);
also tried...
_root.Intro.gotoAndStop(1);
and then...
tellTarget("/Intro"){
gotoAndStop(1);
}
But no joy.
If any one can help I would be extremely grateful.
Many thanks,
Chazzer.
View Replies !
View Related
Controling A Parent Timeline From A Loaded Movie
Hi Guys,
I've got a movie that is loading a random swf into a clip.
Each random swf contains a different photograph which pans and then fades out.
What I need to do goto the first frame in the parent timeline and start the whole process again.
My questions are:
A) How do I reference the parent timeline, I've tried:
_parent.gotoAndPlay(1);
but it doesn't seem to work.
B) What's the best way to unload the movie once it's run it's course bearing in mind it uses the following random code to load it:
url = "image" + Math.round(Math.random()*1) + ".swf";
loadMovieNum (url, 1);
thanks in advance
--Neil
View Replies !
View Related
Loaded Movie Acess Parent Variable
i have a main movie which loads 3 seperate swf movies
now i basically want to set some global variables like a url in a variable for example.
How do i set this up so that the loaded movie clips can access these variables too. so i dont have to rewrite these global variables in each swf that is loaded.
Anyhelp much appreciated
View Replies !
View Related
Linereturn Added To Dynamic Textbox When Loaded Into Parent Movie
Hi,
I have a movie that loads text in dynamically, and then a border is drawn round the text using the following code
Code:
setwidth = text_txt.textWidth + 10;
setheight = text_txt.textHeight + 10;
lineStyle( 3, 0x000066, 100 );
beginFill(0xccffff);
moveTo( 0, 0 );
lineTo( setwidth, 0 );
lineTo( setwidth, setheight );
lineTo( 0, setheight );
lineTo( 0, 0 );
[EDIT] - text box is called text_txt, and is positioned at 5,5 on the root of the movie[/EDIT]
This works perfectly when the movie is played on its own.
However, this movie is loaded into a parent movie, and when this happens, an extra carriage return is added at the end of my text. This does not happen all of the time, about 70% of the time.
Can anyone suggest what might be happening to add this extra carriage retun?
Thanks
JennyJ
View Replies !
View Related
Position Of Movie Clip Loaded - Newbie
In Flash MX. I have an empty movie clip whose instance is "window". In the first frame, I have placed an action that states: window.loadMovie("images.swf");
When previewed, it works. I would like however for the loaded movie to fit in the middle of this empty clip. The clip's dimensions are: 500X400 pixels.
Can someone help me figure this out? I know the clip loads at 0,0 in the empty clip, can you modify the insertion point?
Many thanks,
Luke
View Replies !
View Related
Having Problems Loading An External File Into A Blank Movie Clip In The Parent Movie.
alright I have a main swf. and there is an empty movie clip called window1.
I have an external swf that is loaded that contains the menu. i have the clip loaded into level 14.
i am having problems having the menu load an swf into the empty movie clip.
Code:
on (release) {
loadMovie("about.swf", _parent.window1, "GET");
}
in firefox, the code above loads the swf, but it replaces the menu. it does the same thing in ie.
Code:
on (release) {
loadMovieNum("contact.swf", _parent.window7, "POST");
}
and this bit of code makes the swf open in another browser tab in firefox, and in ie it replaces the whole parent movie.
I need the menu and the parent movie to stay intact.
i really need help with this asap.
View Replies !
View Related
Having Problems Loading An External File Into A Blank Movie Clip In The Parent Movie.
alright I have a main swf. and there is an empty movie clip called window1.
I have an external swf that is loaded that contains the menu. i have the clip loaded into level 14.
i am having problems having the menu load an swf into the empty movie clip.
Code:
on (release) {
loadMovie("about.swf", _parent.window1, "GET");
}
in firefox, the code above loads the swf, but it replaces the menu. it does the same thing in ie.
Code:
on (release) {
loadMovieNum("contact.swf", _parent.window7, "POST");
}
and this bit of code makes the swf open in another browser tab in firefox, and in ie it replaces the whole parent movie.
I need the menu and the parent movie to stay intact.
i really need help with this asap.
View Replies !
View Related
How To Keep An Internal Movie The Original Size When The Parent Movie Is Scaled?
What I am trying to do is to make my own scrollbar component. I have made them before but always have to custom build it. What I would like to do is to build a component.
The problem I can't seem to find an answer to is that when you stretch the component in author mode, the buttons (movies) stretch, I don't want them to stretch. Actually, don't care if they stretch in author mode, but what them the original size in runtime.
I have torn apart the original scrollbar, but can't see where it solves that problem..
anyone got an answer to this one?
Jim
View Replies !
View Related
Deleting Child Movie Clips In Parent Movie Clip
ok so I when I click the bt1 I want it to make the home_text visible and remove all of the movie clips within the CreateXMLGallery function. But when I do gallery.removeMovieClip() it only deletes the gallery and none of the other movie clips that are created within the gallery. Any ideas why? here is the code.
HTML Code:
stop();
/***********Button Functions*************/
launch_mc._visible = false;
easeSpeed = 5;
slider_mc.onEnterFrame = function() {
this._x += (xMove1-this._x)/easeSpeed;
};
bt1.onRollOver = function() {
bt1.blendMode = "invert";
};
bt1.onRollOut = function() {
bt1.blendMode = "normal";
};
bt1.onPress = function() {
xMove = bt1._x;
};
bt1.onRelease = function() {
gallery.removeMovieClip();
home_txt._visible = true;
};
bt2.onRollOver = function() {
bt2.blendMode = "invert";
};
bt2.onRollOut = function() {
bt2.blendMode = "normal";
};
bt2.onPress = function() {
xMove = bt2._x;
};
bt2.onRelease = function() {
gallery.removeMovieClip();
home_txt._visible = false;
createXMLGallery(webXML);
};
bt3.onRollOver = function() {
bt3.blendMode = "invert";
};
bt3.onRollOut = function() {
bt3.blendMode = "normal";
};
bt3.onPress = function() {
xMove = bt3._x;
};
bt3.onRelease = function() {
gallery.removeMovieClip();
home_txt._visible = false;
createXMLGallery(interactiveXML);
};
bt4.onRollOver = function() {
bt4.blendMode = "invert";
};
bt4.onRollOut = function() {
bt4.blendMode = "normal";
};
bt4.onPress = function() {
xMove = bt4._x;
};
bt4.onRelease = function() {
gallery.removeMovieClip();
home_txt._visible = false;
createXMLGallery(avXML);
};
bt5.onRollOver = function() {
bt5.blendMode = "invert";
};
bt5.onRollOut = function() {
bt5.blendMode = "normal";
};
bt5.onPress = function() {
xMove = bt5._x;
};
bt5.onRelease = function() {
gallery.removeMovieClip();
home_txt._visible = false;
createXMLGallery(designXML);
};
/**********End Button Functions**********/
/**********Load XML files**********/
var webXML:XML = new XML();
webXML.ignoreWhite = true;
webXML.onLoad = function(success) {
if (success) {
//trace("web XML File Loaded");
}
};
webXML.load("web.xml");
var interactiveXML:XML = new XML();
interactiveXML.ignoreWhite = true;
interactiveXML.onLoad = function(success) {
if (success) {
//trace("interactive XML File Loaded");
}
};
interactiveXML.load("interactive.xml");
var avXML:XML = new XML();
avXML.ignoreWhite = true;
avXML.onLoad = function(success) {
if (success) {
//trace("audio video XML File Loaded");
}
};
avXML.load("audiovideo.xml");
var designXML:XML = new XML();
designXML.ignoreWhite = true;
designXML.onLoad = function(success) {
if (success) {
//trace("audio video XML File Loaded");
}
};
designXML.load("design.xml");
/**********XML files loaded**********/
/**********Create the Gallery*******/
function createXMLGallery(whichXML) {
var gallery:MovieClip = createEmptyMovieClip("gallery", getNextHighestDepth());
gallery._x = 70;
gallery._y = 170;
var numImages = whichXML.firstChild.childNodes.length;
var spacing:Number = 60;
var columns:Number = 3;
for (var i:Number = 0; i<numImages; i++) {
this.proj_name = whichXML.firstChild.childNodes[i].firstChild.firstChild.nodeValue;
this.proj_type = whichXML.firstChild.childNodes[i].firstChild.nextSibling.firstChild.nodeValue;
this.thumbHolder = whichXML.firstChild.childNodes[i].firstChild.nextSibling.nextSibling.firstChild.nodeValue;
this.picHolder = whichXML.firstChild.childNodes[i].firstChild.nextSibling.nextSibling.nextSibling.firstChild.nodeValue;
this.proj_media = whichXML.firstChild.childNodes[i].firstChild.nextSibling.nextSibling.nextSibling.nextSibling.firstChild.nodeValue;
this.description = whichXML.firstChild.childNodes[i].firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.firstChild.nodeValue;
this.proj_link = whichXML.firstChild.childNodes[i].firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.firstChild.nodeValue;
this.thumbViewer = gallery.createEmptyMovieClip("thumb"+i, i);
this.thumbViewer._x = (i%columns)*spacing;
this.thumbViewer._y = Math.floor(i/columns)*spacing;
this.thumbLoader = this.thumbViewer.createEmptyMovieClip("thumbnail_image", getNextHighestDepth());
this.thumbViewer.description = this.description;
this.thumbViewer.picHolder = this.picHolder;
this.thumbViewer.proj_link = this.proj_link;
this.thumbViewer.proj_name = this.proj_name;
this.thumbViewer.proj_type = this.proj_type;
this.thumbViewer.proj_media = this.proj_media;
this.thumbViewer.whichXML = whichXML;
this.thumbLoader.loadMovie(this.thumbHolder);
this.thumbViewer.onRollOver = function() {
var proj_name = this.proj_name;
captionFN(true, proj_name, this);
this.onRollOut = function() {
captionFN(false);
};
};
this.thumbViewer.onRelease = function() {
launch_mc._visible = true;
var url = this.proj_link;
var type = this.proj_type;
var media = this.proj_media;
launch_mc.onRelease = function() {
if (type == "Website") {
getURL(url);
} else if (type == "Interactive") {
trace(url);
fscommand("exec", url);
} else if (type == "Design") {
var shade:MovieClip = createEmptyMovieClip("shade", getNextHighestDepth());
with (shade) {
beginFill(0xFFFFFF, 75);
moveTo(0, 0);
lineTo(Stage.width, 0);
lineTo(Stage.width, Stage.height);
lineTo(0, Stage.height);
lineTo(0, 0);
}
shade.useHandCursor = false;
shade.onRelease = function() {
trace("OUCH");
};
shade.onPress = function() {
trace("OUCH");
};
var imageViewer:MovieClip = attachMovie("imageviewer", "imageView", getNextHighestDepth());
imageView._x = Stage.width/2-imageViewer._width/2-10;
imageView._y = Stage.height/2-imageViewer._height/2;
var closeMovie:MovieClip = attachMovie("close", "closeMov", getNextHighestDepth());
closeMovie._x = 568;
closeMovie._y = 75;
closeMovie._width = 48;
closeMovie._height = 19;
closeMovie.onRollOver = function() {
this._alpha = 50;
};
closeMovie.onRollOut = function() {
this._alpha = 100;
};
closeMovie.onRelease = function() {
imageView.removeMovieClip();
closeMovie.removeMovieClip();
shade.removeMovieClip();
thumb.removeMovieClip();
};
var thumb:MovieClip = createEmptyMovieClip("thumb", getNextHighestDepth());
thumb.attachMovie(url, "urlofmovie", getNextHighestDepth());
thumb._x = Stage.width/2-thumb._width/2-10;
thumb._y = Stage.height/2-thumb._height/2;
} else if (type == "Video") {
fscommand("exec", url);
}
};
var thumbInfo:MovieClip = createEmptyMovieClip("thumbinfo", getNextHighestDepth());
//Description field attributes
createTextField("desc", getNextHighestDepth(), 555, 170, 200, 300);
desc.border = false;
desc.multiline = true;
desc.wordWrap = true;
var my_fmt:TextFormat = new TextFormat();
my_fmt.font = "Verdana";
my_fmt.size = 12;
my_fmt.align = "justify";
desc.text = this.description+"
Media: "+media;
desc.selectable = false;
desc.textColor = 0xffffff;
desc.setTextFormat(my_fmt);
//End description field attributes
thumbInfo.loadMovie(this.picHolder);
thumbInfo._x = 315;
thumbInfo._y = 200;
};
}
}
/**************End Gallery*******************/
View Replies !
View Related
Button Inside Of Movie, Want It To Control Parent Movie
Hi, i tried finding this on your message board but couldn't find anything. Im trying to make a flash movie and im stuck on something that im sure is easy for a pro flash mx user. I have a flash document. There is a movie inside it. The movie has a button. I want the Button inside that movie to controll the flash document its in and make it go to frame 5. Could anyone try to help me out. I would really appreciate it. Im working in Flash mx
I thought this scrip would work.
on (release) {
_parent;
gotoAndPlay(5);
}
But it doesn't.
Please help
Thanks
Frank
View Replies !
View Related
Load Movie Larger Than The Holders Parent Movie?
I must be an idiot today. I have a main movie that's 750x550, it has an empty mc on it that loads external swf's, no big deal. Well, one of my swf's is 750x950 and when it loads into the empty mc, it only displays down to the size of the main movie (750x550), and does not show the additional 400px!
Can't say I've ever tried to load a larger movie into a smaller one before but this situation has never been needed, now I need it.
I tried to scale the mc after loading but it still doesn't seem to show. Can this even be done?
Thanks, I really need to figure this out today.
View Replies !
View Related
Loading A Grandchild Movie Into A Child Movie From Parent
hello - Can I load a grandchild movie from the parent? Here is what I have: I have a main move, a child movie and a "grand child" movie.
I want to click a button on the parent ( which is my root) and load the child into a container on the main, then automatically load the grandchild into a container in the child movie. I dont want any scripting in the child movie though. I want the entire thing to be handled from the main root movie.
Can I do this an how? Ive tried:
var mcl:MovieClipLoader = new MovieClipLoader();
mcl.loadClip("child.swf",childHolder);// childHolder is a container in the main.swf
mcl.loadClip("grandchildMovie.swf",grandchildHolde r);//grandchildHolder is a container in the child.swf.
Any advice would be greatly appreciated.
Im running flash 9 from cs3 web bundle.
View Replies !
View Related
Accessibility Tabbing From Parent Movie Into Child Movie
Using JAWs, I can tab around in either parent or child movie, but can't get the tab to move from parent movie into child movie.
After tabbing to instance's tab 3 in parent movie, I can't get the tab key to go to instance's tab 4 in child movie. Accessibility panel check boxes for both movies are all checked and the appropriate actionscripting is in the first frame of both movies.
Any ideas???? Thanks.
View Replies !
View Related
Load Parent Movie From Within A Movie Clip
Hi All,
I have a button on my main stage that loads an external swf inside a movie clip.
This movie clip is just a container that loads an external movie depending on which button is clicked on the main stage.
Does anybody know how I can go to a different frame (or scene) of my main movie (my main fla) by clicking a button from inside the movie clip?
I keep starring at my actionscript code and all i have so far is:
on (release) {
loadMovie("", "0");
}
Help Much Appreciated!
Rick
View Replies !
View Related
Fade From Child Movie To Parent Movie
Ok.. so - I have a parent movie which has loaded a second movie at level 1. Is there a simple way to have the following occur:
- hit a 'home' button within the second movie so that it plays around 20 frames to the end of it's timeline WHILE it goes to and plays from a specified frame in the parent movie?
What I'm after is a transitional fade from the child movie back to the parent; a sort of fade down of the child and fade up of the parent. At the end of the child fade it will unload itself.
Any suggestions? I need a quick solution!
Many thanks!
tonto
View Replies !
View Related
Loading Movie Clips Within A Parent Movie
hi,
currently im building a flash photo album using MX 2004. I completed the album using a single movie which contained all of the pics for 4 different sections and which produced a 1.0Mb swf. howver, I would like to create a different movie clip which loads into a designated location for each section so that i can decrease the initial load time of the parent swf. any help (ie. explanatioin of code and process) would be greatly appreciated. I tried to use the Loadmovie code but to no avail. help? thanks,
gnice
View Replies !
View Related
External Movie Control Parent Movie...
I have a movie, with a basic menu in it. when you click a button it changes from white to blue and an external swf is loaded onto the stage, it plays and then stops showing the user a new button. When you click this new button the external swf plays a little shutdown animation.
This all works fine. But i want the new button, when released, to tell the original menu button to change from blue back to white.
The original menu button is called "contact". Am very stuck. _root.contact.gotoAndStop(1); doesnt work.
Any help would be cool.
steven.
View Replies !
View Related
Linking From Child Movie To Parent Movie
Hey there,
So, I have a little movie where I am trying to link from a child movie clip that is being loaded into a parent movie click. The way this is configured is that I have the parent movie clip, I choose a page and the page is being loaded into the loader. Now once the child movie loaded in the loader the navbar is no longer in the parent movie but in the child movie and I want to know how to control the parent movie with the child movie navbar. I want to send the parent movie to a different frame in the movie to either load the home page content or to load a different page...
I have been using this.
In my child movie i have 2 links and one transition so I am sending a variable and the variable should be loaded on the last frame of the transition:
Code:
Links:
on(release){
page = "bag";
gotoAndPlay("close");
}
Last frame:
MovieClip(parent).gotoAndPlay(page);
also tried
_root.gotoAndPlay(page);
and that is not working, now i am really really new at ActionScript and just dont get why it isnt working...
Help guys please,
Nick
View Replies !
View Related
How To Control A Movie Symbol In A Movie Which Is Loaded Intro Another Movie?
HI guys,
I need help with some script. I have a movie, which is my main movie, and to which I load all other movies, like sound clips, other related movie which load on request. the problem is with the sound movie which I created, it's a separate file and it has a sound loop which starts and then if an button is clicked it stops, and then starts again if the buttons is pressed again. Also in this sound movie I have another movie symbol with audio bars animation which plays only when the sound is playing, and then it stops when the sound is stopped. It works fine with this code:
on (release) {
if (i==1) {
s.start(0,999);
i = i*(-1);
tellTarget ("/sound_bars") {
gotoAndPlay (1);
}
} else {
s.stop();
i = i*(-1);
tellTarget ("/sound_bars") {
gotoAndPlay (10);
}
}
}
...on it's own, but when it is loaded into another movie it works only partially, the sound stopps but the audio bar animation which you see here as instance name "sound_bars" is not working, it keeps playing even when the button is pressed. but like I said the sound stopps. So what I need to know is how to control that movie symbol which is inside a movie called soundloop1, which is loaded into my main movie. I know it's a level / tell target issue, but I just cannot figure out how to control it from another movie. If you can help me that would be greatly appreciated Thanks.
--
elfe.
View Replies !
View Related
NEWBIE Needs Help - Movie In A Movie/animation/morphs
Hi all,
Ok, I am a Flash NEWBIE... I am taking a class trying to learn this program and am having great difficulty. I have an assignment due tonight (3rd assignment), and I'd like some help if ya'll don't mind. I've attached my .fla file so you can see what I've done so far. Here are the instructions for the assignment:
Quote:
1. Create an animated logo that is a circle that shape morphs into the letter S over 10 frames
2. Place this animation inside a Movie Clip
3. Add the Movie Clip to the Movie.
4. Animate the Movie Clip within the parent movie so that it moves from the left of the screen to the right over 100 frames (i.e. it's at the left of the screen at frame 1, and at the right at frame 100)
5. Add two buttons to the parent movie that appear for the entire length of the movie. They should be labelled "Stop" and "Play" and must have different Up, Over and Down state appearances
6. Add scripts to these two buttons to stop and play the parent movie.
Also, just so you know the final creation should look something like this (which is from another student in class):
http://ceweb.uml.edu/bsaur565/flash/assignment-3.html
Now, I've made the morph, but am stuck on step 2. How do I place this animation INSIDE the movie clip?
Do I have to copy and paste the 10 existing frames into a new layer, creating a new symbol (movie symbol) in that new layer?
Then, do I return to the "scene" and drag the movie symbol from the "library" into the scene? If so, where do I drag it to, does it matter?
Let's start with that and I'll move on as I go. If anyone can help, I'd appreciate it.
The file is attached as a zip.
Thank you,
Chris
PS. I'm using Flash MX 2004 Professional if that matters.
View Replies !
View Related
Loaded Movie Clip To Talk To The Movie That Loaded It
Trying to get a loaded movie clip to talk to the movie that loaded it, but can't figure out the right ActionScript... . i'm using:
on (release) {
tellTarget ("home.swf") {
gotoAndPlay("blank");
loadMovieNum("viewer.swf", 2);
it ain;t workin, i've also tried _parent &
_root - in replace of 'home.swf' to no avail, much thanks to anyone that can help!!!
View Replies !
View Related
Passing Variables From Loader Movie To Loaded Movie, Flash Satay Method
I like the Flash Satay method for its clean integration and standards-compliance, however there are still some things I can't manage the way I want to... I'm trying to implement a working method to pass variables from the loader movie to the loaded movie. As you may know, the Flash Satay method uses a small SWF file which uses a bit of code to load the desired movie, all in order to allow IE browsers to retain streaming capabilities when rendering Flash content through the <object> tag. Basically it's just a small file with the following AS2 code in the first frame:
loadMovieNum(path, 0);
This means the c.swf file is ENTIRELY replaced at level0 with the desired movie, and any variables that were passed to the loader movie turn to smoke.
I'm trying to generate a querystring using all other variables the loader movie receives, and pass that along with the filename for loadMovieNum. This seems to be working very well in most cases, but whenever there's a URL in the querystring (even URLEncoded), BAM, everything turns to lowercase... EVERYTHING... here's an example:
c.swf?path=banner.swf&myLifeSUCKS=true&Icantbelieve=ITSNOTBUTTER
this successfully loads banner.swf in place of c.swf, with the following correct querystring appended
banner.swf?myLifeSUCKS=true&Icantbelieve=ITSNOTBUTTER
If I try:
c.swf?path=banner.swf&clickTag=http://www.myurl.com/&ANOTHER=variable
this successfully loads banner.swf in place of c.swf, but I end up with lower-cased querystring (all of it!!):
banner.swf?clicktag=http://www.myurl.com&another=variable
what happens to my capital letters?? I need these to remain case-sensitive as there is no saying how the loaded movies are programmed. The generally accepted convention for "clicktag-enabled" banners is to use _root.clickTag as the link button's URL...
Even URL-encoding the URL doesn't change this
For reference, here's the HTML snippet and ActionScript 2 code I use:
---- html ----
<object type="application/x-shockwave-flash" data="c.swf?path=banner.swf" width="728" height="90">
<param name="movie" value="c.swf?path=banner.swf" />
<param name="FlashVars" value="clickTag=http://www.google.com/" />
</object>
Attach Code
----c.swf----
var queryString:String = "";
for (var i in _root){
if (i != "path" && i != "queryString" && i != "$version"){
if (queryString) { queryString += "&"; }
queryString += i + "=" + _root[i];
}
}
if (queryString != "") {
loadMovieNum(_root.path + "?" + queryString,0);
} else {
loadMovieNum(_root.path,0);
}
Edited: 10/01/2008 at 10:40:48 AM by Inzoum
View Replies !
View Related
Control The Play On The Main Timeline From Within A Loaded Movie (not A Movie Clip)?
Question... I have a movie (main movie) that loads another movie (movie 2) automatically. Movie 2 contains a button that loads yet another movie (movie3). Now I’m having trouble with this next part... When movie3 loads I want "main movie" to stop where it’s at in the timeline and stop all other loaded movies until the user clicks another button where upon movie 3 will go away and "main movie" will resume. Movie 2 is like the paper clip guy in Word and movie 3 is my help movie. Therefore, it can be accessed at any point during the main movie and I don’t want to use a goTo command to jump to a frame label or scene. Does anyone have any idea how to control the play on the main timeline from within a loaded movie (not a movie clip)?
View Replies !
View Related
|