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




Button Nested In Movie Clip Just Repeats Movie Clip



I have a button that is inside of a movie clip. (the button falls down from the top). BUT, when i click on the button, it just plays the movie clip over again? Am I missing something?Thank you



Adobe > ActionScript 1 and 2
Posted on: 12/04/2007 10:31:17 AM


View Complete Forum Thread with Replies

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

Load Movie Command From A Button Nested In A Movie Clip.
I'm designing a flash site in which the navigation menu stays in place while content is loaded below it. I want each navigation button to load an SWF file into the dummy movie clip that is positioned beneath them.
But my buttons are placed within a movie clip infact 2 levels down in a movie clip..i.e _root.mc1.mc2.button ..(this is my path)
I m not gettin the write output i want to load the movie clip over the same file but itz not happening.
This is the scripting i have given on my button: (which is placed directly on stage)

on(press){
_root.createEmptyMovieClip("astro_mc",1);
_root.loadMovie("s1.swf", "astro_mc",1);
_root.astro_mc._x=200;
_root.astro_mc._y=200;

}

THIS IS GIVING ME WRITE OUTPUT but when i place d same button in the path i wrote earlier i.e in mc1.mc2.button , then my scripting does not work.. Kindly help me out.. I also tried giving _root. n ol.


Waiting desprtly 4 ur reply.

Load Movie Command From A Button Nested In A Movie Clip.
I'm designing a flash site in which the navigation menu stays in place while content is loaded below it. I want each navigation button to load an SWF file into the dummy movie clip that is positioned beneath them.
But my buttons are placed within a movie clip infact 2 levels down in a movie clip..i.e _root.mc1.mc2.button ..(this is my path)
I m not gettin the write output i want to load the movie clip over the same file but itz not happening.
This is the scripting i have given on my button: (which is placed directly on stage)

on(press){
_root.createEmptyMovieClip("astro_mc",1);
_root.loadMovie("s1.swf", "astro_mc",1);
_root.astro_mc._x=200;
_root.astro_mc._y=200;

}

THIS IS GIVING ME WRITE OUTPUT but when i place d same button in the path i wrote earlier i.e in mc1.mc2.button , then my scripting does not work.. Kindly help me out.. I also tried giving _root. n ol.


Waiting desprtly 4 ur reply.

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!

Nested Movie Clip As Button
hey everyone,

slight nested MC problem. i have a nested movie clip that acts as a button (with tweened animation on base timeline, and also some tweened animation on a parent timeline) which gets stuck on a certain frame of animation the FIRST time you rollover it, then after that it will work fine.

as stated, gets stuck the first mouse over, then works fine after that. any ideas? does this have to do with the fact that it's a nested MC?

Button In A Nested Movie Clip-Help
Hello!
I have an issue that I have never been able to solve and need to now since I am on a tight deadline.
I have a movie clip button on my main timeline. The code works fine (up, over and out). Inside that movie I have an animation where a bubble appears with text, our mission. If I use the URL link for text it works fine. The problem is I need, when clicked on, a UILoader to load a file. If I put the correct code on the main timeline I get an error since that pop-up has not loaded yet. If I put the correct code(I used before on main timeline only) in the movie where the pop-up is I also get an error which send the file into an eternal loop. What am I doing wrong??

I would greatly appreciate any help with this.

Thanks.
Rob

Button Nested In A Movie Clip Problem.
I have created this "ticker" that slides across the screen. It contains thumbnails of the clients projects. Each thumbnail should have a piece of actionscript telling the movie to 1) goto and play the label "project" and load an exteral movie onto level "50". For some reason, I can't get this to happen. The script will only load the external file. Could anyone give me a little feedback.

index.fla (this is how it should work) I have made a single large button that covers the whole ticker and only brings up one project. This button is its own movieclip on the layer named "navigation button" frame 666.
This how it should work

index2.fla (this file has the code placed on each thumbnail button) The thumbnails are nested about 4 deep in the movieclip.
This is the problem I am having.

If anyone thinks they can help, I will be more than happy to send the fla's

I appreciate any help,

Thanks,

THS2000

Button Script In A Nested Movie Clip
hi,
do me a favour. i hava a problem in some actionscripting.

i have a button in movie clip and place this movie clip on the main stage and want to go to next scene through this button. i tried
_root.mybutton.onRelease = function () {
_root.gotoAndPlay("scene2", 1);
}
but this didn't work.
can u help me in this regard.
it is very urgent.
regards

Button Within Nested Movie Clip Not Functioning
Hi everyone!

