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




Movie Clip.. Inside Movie Clip



I have a movie clip... that has a movie clip inside it...

The nested clip is only about 10 frames long and has a stop action at the end of it.

When I preview the scene in flash it comes to the end of the animation and stops.... works fine.

But when I publish the movie the nested clip just loops and loops and loops....

Any tips?


thanks



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 11-22-2004, 02:59 PM


View Complete Forum Thread with Replies

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

Using A Movie Clip Inside A Movie Clip To Start A Frame Of An MC Inside A Movie Clip
Situation:
I have a movie clip inside a movie clip with a button inside of it.

This button on release goes to a different movie clip(svideo) in a different frame on the maintime. This movie clip has a movie clip(portfolio) inside of it.
Okay: I use an absolute path on the aforementioned button
on release
_root.svideo.portfolio.gotoAndPlay(60);

But, for some reason Flash won't go to frame 60 of the portfolio movie clip that is inside of the svideo.

I have tried numerous variations on reaching frame 60 of portfolio. Like going to the maintime line and going to the portfolio MC. Also, portfolio and svideo are the instance names and not the name of the actual movie clip.

If anybody could help, I would appreciate it. Thanks.

Movie Clip Buttons Nested Inside Movie Clip Dont Work
Hi people!
im having a problem here.

in my first frame i have a movie clip named "menu_mc".
i have this AS for this movie:

Code:
this.menu_mc.onRollOver = function() {
menu_mc.gotoAndPlay(8);
}
this.menu_mc.onRollOut = function() {
menu_mc.gotoAndStop(7);
}

thats working ok, the menu_mc plays on rollover from frame 8 till frame 12 where stops.
On frame 12 (this is inside the menu_mc movie clip) i have another movie clip, named button1_mc.
and also i have AS controling that MC:

Code:
this.button1_mc.onRelease = function() {
getURL("index.htm", "_self");
}


The problem is that when i rollOver on menu_mc it work fine and the button1 appears, the problem is when i try to click button1...
doesnt work.

the swf you can see it on www.wt.com.mx/menu.swf
can anybody help me please?
what im doing wrong?
or what other ideas can you give me so i can make that work.

thanks!

How To Manipulate A Movie Clip On The Main Stage From Inside Another Movie Clip
I have a button inside a movie clip, and I want it to work that when you hit the button, a different movie clip will go to frame 5. anyone know how to help? I think it has something to do with which level it is on, but I can't manage to figure out anything else.

A Button Inside A Movie Clip, Within A Movie Clip, Calling Another Scene:
Is it even possible?

I have been trying to do it for the last few days for a site I am working on.

I have done searches in many forums and it's foolish looking for an answer that way, because quite frankly every thread I opened was something to do with LoadMovie or GetURL, etc.

What I have right now is on the button in my Menu Bar Movie Clip:

on (release) {
gotoAndPlay(285);
}

Which plays a fancy little animation in the movie clip and then on the last frame of that movie clip I had:

gotoAndPlay("Contact", 1);

Which is the Scene for the "Contact Us" Scene named "Contact"

One would think that it would load up the scene and play at frame 1, however all that happens is it reloads the movie clip of the "Menu Bar" at frame 1 and starts over, not even realizing what I asked.

Anyways, I figured there's a script or something that tells it to look outside of the movie clip or to the _Root, or whatever.

If someone has a solution, it would be greatly appreciated.

