ActionScript 3.0 :: Setting Up Parent Movie Clips?

Jun 25, 2009

I have my flash website set up with the following structure:

Scene 1:
- Menu buttons located in Scene 1 -> navigation_mc
- Page 1 (Company page) located in Scene 1 -> companypage_mc
- Page 2 (Portfolio) located in Scene 1 -> portfoliopage_mc
- etc... a total of 4 pages.

As you can see, I have each function of the website in its own layer and movie clip, so my question is how do I access a movie clip outside of the current movie clip?

I want my company_btn (company button) in navigation_mc to navigate back outside to scene 1 and proceed to play the contents of companypage_mc. companypage_mc is visible = false, and I would like to make its visibility true and start its tweens from frame 1.

Inside navigation_mc:

company_btn -> On Click, go to scene 1 and play frame 1 of companypage_mc, making visibility = true.

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Unload/Load Movie Clips In Parent Movie From Buttons In Child Movie?

Feb 12, 2009

I Have 3 Movies:MAIN.SWF, contains loading movie actions for Nav.swf and Home.swf.NAV.SWF, contains navagation menu loaded on Level 2 in Main HOME.SWF, contains slideshow for home page loaded on Level 1 in Main In NAV.SWF, there is a MOVIE CLIP "graphmc", which contains a BUTTON "graphicbtn", When this button is clicked, I'd like the HOME.SWF (which is loaded into Main.swf on Level 1) to fade out and unload, and load and fade in Graphics.SWF in place of it.

View 6 Replies

ActionScript 2.0 :: Parent/child Movie Clips?

Aug 2, 2006

1) i have all my actions in its own layer on the main timeline, so all is well there

2) i have a movie clip with a rollOver and rollOut events attached to it

3) inside the movie clip when the rollover happens and the movieclip stops at a certain frame, i have another movieclip that appears. the movie clip is a link to a website, it works properly on the main timeline but without the proper actionscript it of course will not work inside its parent movie clip

View 1 Replies

ActionScript 1/2 :: Setting Multiple Depths Correctly On Movie Clips?

Oct 15, 2010

I have a splash page for a site I have built and it is 7 hexagons in a group like part of a bee hive.When I mouse over on it grows (tweens)and will ultimatley show some content when finally completed.on mouse out it shrinks back to normal size.what I want to achieve is that when mouse over the depth of that mc instance is on top and all the others a in the background.now for that part I can't seem to get right...

if I have mouse out from another of the 7 clips to mouse over another I want the mouse over tween of the new hex square to be on top and the mouse out tween of the prevous hex square to be below the new mc Instance that I have just mouse over and all the rest of the hex squares to be at a depth below the the hex square I have just mouse out from...This is the code I have on the buttons