Really need some help. I love Flash, but this is just killing me!

I'm putting together a website using an external AS3 file document class called "Master". The site is laid out inside a main movie clip container called "mainContainer". Inside, a "mainNav" movie clip contains 3 buttons that point the time line to frame labels. These frames contain additional movie clips for each page of the site. I have the 3 buttons in mainNav working fine. The issue I'm running into is getting an additional button called "testBTN" nested within one of the page MCs called "methods" to work. I'm getting the "TypeError: Error #1009..." output (yes, I've double checked that my instances are named). Perhaps there is something about scope I'm not understanding? A strange and possibly related issue I had earlier was with the three main buttons. They fade in half way through the mainNav clip, but I couldn't get them to function until I placed an invisible (alpha 0) copy of each at frame 1 of that clip. mainNav also exists on frame 1 of the mainContainer, whereas methods/testBTN is down the line. I have a feeling this has something to do with it, but I'm hoping there is a way to address it...

Anyway, here is my code. The suspect lines are bold:


ActionScript Code:
package {
    import flash.display.MovieClip;
    import flash.display.SimpleButton;
    import flash.events.MouseEvent;

    public class Master extends MovieClip {
        public function Master() {
           
           
   
           
            //button event listeners
            mainContainer.mainNav.BTNmain.addEventListener(MouseEvent.CLICK, onMainClick, false, 0, true);
            mainContainer.mainNav.BTNmethods.addEventListener(MouseEvent.CLICK, onMethodsClick, false, 0, true);
            mainContainer.mainNav.BTNservices.addEventListener(MouseEvent.CLICK, onServicesClick, false, 0, true);
           
            [b]mainContainer.methods.testBTN.addEventListener(MouseEvent.CLICK, onTestClick, false, 0, true);[/b]
           
        }
       
       
        //navigate by frame label
        private function onMainClick(evt:MouseEvent):void {
            mainContainer.gotoAndStop("main");
        }
        private function onMethodsClick(evt:MouseEvent):void {
            mainContainer.gotoAndStop("methods");
        }
        private function onServicesClick(evt:MouseEvent):void {
            mainContainer.gotoAndStop("services");
        }
       
        [b]public function onTestClick(evt:MouseEvent):void {
            mainContainer.gotoAndStop("main");
        }[/b]
       
       
    }
}

Stopping A Movie Clip Nested In A Button
On my website, I have buttons that animate with a movie clip on the over and down states. I am having trouble targeting and stopping the movie clip from playing on an onRelease event. By continuing the animation, the nested movie clip slows down the .swf file that loads on the right side of the page. Any help on this matter would be greatly appreciated. Thank you.

http://www.erikmoore.com/

Button Nested In Movie Clip Not Working?
I have a movie clip that contains buttons, this takes up one frame in each scene. I cannot get it to go to scenes. I know its the code thats off, so far this is what I have:

on (release) {
gotoAndStop("Bio", 1);
}

Do I need to do a .. or a // ?

Thanks this AS2.0 is killing me...

How Do I Control A Movie Clip Thats On Stage From A Nested Movie Clip
I have been lookin for a solution for this for a while now. How do I access a movie clip thats on the stage from a nested movie clip? root doesnt work like it used to with AS2.0, is there a way? Any help would be highly appreciated

Button To Play Nested Movie Clip With A Twist
Hi guys I used to know flash CS2 but CS3 is a bit confusing :P

My problem is this:
I have a button that when clicked needs to tell a time line on a movie clip to gotoAndPlay("2") however the problem is that this movie clip is on the root and the button is also inside a diffeent movie clip on the root.
e.g

[scene1 root timeline] >>> [Menu movie clip] >> [Button1]
>>> [Ball movie clip]

button1 needs to tell ball movie clip to goto and play


I tried this but it did not work:

function MakeBallPlay(event:MouseEvent):void
{
(root.Ball as MovieClip).gotoAndPlay("2");
}


Please could you tell me what I am doing wrong?

Thankyou
John

Submit Button Won't Work In A Nested Movie Clip..Wassup Wit Dat..
Hi all..My first post other than a basic hello a few minutes ago...Anyhow I built a php form which I've used repeatedly with no probs..BUT NOW it's not in the main timeline but in a nested Movie clip and doesn't send the variables to the php script on the server..Any help would be very much appreciated..Thanks

Targeting A Nested Movie Clip From Within The Movie Clip
Hi all,

I am making a quiz game for which my requirement is like this :

I have a nested movie clip in the main timeline instance name which is like this

mcimg1 > img1 > imgg1 > imggg1

I have a button in imggg1 on which I want to play from the 2nd frame of movie mcimg1.

I can directly do it with tell target and then targeting teh mcimg1, but I have kept 10 instances of mcimg1 and given them instance name like mcimg1, mcimg2..... etc.

How can I solve this problem. I was trying to get the instance name of the main movie (i.e. mcimg1.....10) on clicking the button and then tell target.

but I am unable to do so.

Kindly help me out..

thanks in advance

Targeting A Frame Label In A Movie Clip From A Button In A Separate Movie Clip.
I have two separate movie clips placed on a timeline-MovieclipA and MovieclipB. I have a button in MovieclipB clip that wants to target a frame label located in the MovieclipA timeline. Can someone help me?

Code 4 MovieClip Button To Load A Movie Clip Into A Placeholder Movie Clip.
Yeah that title sounds a little confusing...so i will explain:

Is there a way to tell a "movie clip button" that once it is clicked on to load a "movie clip" into a "movie clip placeholder". So instead of loading an external swf into the placeholder, it will be a movie clip from within the same library. Putting every single custom clip on the timeline would take a while, so that is why I thought it would be easier like this, and the other movie clips are not that large that I want to load into it so there is no need for external swfs, trying to keep it clean. Here is the code along the lines I am trying to go for.

__________________________________________

this.profile_mc.onRelease = function() {
placeholder_mc.loadMovie("profileSection_mc","plac eholder_mc","_root.content");
}
__________________________________________

- "profile_mc is the button I am trying to activate to load the
"profileSection_mc" into the "placeholder_mc". but so far no good.

- the movie clips are within the same library, not on the timeline or external library.

- Is this possible?

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 A Movie Clip As A Button To Jump To Half Way Through Another Movie Clip?
hi guys and gals,
i am wondering if i can make a movie clip (as a link for a website) jump to half way through another movieclip...
thanks in advance

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!!

Using A Button In A Movie Clip To Control The Movie(and Not Movie Clip) Timeline
Ok i have a button placed in a movie clip. I want this button, when released, to go in another scene, frame one, on the movie(scene) timeline and not on the movie clip timeline.

So i tried: gotoAndPlay("mission", 1); (mission is the name of my scene)

But it goes to the frame 1 of my movie clip, It would be great if someone could tell me how i can control the movie timeline while my button is in a movie clip

thaks
Vakarm

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!!!!!

How Do You Make A Button Able To Jump From Movie Clip To Movie Clip
how do you make a button able to jump from movie clip to movie clip

I have 5 movies i the same scene , I need the buttons to jump from movie to movie ... how do I code this in the acrions ?

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.

[CS3.AS2] Button In A Movie Clip Link To Another Movie Clip And Play
what im doing is that making a button in a movie clip link to another movie and play/stop certain parts of that clip

lets say that there are 4 buttons are in movieA, and the other clip is called movieB

when the user clicks button1 in movieA, movieB will play from frame 1 to 5 and stop.
when user clicks button2 in movieA, movieB will play from frame 5 to 10.
and so on

so far my code for button1 is:

on (release){
this._parent.movieB.gotoAndStop(5);
}

on (release){
_root.movieB.gotoAndStop(5);
}

button2:

on (release){
this._parent.movieB.gotoAndStop(10);
}

on (release){
_root.movieB.gotoAndStop(10);
}

with this code, it just jumps to the designated frame.
what i want is to have it play from current frame to a designated frame

can anyone shed some light on this?

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.

Help Pls Making A Button In A Movie Clip Goto Another Movie Clip (pic)
Hi guys and girls,

i need ya help. What action script would i need to make a button in one movie clip goto and play a frame in another movie clip. I've added a pic to help. Im not very good at flash but i've been trying my usual codes but it dont work..

Cheers

Help Pls Making A Button In A Movie Clip Goto Another Movie Clip (pic)
Hi guys and girls,

i need ya help. What action script would i need to make a button in one movie clip goto and play a frame in another movie clip? I've added a pic to help. Im not very good at flash but i've been trying my usual codes but it dont work..

Cheers

Referencing A Nested, Nested Movie Clip
Here's the setup.

let's say you have a movie clip called "parent" on the root timeline.
On frame 1 of the parent clip, you have another clip called "childA"
On frame 2 of the parent clip, you have a clip called "childB"

so, only childA is on frame 1, and only childB is on frame 2

also, let's say that both childA and childB each have a local function named "Add"

using dot syntax, you can call those functions from the root timeline:

_root.parent.childA.add(); or _root.parent.childB.add();

however, Flash only seems to be aware of those children that exist on the currently selected frame of the parent. In other words, if the current frame in the parent mc is 1, you can use parent.childA.add(); but not parent.childB.add();

Is there any way to be able to reference a child movie clip in a parent movie clip when the child is not on the currently selected timeline?

I can't put all the child clips on every frame, because I need to be able to print the entire parent movie clip (multiple frames, so each child can only exist in their own frames).

Thanks in advance for your help or insight!

Cheers!

Nested Movie Clip
So I have a button within a movie clip within a movie clip. And I want the button to go to the next scene when clicked. What am I missing here? No matter what I do, the button won't reference to the root of the scene that I'm in. It either does nothing, or goes to the previous scene. Weird.
Please Help!!!
Thanks,
Chris

Nested Movie Clip?
Hello im developing my first dynamic flash site but have run aground on loading an image into a movieclip which is nested inside several other movieclips.

code: //Loading Images
for (i=0; i<subcat_image_length; i++) {
var PHOTODIR = "Content/";
var PHOTONAME = subcat_image_array[i];
var currPic = "bottompic" add i;
//load picture into new movieclip
//create movieclip for the current picture being loaded
duplicateMovieClip(picborder, currPic, i);
_root.Content.currPic.createEmptyMovieClip(somepic , 4);
loadMovie(PHOTODIR+PHOTONAME, _root.Content.currPic.somepic);
//move
_root.Content[currPic]._y = -50;
_root.Content[currPic]._x = 20;
}


if i loadmovie into the _root.Content.currPic.somepic then i do not see an image. However if i replace that with _root.Content.currPic i do.



Anyone know why this is, i also tried to have a blank movieclip already within picborder and load the image into that, however that would not work either. Is there a limit to the ammount of nesting of movieclips within movieclips?

Many thanks

Nested Movie Clip
I can't create a nested movie clip and attach a bitmap as nothing is displayed .


This fails with nested



import flash.display.BitmapData;
import flash.geom.Rectangle;
import flash.geom.Point;


var bmp1:BitmapData = BitmapData.loadBitmap("cave1");

this.createEmptyMovieClip("mc1", this.getNextHighestDepth());
mc1.createEmptyMovieClip("mc11", mc1.getNextHighestDepth());

mc11.attachBitmap(bmp1, mc11.getNextHighestDepth());


mc11._x=100;
mc11._y=0;

Pop Up In An Nested Movie Clip
Hokay here goes my situation.

I was able to have a popUp in a single movieclip scene
using : message_window =
mx.managers.PopUpManager.createPopUp(_root,mx.cont ainers.Window,false,null,true);

And it worked fine.

Now i am working on a file which has nested MovieClips and after all the movieClips have finished populating , I am not able to use the same command and create a popup kinda thing.

Can anyone help me out and point out where the problem could arise.
More precisely i have attached the code snippet for your convinience :

for(j=0; j<answers.length; j++)
{
var my_format1:TextFormat = new TextFormat();
my_format1.bold=false;
my_format1.size = 14;

var handle:MovieClip = qs_mc.attachMovie("ans_movie","ans"+j+"_mc",j+1);
this.ans_text.setTextFormat(my_format1);
handle._x = 75;
handle._y = 70 + (35 * j);
qs_mc["ans"+j+"_mc"].onPress = function()
{
sendResponse(1,this.label);
}

qs_mc["ans"+j+"_mc"].ans_text.autoSize=true;
qs_mc["ans"+j+"_mc"].label = answers[j].firstChild.nodeValue;
qs_mc["ans"+j+"_mc"].onRollOver = function()
{
var my_format:TextFormat = new TextFormat();
//my_format.font = "Book Antiqua";
my_format.bold=true;
my_format.size = 18;
this.ans_text.setTextFormat(my_format)

}
qs_mc["ans"+j+"_mc"].onRollOut = function()
{
var my_format1:TextFormat = new TextFormat();
my_format1.bold=false;
my_format1.size = 14;
this.ans_text.setTextFormat(my_format1)
}
}

qs_mc._visible = true;
details_window = mx.managers.PopUpManager.createPopUp(_root,mx.cont ainers.Window, false,null,true);
details_window.closeButton = true;
details_window.title = "The Popup Window Title";
details_window.move(0, 0);
details_window.setSize(800, 533);
details_window.setFocus();
windowListener = new Object();
windowListener.click = function(evt)
{
_root.details_window.deletePopUp();
}
details_window.addEventListener("click", windowListener);
details_window.content.messagetext="HIIIII";


Would be really appreciate some ideas on the same.

Thanks
Amarnath

Help With Nested Movie Clip
hi..everyone..pls help me...
how to set property for nested movie clip??
for example..
i hav A movieclip inside B movie clip.. and i wanna set property to A movie clip... i also hav to add some number to the A movie clip...something like below... but it has errors...

someone can help me? thanks a lot


for (var loopvar = 1; loopvar <= 20; loopvar++) {
setProperty("_root.B.A" + loopvar, _visible, 0);
_root.B.A+ loopvar = 0;
tellTarget ("_root.B.A+" + loopvar) {
gotoAndStop(3);
}
}

Nested Movie Clip
i wan set property for nested movie clip..
for example:

for (var loopvar = 1; loopvar<=20; loopvar++) {
setProperty(this.A._root["B"+loopvar], _visible, 0);
_root.A._root["B"+loopvar] = 0;
tellTarget (this.A._root["B"+loopvar]) {
gotoAndStop(3);
}
}


B movie Clip is inside A movie clip... i add loopvar to the movie clip B because the actual instance name for the movie clip B is B1, B2, B3....B20...


please help me... thanks a lot..



**sorry... i repost the thread because of some prob... please reply me again..thanks

Get Nested Movie Clip Value
my nested movie clip is as folo

A-->B-->txtnumber

txtnumber is dynamic text inside B movie clip, B movie clip is inside A movie clip..in the same layer of movie clip B, there is a button call btnClick.

i am writing the code inside the btnClick..

to get the value of the txtnumber, how to write the code??? anyone please help me...

am i right is write as below


Code:
B.txtnumber = Number(B.txtNumber)+5;

Nested Movie Clip
If I have a nested movie clip, how can I make the parent timeline switch over to the child timeline?

I have created a learning interaction where the parent timeline contains a set of math problems and the child timeline contains a clock. When the student is finished with the math problems in the parent timeline a button will appear, named stop_btn. I want this stop_btn, when it is clicked, to activate the actionscript in the child timeline.

Thanks,
budd101

Buttons Nested In Movie Clip/Help
Im trying to have buttons that are nested in a mc dynamicly change the value of text box's on the main movie ? any suugestions

Nested Movie Clip Previews?
I've got a flash movie with multiple nested looping movie clips in it (flash vector graphics animated to loop within movie clips, etc.) I'm using only motion tweens within them.

For some reason when i scrub or playback the movie timeline it only shows me the animation that's directly keyed in the movie timeline & doesn't include any of the animation contained within any of the nested clips' timelines. The only time I can see the nested animation is if I Ctrl-Enter to bring up a preview SWF in Flash Player.

For example, I have an image which continuously slides through the scene & loops once through. This image slide is its own movie clip. That sliding movie clip is contained within another movie clip which sequences multiple image slide clips to occur on a rotating basis. When I playback the movie timeline or scrub through it, I see none of the images sliding. In fact, even if I playback the movie clip that sequences the other movie clips I still see nothing. If I playback any of the core "sliding image" movie clips one at a time, they appear just fine. If I do a ctrl-enter SWF preview, all image slide loops work just how I wanted them to.

Is there some setting I can tweak to enable seeing nested animation within preview playback? My friend claims that he is able to see anything via timeline playback that he could via SWF preview. I'm using Flash 5.
--
-matt
_______________________
"Art washes from the soul the dust of everyday life."
- Pablo Picasso

http://www.realitytheory.com

Can't Point To A Nested Movie Clip...Help
Hi,

I've been having a lot of trouble targeting a button to a nested movie clip. My button is contained in a movie clip buried 2 levels deep. I simply want this button to load another movie clip (bonus) that is also 2 levels deep. My code for the button is below:

on (release) {
with (_root.software.bonus) {
}
gotoAndPlay (1);
}

I made sure that each of the movie clips instance properties are named "software" and "bonus" respectively. I even tried using Flash 5's targeting feature which prints the code exactly as I've done above. I always get the following error from Generator:

Error: A 'with' action failed because the specified object did not exist.

The clip just seems to be playing itself if I press the button. I even tried using _root.software.bonus.gotoAndPlay(1); but that doesn't work either. I did a small test where I moved the nested clip to the root and called that movie by a frame name. That works fine, but unfortunately, I cannot put these nested clips on the root.

I'd really appreciate anyone's help as I'm getting extremely frustrated. Thanks!

Nested Movie Clip Coordinates
I've been at this for a few hours now. . .

I'm trying to move a movie clip that's nested inside another movie clip to where the mouse is (relative to the stage) and I'm at my wits end.

I've tried playing with localToGlobal(), globalToLocal(). Maybe I just don't quite understand how they work.

You would think this is a very simple thing, I don't know what I'm doing wrong.

Is there an easy way to do this?

Control Nested Movie Clip.
I am having hudge problems with controling a nested movie clip. It seams to work fine if I just tell the movie clip.

_root.map.gotoAndPlay(5);

But as soon as I put map within another movie clip called "time"
I get big problems.

I figured all I would have to do is change the above line of code too.

_root.time.map.gotoAndPlay(5);

and it should work right?

It does not. any suggestions.?




If you are really good at this stuff maybe you can look at the original problem I would really appreciate it a ton!

Movie Clip As Btn With Nested Btn Problem
I have an MC acting as a button with this code on it:


Code:
on (rollOver) {
this.gotoAndstop("btnon");
}

on (rollOut) {
this.gotoAndstop("btnoff");
}
Nested inside this MC is a actual btn that I'm trying to use a getURL function on, but it's not working. This button is called sub1_btn and here is it's code (setinside the MC on the same frame as the button in a scripts layer)


Code:
sub1_btn.onRelease = function() {
getURL("forms/careers.html", "main");
}
Am I able to nest buttons inside of an MC with the code I'm using above? Please advise.

Thanks

Foochuck

Nested Movie Clip Problem, Help, Again
I have created an .SWF file using SWISH called “OpenQuote.swf”. I load this file into a movieClip called “Quote1”. “Quote1” is then placed into a MovieClip called “MainIntro.”, which is on the main time line. OpenQuote.SWF” resides at the same level as the FLA file so the Flash player knows where to find it.

My problem is when the “OpenQuote.swf” completes, as it is just a linear text animation. I need the play head to move to the next frame in the “MainIntro” movieClip.

I have placed code on the last frame of my SWISH file “OpenQuote.SWF” as follows:
_root.MainIntro.gotoAndPlay("next");

This is not working, first any suggestions. Also is there a way to watch the “OpenQuote.swf” and know when it hit it’s last frame from within the movieClip “Quote1”.This may allow me to move the play head to the next frame within the MovieClip “Quote1”. How do I do this as well?

Thank you for any help as I lean this great program. I really appreciate everyone’s help.

I am using Flash MX 2004

Duplicate Nested Movie Clip
Hello:
I have a problem with DUPLICATE movie clip with the nested MCS. The DUPLICATED MC can not get edited without getting the original changed.
What may be the problem? Can enybody help please?

Thanks

Nested Movie Clip Not Working
Could someone please help me out on this small issue? In my flash file, I have a button called health programs (main movie file, underneath Lincoln folder). When a visitor's rolls over this button, all I want is for a nested movie clip to play a specific frame label (lincolnHealth). I wrote a function like this in my first frame of my main movie file (first frame, top of file, very bottom of action script):


Code:
function lincolnsubmenu(){
if(lincolnsub=="lincolnHealth"){
lincolnHealthMenumc.play();
}
}
lincolnsub is the variable, lincolnHealth is the frame label in the nested movie clip. On the button itself, I say this (frame 20, main movie file):


Code:

healthProgramsBtn.onRollOver=function(){
lincolnHealthMenumc.gotoAndStop("lincolnHealth");
}
Then in my nested movie clip, in my first frame of AS, I set the variable and frame label like so:


Code:
_parent.lincolnsub="lincolnHealth";
I know my button fires, my nested movie clip just doesn't play. Surely that makes sense to someone. This same problem has been nagging at me for three days now. Attached in the stripped down version. I done a similiar approach with highlights in this same project and everything worked peachy. If anyone can give a hint, I would be extremely grateful.

http://midwestwebdesign.net/temp/tour.zip

Nested Movie Clip Error?
I have some actonscript code that I'm trying to put inside a moive clip and this is the error that I get

**Error** Symbol=text-sound, layer=t, frame=76:Line 1: '{' expected
function fadeZoom(target:MovieClip, delay:Number):Void {

**Error** Symbol=text-sound, layer=t, frame=76:Line 21: Unexpected '}' encountered
}

Total ActionScript Errors: 2 Reported Errors: 2

The same code works fine when it is on the main timeline, but when I move it inside the movie clip for some reason it doesn't work...

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