Sorry I have no example to show, since I have yet to upload it. (It's my company's web site, and I don't think customers would want to see some half-arsed web site that's not complete.

Thanks in advance.

Create An Empty Movie Clip Inside An Existing Movie Clip?
I'm making sort of a tabbed navigation scheme by reading the data for each tab in from an XML file. What I'm wondering is if it's possible to use createEmptyMovieClip() to make a new empty movie clip inside a movie clip that already exists on the stage.

Using
ActionScript Code:
m_anchor.loadMovie(bg_image);
works as I would expect. bg_image is just the relative path to an image file, and m_anchor is a movieclip already on the stage. However, doing a similar thing:
ActionScript Code:
m_anchor.createEmptyMovieClip("textbox", this.getNextHighestDepth());
and then drawing a shape (a rounded rectangle, which I then want to put text on top of) doesn't work. It works if I just say "this.createEmptyMovieClip" instead of attempting to create it inside the m_anchor clip, but if I do that, the "textbox" is created at the root level and I can't unload it along with everything else in the "m_anchor" clip. Is it possible to create a new empty movie clip inside of one that is already on the stage?

Thanks!

Problem Getting Movie Clip Inside Of Movie Clip To Face Mouse
I used the code below to make a movie clip face the mouse, it works when I use it on a movie clip that's not embedded in another movie clip, but when I used it on an embedded movie clip, it's axis seems to change.









Attach Code

var stickGun:MovieClip = this.stick_holder.stickGun_mc;
//stick_holder.stick_mc.stickGun_mc

stage.addEventListener(Event.ENTER_FRAME, onMove);
//stick_holder.stick_mc.stickGun_mc.addEventListener(MouseEvent.MOUSE_MOVE, onMove);

function onMove(event:Event):void {
// get the radian value of the angle between the clip and the mouse...
var myRadians:Number = Math.atan2(mouseY - stickGun.y, mouseX - stickGun.x);
// convert it to degrees...
var myDegrees:Number = Math.round((myRadians * 180 / Math.PI));
// get the horizontal and vertical distance between the clip and the mouse...
// rotate the clip toward the mouse...
stickGun.rotation = myDegrees;
}

Placing Actionscript Movie Clip Inside A Movie Clip Symbol
I'm loading an external image into an empty actionscript movie clip (holder1) using MovieClipLoader(); on frame one of my movie and is invisible. Then when the movie plays, there is an empty movie clip symbol (image1_mc) that is placed manually on the stage within another movie clip symbol (flash_mc), and is also on a bottom layer of a mask layer which is animated. Is it possible to place "holder1" inside of "image1_mc" so that I can treat it as if it were an embedded image? In other words, have the image in "holder1" inside of the manually placed movie clip symbol "image1_mc" so that I can use it like a regular symbol on the stage?

Control Movie Clip In Container From Button Inside Other Movie Clip
There are three movie clips involved in this question.

1. A main movie clip that has a target empty movie clip where an external swf loads.

2. A menu movie clip that is built from button symbols and has its own timeline.

3. The external movie.

When a user clicks on the menu, the external swf loads into the empty movie clip target.  This part works fine. Here's the code:
on (release) {    
    loadMovie ("Lesson1.swf", "_root.container");
}

I want to use one external swf for all lesson, versus 20 external swfs. The problem I'm having is controling at what frame the external swf loads.  I've tried adding --gotoAndStop (15) -- for example. I've also tried adding, gotoAndStop "_root.container" (15), but that doesn't work either. The gotoAndStop action ends up controlling the menu movie clip timeline instead of the movie loaded into the container. I figure this is because the menu mc has "embedded" buttons and it's own timeline.

Any  help you can offer will be much appreciated.

Thanks
Sheila



Creating A Button To Open A Movie Clip From Inside A Movie Clip?
I'm using a hexagon menu to display some images. One image is placed on each slide of the hexagon menu (which can then be rotated left and right to see other "slides").

What I want to do now is to be able to click on the object (image) as a button and for it to go to another scene which shows the image blown up and some description next to it (which is another movie)

I have tried the following which doesn't seem to work:
Created an invisible button (or choosing the image as a button) and having

on(release) {
gotoAndPlay("scene 5", 1);
}

this doesn't work when I use it over the hexagonal menu, but when I move the button to somewhere else on the screen (not over the movie) it works.


Please can someone help with this - Ive been working on it flat out over the weekend and desperately want to make it work. any ideas would be appreciated!! thank you

Loading External Movie Clip With A Button Inside Another Movie Clip Help
Hi,

I am working on a scrolling thumbnail movie clip, that when you click on the thumbnail button inside the movie clip it will load an external movie clip. I have an empty movie clip on the main stage, and have been trying all sorts of code, but for some reason it doesn't like that I am inside a movie clip using buttons. It can't seem to find the external swf.

I have tried:

on (release) {
loadMovie (ithink.swf, "loader");

and

on (release) }
if (firstTime == true) {
loadMovie("ithink.swf", _root.loader);
firstTime = false;
} else {
_root.clicked = "ithink.swf";
_root.loader.gotoAndPlay("goback");
}
}

and so far nothing, for some reaosn when I click on a button outside of the movie clip with the above code it loads... and than the other works too, but if I click on the buttons inside the scolling movie clip first they won't work.

Any suggests or ideas!!?

I would really appreciate it... I am beyond frusterated!!

A Button Inside A Movie Clip To Move Another Movie Clip
I'm building a web page and I have a button that I need to make two movie clips play. The button is inside one movie clip and in addition to it playing I want it to make another movie clip play. It doesn't seem to recognize the movie clip target names. Any help as to how this can be done would be much appriciated.

Thanx

Controlling A Movie Clip From A Button Inside Another Movie Clip.
I'm confusing myself just typing this.

I'm working on an interactive map. The map itself is a MC inside a container, but also contains all the buttons as well. On my main stage(scene 1 and menu) is a window(MC) that will show info and photo of building. Now if I create a button on the main stage I can control the movieclip(images) easily. But when I use a button from inside map(MC) it doesn't seem to recognize the (images.gotoAndStop(frame))command.

I'm just not sure what to put in order to be able to control the MC's timeline from within that map movieclip.

Sorry if this is confusing. Of course at the same time it might be a simple solution for most people here as well. At least that is what I'm hoping anyways.

Making Another Movie Clip Close From Inside A Movie Clip
I want to make another movie clip close that is open when this other movie clip comes up. I put on the first frame of this actionscript:

_root.detail.gotoAndPlay(19);

This works, but only if the other clip is already open. If not it just shows the other clip closing even though it isn't open. Is there a way to do something like...

If _root.detail is on frame 8 then _root.detail.gotoAndPlay(19);

Obviously thats not the action script but it's what im trying to express.

"detail" is the movie clip property name of the clip I'm trying to close.

Thanks for your help!

Creating Empty Movie Clip Inside Movie Clip
Hi,
i'm using this script to make an empty movie clip
_root.createEmptyMovieClip

but i am trying to make this empty clip from inside a movie clip. Not from the root time line. HOw do i go about this?

Assigning Function To Movie Clip, Inside Of Movie Clip Help
good morning all,
I have a quick question which has been bugging me this morning. Basically I am trying to assign a function to a emtpy movie clip, which loads a external
.swf, which it self is inside a large, emtpy movie clip.


Code:
//---------------------------------START FUNCTION---------------------------------
//loading of "product_window" - main banner of the different products
function product_window_load() {
_root.createEmptyMovieClip("product_section", this.getNextHighestDepth());
// this creates the movie clip in which contains the seperate "product_window"'s


//---------------------------------START LOOP---------------------------------
for (i=1;i<=_root.product_window_No;i++){
//function to call up loading
_root.product_window_name = "colour"+i+".swf"
//this defines the name of ".swf" of the "product_window" being loaded
_root.product_window = "_root.product_window"+_root.product_window_id;
//defines name of "product_window"
_root.product_section.createEmptyMovieClip(_root.product_window, i);
//creates blank movie clip which will subsequently load the individual product .swf's
_root.product_section[_root.product_window].loadMovie(_root.product_window_name);
//loads the ".swf" file, the name is determined by the variable "_root.product_window_name"

//----------------------START FUNCTION----------------------
_root.product_section[_root.product_window].onRollOver = function () {
trace ("onRollOver called " + _root.product_window);
};
//----------------------END FUNCTION----------------------
_root.product_window_id ++ ;
//increases the value of "product_window" by 1

Code:
_root.product_section[_root.product_window].onRollOver = function () {
trace ("onRollOver called " + _root.product_window);
};
does not work
but if i just target the the main empty movie clip which contains all the other ones, it works fine.

Code:
_root.product_section.onRollOver = function () {
trace ("onRollOver called " + _root.product_window);
};
I know i can proably get this to work using duplicate movie clip and cretaing a physicl movie clip on stage, but i was curious whether i can assing a function to a movie clip inside a movie clip

any help on this would be great
thanks
-smokey

ps. i know its not the smoothest coding, but its been like 3-4 years since ive been using flash

Place Movie Clip Button Inside Movie Clip
Hi, I have searched the forum but cannot find exactly what I am looking for.
I have a movie clip of a map that I can zoom and drag and what I would like to do if possible is to have several other movie clips inside the first movie clip which when clicked go to and play at a given frame number on the timeline where a photo is displayed.

The 'several' movie clips will be small flashing red circles. Each one represents a place of interest and when clicked will display a photo of the place of interest.

Movie Clip Inside A Movie Clip Not Reacting When Pressed
Hi,

I am a beginner and I don't know how to make a movie clip that I attached to another movie clip become activated. I am not sure if it has to do with the depth issue, which I don't completely understand.
But this is what I want. I have placed a movie clip (a rectangle shape) on the stage and linked that movie clip to an actions script file. In that file (Button_group.as) I dynamillycally place another movie clip (Email_btn) which is linked to another actionscript file called "Email_btn.as" inside the area of the rectange movie clip (Button_group).
Inside the "Email_btn.as" class I specfied an "onPress " function that prints something. Now when I play the movie and I press inside the "Email_btn" movie clip nothing happens.

So the question is how do I specify that I am "pressing" the "Email_btn" (inside clip) area and not the parent "Button_group" area?

This is snippet of the code of Button_group that dynamically places the inside movieclip "Email_btn":

class com.macromedia.flashvideogallery.Button_group extends MovieClip
{

var email;

function Button_group()
{
init();
}

private function init():Void
{
trace ("MALENA");
this._alpha = 0;
email = attachMovie("Email_btn", "Email_btn1", this.getNextHighestDepth(), {_x: _parent._x , _y: _parent._y } );
email._visible = false;

//_parent.email_btn.onPress = function () {
//trace ("send email");
//}
}

thank you
-Malena

How Can I Load An External SWF Into A Movie Clip That's Inside Other Movie Clip?
Hi.

I creating my first flash (actionscript 3.0) website but I'm stuck with a visual effect I want to create.
I have a window on my website called contentWindow. Every time you click a button this window is supposed to leave the stage, load the requested content and return to the stage.
The sliding window is a movie clip with 83 frames, 21 to enter the stage, 21 to leave the stage again, 20 for nothing (its just to simulate the loading time) and 21 to return to the stage.

Now my goal is, when the user clicks on a navigation button, the window exits the stage, loads an external SWF with the content, and then returns to the stage.

I've the "window" movie clip with an instance name of "contentWindow". Inside there is another movie clip with an instance name of "contentLoader". The content that the user requested should appear inside the "contentLoader".

Now, when the contentWindow leaves the stage, I get this error message:

quote:TypeError: Error #1009: Cannot access a property or method of a null object reference.
at rwd_fla::MainTimeline/trigger()

If I switch "contentWindow.contentLoader.addChild(navLoader);" for "contentWindow.addChild(navLoader);" it works fine, but the external SWF doesn't move with the window.

How can I load an external SWF into a movie clip that's inside other movie clip?








Attach Code

//stops playback after the intro
stop();

//loads a loader with the "inicio.swf" file
var navLoader:Loader = new Loader();
var inicio_url:URLRequest = new URLRequest("inicio.swf");

//event listeners for the buttons
inicio_btn.addEventListener(MouseEvent.CLICK, navInicio);
wdesign_btn.addEventListener(MouseEvent.CLICK, navWDesign);
foto_btn.addEventListener(MouseEvent.CLICK, navFoto);
model_btn.addEventListener(MouseEvent.CLICK, navModel);
servicos_btn.addEventListener(MouseEvent.CLICK, navServ);
contactos_btn.addEventListener(MouseEvent.CLICK, navCont);

//functions to every button where the navLoader variable is defined
function navInicio(event:MouseEvent):void
{
navLoader.load(inicio_url);
contentWindow.play();
addEventListener(Event.ENTER_FRAME, trigger);
}

function navWDesign(event:MouseEvent):void
{
contentWindow.play();
addEventListener(Event.ENTER_FRAME, trigger);
}

function navFoto(event:MouseEvent):void
{
contentWindow.play();
addEventListener(Event.ENTER_FRAME, trigger);
}

function navModel(event:MouseEvent):void
{
contentWindow.play();
addEventListener(Event.ENTER_FRAME, trigger);
}

function navServ(event:MouseEvent):void
{
contentWindow.play();
addEventListener(Event.ENTER_FRAME, trigger);
}

function navCont(event:MouseEvent):void
{
contentWindow.play();
addEventListener(Event.ENTER_FRAME, trigger);
}

//the function that triggers when the contentWindow leaves the stage
function trigger(event:Event):void
{
if (contentWindow.currentFrame == 43)
{
contentWindow.gotoAndPlay(44);
contentWindow.contentLoader.addChild(navLoader);
removeEventListener(Event.ENTER_FRAME, trigger);
}
}

























Edited: 06/13/2008 at 06:03:27 AM by Rui Marto

Movie Clip Inside Movie Clip - Control From Timeline
hello all.

i have a movieclip (instance name: mov1) with a movieclip (instance name: mov2) inside of it.

mov1 is on my main timeline. I want to control mov2 from the main timeline. how can i do it?

i am trying what i thought would work which is
_root.mov1.mov2.stop();

Movie Clip Inside Movie Clip Link To Url Issue
I have created a scrolling row of banner ads that reacts to the mouse. I had some help getting the images to load in using an xml document and also to pass the url from the xml. My problem is the button funtion is blocked as the button movie clips need to be placed inside the scrolling movie clip in order to get it to scroll. Is there anyway I can get these buttons to work? I have attached my fla, please help!

Thanks for your time,

Glenn

A Movie Clip Inside A 2nd Movie Clip Colliding With 4th Movie Clip That's In The 3rd
sorry if that sounds a bit odd, this is really a simple problem that i can't seem to nail.

Can u please give the the hittest that shows when a movie clip collides with another regardless of their level.

Playing Movie Clip From Inside Movie Clip
Hi all
I have a button which you click on and it makes a window slide onto the stage. Inside this movie clip I have another button. When I click on this button I want another mc to slide onto stage. Everything works fine except for the button inside the first mc. Any suggestions? Here is the script I have on the button that doesn't work
on(release)
photoslider.gotoAndPlay(2)
I've also tried (with no luck)
on(release)
_root.photoslider.gotoAndPlay(2)
and _parent.photoslider.gotoAndPlay(2)

Hope you guys can help me out!

Thanks

Movie Clip Inside Movie Clip, Not Working Right....
hey,

I am making a button...
This button contains two movie clips, Both for roll over.

One is a arrow animation (>>>) looks like that, when roll over it's soposto light up the arrows one by one. At the end of that movie clip I have "goto and play(1)"

Another one is basically a box, that "highlights" the text, this one has a stop at the end of it.. as I want it to fade in, and stop when rolled over.... (which reminds me I have to make a fade out MC to use for roll out... anyways)

Now the problem is, when your not rolled over the button it should just show the outline of the arrows (>>>) as a img is there, and when ya roll over the animation should play highlighting them. The one Arrow MC don't work, it stays with one (the first) arrow highlighted... and won't move on roll over...

So whats wrong, would it help if I uploaded the file for you to DL and look at?

Ian

Playing A Movie Clip Inside A Movie Clip
is there a command i can use to activate another movie clip from within a movie clip?

thanks

How To Load A Movie Clip Inside A Movie Clip
i acknowledge when u place a loader on the scene of a movie clip, to load a movie you do:

on(release){
_root.nameofmovieclipinstancename.loadMovie("nameo fmovie.swf");
}

but what do u do when ur loader is on a movie clip?



thanks, carmen

[F8] Play Movie Clip Inside Another Movie Clip
Hi,

I have a movie clip inside another mc and I want to make the mc inside to play once the user rolls the mouse over it. The problem is that when user rolls mouse over, they can't reach the inside mc because they just roll over outer mc.

Is there any way to do this?
(tried:

Code:
outer_mc.inner_mc.onRollOver = function(){
outer_mc.inner_mc.play();
}
but did not work)

Any help will be very much appreciated.
E

Replacing Movie Clip Inside A Movie Clip
well im doin a random bouncy ball thing for people to mess around wit while ma site is loadin, aan i want to make it so that wen u click on it, the colour of the ball changes, but i want it to be seemless so th animation dusnt jump back to the start. The ball is a stationary movie clip on its own inside a clip with it bouncing. plz help if u understand!

X Position Of Movie Clip Inside A Movie Clip
Can you check the ._x position of a movie clip that is inside another movie clip relative to the main stage instead of it's parent movie clip's?

[MX] Movie Clip Inside Movie Clip Problem
Hi, I have an animated movie clip, and on a certain event, I need the ENTIRE movie clip to perform another tween. This seems like the easiest thing, and I can make the tween work before I compile the whole thing, but then it won't play. Am I just retarded? I'm sorry I'm so brief I have just become so frustrated I can't think straight anyway.

Button(movie Clip) Inside A Movie Clip
Hey guys,

I had 3 buttons in the main movie which was working fine.

an external actionscript file was responsible for the buttons' functions

playPause is the instance name of the button(made as a movie clip)


ActionScript Code:
playPause.onRollOver = function()
{
    if(this._currentframe == 1) this.gotoAndStop("pauseOver");
    else this.gotoAndStop("playOver")
}

What I wanted to do is create another button(instance name speaker) on the main movie that when a user rolls over with a mouse, it'll show the 3 buttons. Basically, a button(movie clip) in a button(movie clip).

I have this movie clip working fine but none of the action script on the original buttons are working (of course because target changed).

I have tried the following and it will not work (in external .as file)-


ActionScript Code:
speaker.playPause.onRollOver = function()
{
    if(this._currentframe == 1) this.gotoAndStop("pauseOver");
    else this.gotoAndStop("playOver")
}

any suggestions? thanks in advance

Movie Clip Inside Animated Movie Clip
Hi guys

I have been working on this problem for 2 days and totally stumped, hope someone who is more of an expert than me can help.

My problem is I have an animated movie clip (mcBlog) which works using this actionscipt

stop();

this.onEnterFrame = function(){

if(rewind == true){

prevFrame();

}

}

this.onRollOver = function(){

rewind = false;
play();

}

this.onRollOut = function(){

rewind = true;

}

This script works. mcBlog is a tab which animates out on mouse over and rolls back on mouse roll out.

When the tab is out I have another movie clip (mc1) inside mcBlog which links me to another page on my site but mc1 does not work.
The mc1 is visible but doesn't register when tested, I have tried
mcBlog.mc1.onPress = function() {

getURL("mysite");

}
in a layer outside mcBlog but no joy.
If anyone could shed some light on this I would really appreciate it.

THANKS

Button(movie Clip) Inside A Movie Clip
hey everyone, using flash 8 here,

here is my problem.

on frame 1 line 2 i have a button ( bt1_btn ) and added this code on frame 1, line 1
Code:
stop();

bt1_btn.onRollOver = function() {
_root.gotoAndPlay("animation"); // frame 2
};
which works fine,

on frame 2 line 2 i have this movie clip ( bt2_btn ) that contains animation and 2 movie clips ( buttons - capsules_btn, and cahier_btn)
i added this code which works also...

Code:
bt2_btn.onRollOut= function() {
_root.gotoAndPlay("home"); // frame 1
};
but, i can't seem to make capsules_btn, and cahier_btn to work.

i tried the obvious
Code:
on (press) {
trace("on press");
}
which resulted to nothing.

i tried using this code at the main level on line 1
Code:
bt2_btn.cahier_btn.onRelease = function() {
trace("button clicked");
};
and got nothing

i then tried this code on frame 1 line 1 of the movieclip bt2_btn
Code:
_root.bt2_btn.cahier_btn.onPress= function() {
trace("button clicked");
};
nothing also

wondered what am i missing, or what i aint doing right, either way, can anyone help me out here?

attached file included

thanks

Clicking A Movie Clip Inside A Movie Clip?
Alright, I'm trying to load many images in movieclip which are all in one big movieclip. I need to put these images inside one big movie clip because later on there will be a zoom which will have to be applied on all the images at the same time.

Anyways, I'm trying to make these images clickable and for some reason, it doesn't work. The way I do it is that I have one movie clip that loads the first image. Then, I duplicate this movie clip and load the following images in them. I modify their _x and _y so that they appear one after the other and, after 9 they go to the next line. Here's the code:


Code:
loadMovie("images/1.jpg",container.auto_1);
var thewidth = 97;
var theheight = 118;
var positionX:Number = 1;
var positionY:Number = 0;

for(var i=2;i<65;i++){
duplicateMovieClip(container.auto_1, "auto_"+i, i);
if(positionX == 10){
positionX=0;
positionY++;
}
setProperty("container.auto_"+i, _x, (positionX*thewidth));
setProperty("container.auto_"+i, _y, (positionY*theheight));
positionX++;
loadMovie("images/" + i + ".jpg","container.auto_" + i);
eval("container.auto_"+i).onRelease = function () {
trace(this);
}
}
This works fine except they are not clickable. Does anyone know what I'm doing wrong?

Also, is there a way to make each image clickable and the movie clip that contains images draggable at the same time?

Thank you

Accessing A Movie Clip/s Inside A Movie Clip
This has most propably been answered numorous times but i cant get it to work.

Having trouble trying to access a movie clip/s inside a movie clip. What i have is an on RollOver event that tweens the mc then i have mc's inside that which i would like to click on to do something else. Can anyone help???

I have a little piece of code that works with a on mouse move but i dont really wont it to be on mouse move rather on rollover...


ActionScript Code:
menu.onMouseMove = function() {
    if(menu.hitTest(_xmouse, _ymouse, true)) {
        this.tween("_y", 40, 0.5, "easeoutquad");
        menu.gotoAndStop("open");
    } else {
        menu.gotoAndStop("closed");
        this.tween("_y", 0, 0.5, "easeoutquad");
    }
}

HELP. Movie Clip Inside A Movie Clip Problem
I have a movieclip (left with alibis & lying eyes) within a movieclip (watching) and I have buttons within left with alibis & lying eyes that I want to go to specific labels/frames within watching. I tried doing:

on (release)
{
watching.gotoAndStop("one");
}


But it did not work. Do you have any suggestions?

HELP. Movie Clip Inside A Movie Clip Problem
I have a movieclip (left with alibis & lying eyes) within a movieclip (watching) and I have buttons within left with alibis & lying eyes that I want to go to specific labels/frames within watching. I tried doing:

on (release)
{
watching.gotoAndStop("one");
}


But it did not work. Do you have any suggestions?





























Edited: 02/15/2008 at 02:52:10 PM by nightgaze61

Loading A Movie Clip Inside Of A Movie Clip?
I have a movie clip on my stage, and when you click a button I want to load a movie clip inside of that one from my libary. I know this is a stupid question, but right now mind mind is boggled.

Nav Test Movie Clip Inside A Movie Clip
i was trying to put a movie clip inside a movie clip using a nav test. I received a code that said this...

//set navtest to 1 in first frame of parent movie
onClipEvent(enterFrame){
if(this.hitTest(_root._xmouse,_root._ymouse,true)) {
_root.navtest = _root.navtest + 1

trace(_root.navtest);
if(_root.navtest == 2){
trace("test")
gotoAndPlay(2);
}

}
else {
_root.navtest = 1
gotoAndStop(1);
}
}

note that _root.navtest must be set to 1 in the main timeline.

does any one know where to put this code and how to go about doing this. if you have any examples that would be awesome. thanks for reading!!!

Controlling A Movie Clip Inside Another Movie Clip?
I've had my share of problems with this one...I hope someone knows what the hell I'm doing right/wrong and could help me out

Okay, I made a movieclip to put the blocks(which are movieclips too) in a breakout clone.

lets give the container movieclip the instance name "container"...the blocks are preset in that container with their own instance names...what I want to do is a hittest with those blocks but I found out that...

(this.hitTest(_root.container.block1)) doesn't work.....any ideas why?

even changing the x and y properties of the blocks doesn't work...
(_root.container.block1._x = 5)

Movie Clip Button Inside Movie Clip.
hey ive got a slider menu which opens when clicked. however the buttons (also mc instanced) inside the slider mc wont work... here is the code:

//Menu Slider Background
_root.menuSlider_MC.onRollOver = function() {
new Tween(_root.menuSlider_MC, "_x", Bounce.easeOut, _root.menuSlider_MC._x,-250, 20);s
}

_root.menuSlider_MC.onRollOut = function() {
new Tween(_root.menuSlider_MC, "_x", Bounce.easeOut, _root.menuSlider_MC._x,-305, 20);s
}

_root.menuSlider_MC.onPress = function() {
new Tween(_root.menuSlider_MC, "_x", Bounce.easeOut, _root.menuSlider_MC._x,50, 20);s
}

//Menu Buttons
_root.menuSlider_MC.web_MC.onRollOver = function() {
trace("yes");
}

the slider mc works however i cant seem to get the 'web_MC' to respond..

how can i fix this? cheers.

Loading A Movie Clip Inside Of A Movie Clip?
I have a movie clip on my stage, and when you click a button I want to load a movie clip inside of that one from my libary. I know this is a stupid question, but right now mind mind is boggled.

Creating A Movie Clip Inside Another Movie Clip
I'm know this must be a simple thing to do, but I can't for the life of me figure out how to do it.

I need to create a movie click inside an existing movie clip dynamically, with actionscript.

That's it.

Presumably you have to create it using duplicateMovieClip / createEmptyMovieClip then move it to the new location?? How can you reassign a movie clip within another?

Aye Karumba. This is killing me.

Close A Movie Clip Inside A Movie Clip ?
ok i have a movie clip ,now inside that movie clip i have a movie clip that has a button on it (its a window that i want the viewer to be able close after then viewer has looked at it ,but keep the main window that their in so the can view the rest of the content ..) i would like it to act similar to the "component message box ....its a information window .
is it possible to do this ?i have looked and i cannot find any info on how to do this ,or im not sure what i am looking for ..thanks

Placing Movie Clip Inside Another Movie Clip
So I created a bunch of movie clips that are preloaded with small thumbnails all dynamically. I want them to start scrolling right to left so I figure ill now put them all inside one holder MC and move that. How would I do that?

is there an MC.addClip ? Would I just use loadClip, but would i then have to set the _.x again? Any help on this would be appreciated.

On the side, I have a fader function but only one mc can call it at once, is there a way to make it into an object fade so it can be used simultaneously by all the thumnails?

Thanks

Specify Frame For A Movie Clip Inside A Movie Clip
I'm working with a site completely out of flash and I'm having trouble with a button.

Just as some background, the site is layed out with the main stage, and on that stage is a movie clip with an instance name of 'pages'. Inside the pages movie clip is a timeline with all the different pages of my site with labels identifying each one, such as p1, p2, p3 etc. On the timeline in the p2 section I have another movie clip with an instance name of 'extrasbody' which is a 7 frame clip with each frame labeled and I'm using a second menu to control going to each frame.

My problem is that I need a button on the front stage to go to the correct page (p2) as well as load up the correct frame in 'extrasbody' which in this case is labeled 'terms'. It always just loads up the first frame and I have to use the second menu to get to the correct frame.

This is what I've tried.

PHP Code:





 on (release) {
    _root.pages.gotoAndPlay("p2");
    _root.pages.extrasbody.gotoAndStop("terms");
    } 







I think it doesn't work because when that is called 'extrasbody' isn't loaded up yet so it just skips it.

What is the best way to tackle this? Maybe I need to setup a variable that is either set to 'off' or 'on' and the button turns it 'on'. Then on the 'extrasbody' page I have an if statement saying if that variable is 'on' then extrasbody go to 'terms' otherwise goto frame 1. Logically in my head that makes sense but I don't know how to code that.

Any help would be greatly appreciated. You can view a live form of the flash page here: http://www.foxreality.com/theacademy/
Click on the button for Academy Dictionary. It will take you to the 'extrasbody' page but to get to the dictionary you have to click on the 'academy dictionary' button on the right hand side.

How To Have A Button Link To A Certain Frame Inside A Movie Clip From Inside A Movie
Is this possible? I have a menu and would like to have a drop down box nested inside the menue which links to certain frames inside the main movie clip.

Movie Clip Button Inside Movie Clip Button Is Driving Me Nuts
hellllllo everyone, this thing has been bothering me for weeks, i've been hiding from it for days but it always seems to come back and bug me..
this is the problem..
on my main timeline i have a movie clip button that plays over/out state within this clip and on the over state it also opens 8 other movie clip in this movieclip that i am hoping to make them clipable, i only made an over state for the first movieclip out of the eight, but it just wont do the rollover effect..
i think there is a better way to do this..if i need to start over..let me know..thanks!!!

i will attach the file please help me out! i am tired of hiding!
thank you again!!!!!

Having A Button Inside A Movie Clip To Move The Root Movie To Another Frame?
i dont know much about actionscripting so explain to me in simple terms...

i have buttons inside a single movie clip and i want to have each button (when clicked or rollover-ed) move the frame header of the main (root) movie to another position. what actionscript does this require? and will each button actually be "clickable" since they're all encapsulated in ONE movie clip??


thanks

How To Load A Movie In Main Scene While The Command Is Inside A Movie Clip?
Hi all,

Well, I have a scene that has a movie clip, and inside this movie clip there is a button. I want to program that button using ActionScript to loadMovie named "1.swf" inside a container in the main scene (which this movie clip belongs to).

Hope the question is clear and hope to get a fast answer as it is urgent..

Thanks alot in advance.


Regards

PLEASE HELP Button Inside A Movie Clip..to Call Different Scene On The Movie
i have a button "within" a movie clip, i cant get it to work to call another "scene". i already used "_root." so the command will apply to the main time line but still, its not working.


on (release) {
_root.gotoAndPlay("scene2", 1);
}
thanks!

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