on (press, rollOver, dragOver) {
this.swapDepths(100); // set this instance to top depth_root.x.swapDepths(50); // set mouse out instance below top[code]............

View 3 Replies

ActionScript 3.0 :: Multiple Movie Clips In Parent Flash

Sep 24, 2010

I am having trouble with looping my flash that contains multiple movie clips. Each movie clip is on it's own layer and within the movie clips, the last frame I use this code to go and play the next movie in the parent: MovieClip(parent).nextFrame();My problem is that when the last movie clip of the sequence plays,I want to restart the entire thing and play the first movie clip again (a continuous loop).

View 3 Replies

ActionScript 2.0 :: Loop - Flash 8 Duplicating Movie Clips And Setting 3 Nodes From XML

Apr 4, 2007

Flash 8 duplicating movie clips and setting 3 nodes from XML. I am trying to read in an xml with 3 parameters; 2 links and one text field for a caption. What am I doing wrong this time?

[Code]...

I am trying to have "bMC" load into and repeater for however many XML props there are. within "bMC" are two MC's that on click would open window or grab file and One Text field which would load in caption. For some reason the "bMC" isnt even loading at all. Attached is the .Fla

View 2 Replies

ActionScript 3.0 :: Reference Child/parent Movie Clips With Event Handlers?

Jan 13, 2010

I am wondering how to correctly reference child/parent movie clips when creating event handlers? I have a button within a movie clip, which is within a movie clip.This is what my handler looks like right now:

this.DropMenus.DMSeats.ButtonSeats.addEventListener("click",SeatsOver) ;

The button instance name is ButtonSeats Problem is, I get this:

TypeError: Error #1009: Cannot access a property or method of a null object reference.

Also, if I were to move the vent listener directly into the movie clip where the button is located, how could I reference the parent/ parent timeline(the main timeline)? Am I correct to understand that .this refers only to the current clip?

View 8 Replies

ActionScript 2.0 :: Function For _root - Control A Movie Clips Current Frame By Another Movie Clips?

Sep 13, 2009

I'd like to control a movie clips current frame by another movie clips action script.I realise the following controls the outside (root) frame time line:

on(release){
_root.gotoAndStop(1);
}

but I'm not sure how to apply that to my other movie clip. I'm guessing it would be something like this:

on(release){
_*movie_clip_name*.gotoAndStop(1);
}

View 1 Replies

ActionScript 3.0 :: Setting Variables To Parent?

Feb 8, 2010

I have loaded a movie clip into the "root" from the library using addChild. Inside this loaded movieclip, I need to populate a variable, but this variable is in the main time. The value must be sent when the user click on the clip that has been loaded. I have tried the following using a mouse click event listener.

MovieClip(this.parent).currentScore = 20;

but it won't work.

View 6 Replies

ActionScript 2.0 :: Flash8 - Attaching Movie Clips To Already Attached Movie Clips?

Jun 5, 2011

As most of you don't know, I've been creating an rpg game. And, after several tries of art making, etc, I have finally moved back into coding the game. And now, I'm stuck on the equipment system idea. At first, I thought I would just place a bunch of goToAndStop's for each movie clip to go to a frame that has that certain armor piece. This was my first idea for an equipment system. However, after doing some research, and realizing how much lines of code could be saved, I started looking into simply adding and removing movie clips from the character as my new equipment system idea. Now.... on to the problem.

Basic want/ overall achievement wanted: Create an equipment system, which will basically attach movie clips (items) onto characters, which themselves will already be attached movie clips on the stage.

Problem: What is the exact code to do this? And Is there a better way to do this for an equipment system (a less laggy or more efficient way perhaps that I'm not seeing; Check the code below to get a better idea of what I'm talking about)?

Part of the code (or basic idea of code; see comments for extra details

code:
//Don't worry I have an OnEnterFrame function here;
//attachedObj= the character; figure= the MC name of the character;
attachedObj = attachMovie("figure", "figure"+1, 1);

[Code].....

View 2 Replies

Multiple Movie Clips On Stage - Buttons Not Working In Movie Clips?

Jul 15, 2009

I have multiple movie clips on stage (all in separate layers, of course) as well as buttons on stage to play each movie clip. There are buttons inside each movie clip. The problem is that the buttons inside the top layered movie clip work, but the others in the movie clips below don't.

View 2 Replies

ActionScript 3.0 :: Child - Parent - Index Level Setting?

Jul 2, 2009

I encountered and did not make heads or tails out of this whole new concept of child, parent and setting a index level. What is an index level and this 'child and parent' thing?

View 3 Replies

ActionScript 2.0 :: Make Movie Clips Point At Other Movie Clips?

Jan 4, 2009

I'm making a shooting game but there won't be much of a challenge without enemies that point and shoot. Is there an easy way to make them do that?

View 5 Replies

ActionScript 2.0 :: Masking Movie Clips That Are Nested Within Other Movie Clips?

Jul 14, 2003

How would one go about masking movie clips that are nested within other movie clips?

I have a photo gallery slider type of thingy that loads jpegs with loadMovie into containers. I can mask the entire movie clip but as for the containers,...well I just dont know whats going on here.

View 7 Replies

ActionScript 2.0 :: Dublicated Movie Clips - Delete One By One The New Movie Clips

Sep 17, 2004

After the dublication of an movie clip,

1. I would like to be able to delete one by one the new movie clips

2. I would like to move them all together.... First you press the word green and then click in the blue area.... A green cyrcle will appear.. Click the word green again and then in the blue square and a new green cyrcle will appear. I would like to move the cyrcles with the buttons arrownd the blue square... And when I press delete I would like to delete any cycle I choose... The flash is too large to attach it to the forum, if anyone is interested I can send it by mail.

View 3 Replies

AS3 :: Flash - Setting Dynamic TextField.text From A Parent MovieClip?

Mar 4, 2010

I have a MovieClip that has a Dynamic TextField: let's call the instance of the field txtName. I want to set the text field on the fly for txtName, so I add a little ActionScript (3!) that does it nice and easily: txtName.text = "Foo";reat. Now why isn't it working when I try the same thing from a parent MovieClip which contains the MovieClip that has the dynamic text? Example:Child MovieClip with TextField ActionScript 3 in Frame #1:

//------
function SetText(str:String):void {
txtName.text = str;

[code].....

View 2 Replies

Actionscript 3 :: Setting Alpha On Parent Sprite Without Affecting Sprites Children

Mar 12, 2010

If I change some value for a parent sprite, the same value will affect all of its children. So if I set alpha or width on the parent, the child will automaticly get the same value.

View 4 Replies

ActionScript 3.0 :: Setting Properties Of Nested Clip From Document Class Of Parent

Aug 29, 2011

Setting properties of a nested clip from the associated document class of the parent clip. I am developing a Jigsaw puzzle in Flash. I am developing a class for puzzle piece. The code of the PuzzlePiece class in given as follows.

PuzzlePiece class
package {
import flash.display.MovieClip;
import flash.events.MouseEvent;
public class PuzzlePiece extends MovieClip {
private var pieceX:Number;
[Code] .....

Is it wrong to access it like that. The PuzzlePiece is the export for a puzzle clip. For the time being I am hard coding the dimension as 60. I have aloso uploaded the fla and as files. [URL].

View 4 Replies

ActionScript 2.0 :: Change A Clips Parent Object?

Nov 4, 2005

got a bit of a tricky one here [well, it could be an easy one, but I have no idea where to start on this one]

Lets say I have two objects on a stage, one named mcA and mcB, within mcA I have another object [called subA] which contains a few small objects, a AS class and some other stuff like components etc...

Is there a way for me to replicate that exact object [subA] inside mcB without loosing any data and such? is this posible?

So basically I want to make a copyClip function, that has the ability to copy/move objects from one object/clip to another...

View 3 Replies

ActionScript 3.0 :: Setting SWFAddress Value With Internal State Of External Clips

May 3, 2010

My project consists of various external SWF files and also uses SWFAddress. What I want is the internal state of some external clips to set the SWFAddress value.

View 1 Replies

ActionScript 2.0 :: Get Movie Clips To Point At Other Movie Clips?

Jan 5, 2009

Does anyone know a good reliable way to get movie clips to point at other movie clips? I use MX 2004.

View 1 Replies

ActionScript 2.0 :: Creating / Using Movie Clips Outside Of Movie Clips

Aug 18, 2005

Here's what I'm trying to do (in example form): I have a movie clip called "dude". Dude is animated to walk around, then drop a cigar (all inside the movie clip). But the problem is, dude moves, so if you try and move dude as the cigar is dropping, the cigar moves with him. So what I want to do is create a new movie clip instance called "cigar" OUTSIDE of the movie clip dude right as he's dropping it, so that you can move him without moving the cigar. Get it? I've attached another helpful animation to explain.

What I have right now is, on the 13th frame of dude, a few lines of code that create and place an instance of cigar. In that frame I also have an invisible instance of cigar for me to duplicate. Inside of the cigar movie clip is the animation that makes it fall to the ground. I need to change that code so that the instance of cigar is created outside of the movie clip dude. Here's the code I have now (inside of dude, on frame 13):

[Code]...

View 2 Replies

ActionScript 2.0 :: Movie Clips Which Have Sub Movie Clips Inside?

May 8, 2003

I have a problem stopping multiple clips. I have created a presentation using flash and I have many movie clips which have sub movie clips inside of them. Ok lets look at one movie clip in detail. Inside one _root movie there are multiple sub movies; each with a different movieclip labels (each movie clip is named with unique labels ie. north, south, east, west, and What I need to do is be able to STOP all these sub movie clips with one stop, and in turn PLAY these same movie clip with a second action.

The only way I know how to stop all these sub movie clips is to target each and every one individually.

[Code]...

View 2 Replies

ActionScript 3.0 :: Controlling Movie Clips Within Movie Clips?

Jun 22, 2010

What I'm trying to do is have my Flash piece have custom elements set by an XML file. I'm using ColorTransform. I have a piece that's loaded as a separate movie clip, and I can't figure out how to get to the piece and apply the ColorTransform.

Here's one example of what I'm doing for a different element on the same mc.

[code]...

So, in this example, I'm setting header_mc to a color specified in the xml. In the case I'm having trouble with, I want to set a color to a movie clip on the timeline and not the main movie

View 5 Replies

Actionscript 3.0 :: Mutliple Functions Applied To Movie Clips Within The Clips?

Jun 1, 2009

I am setting up a flash game with seven toggle on/off buttons that all do the same thing.I know how to assign them all to be able to do the same function in the main timeline. What I can't figure out is how to get them all to also do the same function within each of their respective movie clips.

Here's the code:

Code: Select allstop();
DontDrive.addEventListener(MouseEvent.MOUSE_OVER, RO_DontDrive);
DontDrive.addEventListener(MouseEvent.MOUSE_OUT, ROut_DontDrive);

[code]....

View 5 Replies

ActionScript 2.0 :: HitTest And Changing Scales And X-y Positions Of Parent Clips?

Sep 29, 2005

I'm just wondering if hitTest can be affected by the changing x,y coordinates or the changing scale of the parent clips. My platform engine doesn't seem to work everytime I try to add a script to a parenting clip (of a playable character and a computer character) that changes the x and y values of that clip as well as the scale (simulating a camera that keeps both characters in focus).

View 2 Replies

ActionScript 2.0 :: Empty Movie Clips And Duplicating Clips

Jul 19, 2006

I've been trying to reproduce an animation effect I've seen on the Armani website, but I'm stuck trying to duplicate an empty movie clip with image loaded into it. The duplicates exist and I can move them, but they are invisible. Since the duplicates reside on depths above the intitial clip I'm confused about why they are invisible. The duplicates are scripted to follow behind the initial clip - each offset by 30 pixels (though I don't have that working perfectly).

View 1 Replies

ActionScript 2.0 :: Movie Clips Inside Clips In Mx 04?

Mar 27, 2005

okay, i'm trying to create a full website myself, and inside my main scene movie, i have a movie clip for the content.. inside THAT clip on a frame for the links, i have another movie clip that has all the link buttons embedded... i've got those buttons set up so they stagger fade in as an effect... my problem is, they just keep repeating, and i want the fade in effect to stop after the first time. i've got a stop keyframe after the tween of every button motion, but i dont know the correct code for the movie/button clip itself to play once and then stop.. this is what i have right now, as an action on the movie clip with the buttons inside it:

onClipEvent (enterFrame) {
play();
}

View 5 Replies

ActionScript 2.0 :: Get Movie Clips Inside Clips In Mx 04?

Mar 27, 2005

i'm trying to create a full website myself, and inside my main scene movie, i have a movie clip for the content.. inside THAT clip on a frame for the links, i have another movie clip that has all the link buttons embedded... i've got those buttons set up so they stagger fade in as an effect...

my problem is, they just keep repeating, and i want the fade in effect to stop after the first time. i've got a stop keyframe after the tween of every button motion, but i dont know the correct code for the movie/button clip itself to play once and then stop.. this is what i have right now, as an action on the movie clip with the buttons inside it:

onClipEvent (enterFrame) {
play();
}

also if you want to see what the problem is, here's the website in it's infancy (700k)

View 5 Replies

ActionScript 3.0 :: Sub Clips In Movie Clips?

Dec 17, 2010

I have continually run into this so i guess i just don't understand some foundation to how AS3 works.
 
So, I have a movie clip in the library (ClipA) - it is linked to a class.
 
Inside Clip A there are 3 other Movie Clips (SubClip1, SubClip2, SubClip3).
 
When I place ClipA on the stage i want to adjust the frame that each of the SubClips are on.
 
BUT, when I try to set them to a frame in ClipA's class file i get an error like this:1061: Call to a possibly undefined method gotoAndStop through a reference with static type flash.display:DisplayObject.

[Code]...

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved