ActionScript 2.0 :: Targeting The Movie Clips?

Jul 29, 2006

I've just finished the navigation buttons in my flash movie which take the viewer to the different sections of the site by directing the playhead to the right frame label. I've used the following code to do this:

on (release) {
this.gotoAndStop("info");
}

I have a problem though: I've also created a movie clip animation where two rectangular shapes move in simultaneously from the left and right sides of the stage creating a sliding door effect. When the viewer is in a particular section (frame) and they use one of the nav buttons to go to another section, I'd like for this animation to play (giving the effect of sort of closing a particular section) and then having another movie clip where the sliding doors open up in the incoming section to reveal that section. My problem is that I don't know what actionscript I'd use to achieve this. What code would I use on the nav button to make the first sliding door movie clip play, then have it move to the second sliding door movie clip and then finally go to the section labelled on the nav button.

View 5 Replies


Similar Posts:


ActionScript 2.0 :: Targeting Movie Clips?

Feb 25, 2002

Ok, here's the deal. I have a MC in a MC, but i want to target the middle MC.MainStage -> Clock -> clock(art)there is a button on "clock(art)" i want it to target "Clock" to animate. i know the root function should target the mainstage...how can i target that middle MC?

View 3 Replies

ActionScript 2.0 :: Targeting Movie Clips From Buttons Within Other Mcs?

Feb 27, 2010

I'll try and make this as clear as i can, so as not to waste your time. I think it's something really simple i'm just missing...On the main timeline, i've got a movie clip ("mc_A") that contains two other movie clips ("mc_1" and "mc_2").at the end of it's timeline, I put a button in "mc_1" to play "mc_2". I'm using

on (release) {
telltarget ("_root.mc2") {
play () ;

[code].....

View 1 Replies

ActionScript 3.0 :: Targeting Nested Movie Clips?

Feb 25, 2010

Here's my example, on frame 1 is an mc I created named holder. Inside there's an mc named box. Inside box are four mcs, circles1-4, inside the circles I have four skulls. If I want to affect only the skulls, what is the proper way to go about it?For instance, whats the proper way to write a trace statement?or , if I wanted the skulls to fade individually on mouse over, how would you properly go about writing this function?
 
function over(evt:MouseEvent):void{
evt.target.alpha = .5;
{

[code]....

View 8 Replies

ActionScript 2.0 :: Targeting Children Movie Clips?

Jan 23, 2009

I have main MC when press it opens up and then has buttons in that MC.if main_MC is open then press it again will close it. Problem is I need to target the buttons inside main_MC but I can't cause it targets main_MC and thus closes the MCI tried doing main_MC.sub_MC.onPress = function ...... but it still targets the main_MC.

View 4 Replies

ActionScript 2.0 :: Targeting Attached Movie Clips

Dec 13, 2005

I'm having trouble figuring out how to target a series of movie clips i'm attaching to my movie.I'm loading some xml for a slideshow and i'm generating a series of dots at the bottom of the screen to indicate how many steps are in the slideshow and the circle is meant to highlight your current position as you step through the presentation.the MC for the dots is two keyframes with a different color and a stop action on each frame.
Here's the rundown of the code:

1. There's nothing weird here, i'm just bringing the xml in [code]

2. Here is the loadXML function i reference in the xml.Data.onLoad above:[code]Okay so now i have some dots with the instance names, step0, step1 etc. right? And at the end of my loadXML function you see the firstImage(); function. This is where my problem is, how do i target the first (step0) instance? I have no problem when I write "step0.gotoAndStop(2);" but I need to figure out how to use a variable to keep moving it along when i make my next and last functions for the slideshow.

3. Here is the firstImage function:[code]how do i target the step the same way i target the image? do i have to go back and do something in the loadXML for loop?[code]

View 2 Replies

IDE :: Targeting Multiple Movie Clips In Motion Tweens?

Apr 2, 2009

I am trying to target multiple tweens, trying to turn their visibility false/true. I have named each tween in the tween properties box, and I have targeted them like this: plane.plane2.tween1._visible=false (and so on), but no go! Only the first of the seven is actually affected--the others are not.

View 11 Replies

ActionScript 3.0 :: Targeting Movie Clips - Go Back And Alter Appearance

May 28, 2009

I have created several movie clips in a loop.

[Code].....

After they are added to the stage I later want to go back and alter their appearance. I am having difficulty targetting them:

[Code]...

View 3 Replies

ActionScript 2.0 :: Targeting Dynamic Clips In Array?

Jun 29, 2006

I made an array containg 3 clips and dynamically attached them to my main timeline. I can successfully tween all of them with the following code.

Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;

[code].....

View 2 Replies

ActionScript 2.0 :: Targeting All Dynamically Attached Clips

Aug 21, 2006

I want to target ALL the 20 clips attached as below, at the same time, when I press the button "blue". However, my code can target only ONE of the clips at any time. I have tried attaching the clips to a separate dynamic clip and then targeting it but problems with the registration point (0,0) of that clip means I cannot achieve the result I want:

Code:
for(i=0;i<20;i++){
mc = this.attachMovie("red","red2"+i,i);
var scaleFactor:Number = Math.random() * 80 + 20;
mc._x = Math.random()*500;
mc._y = Math.random()*400;
mc._xscale = scaleFactor;
mc._yscale = scaleFactor;
blue.onRelease = function(){
new Tween(mc,"_xscale",Strong.easeOut,mc._xscale,200,3,true);
new Tween(mc,"_yscale",Strong.easeOut,mc._yscale,200,3,true);
}}

View 2 Replies

ActionScript 2.0 :: Targeting Dynamically Generated Clips?

Jul 27, 2008

I'm trying to make a flash widget that loads thumbnails from an xml document and have each thumbnail link to a different web page. So far everything works fine but I don't like using _root incase the widget gets loaded into another swf. In my expereice _lockroot dosen't always work.the line highlieted in red will only work if targeted through root as opposed to all my othere reference to ["placeHolder"+i] which use this.["placeHolder"+i]. I've tried _parent, this._parent and adding lots of other _parents. Nothing will work this is the file structure _root.placeHolder'N'.tn_mc. how I can substitute _root for a relative path.

widget_xml = new XML();
widget_xml.ignoreWhite = true;
widget_xml.load('flashWidget.xml');//path to document

[code].....

View 1 Replies

ActionScript 2.0 :: Targeting Clips On Layers - Change The Level Dynamically?

Jan 15, 2004

[URL] Theres the example to work with....anyway....as you can see, im loading in movies externally...each on its OWN different level....what i want to do is make it so that when i click a menu option on the left, the current swf loaded on the stage closes and the new one comes up (to avoid the clutter of 10 differnt windows all scattered).....here are my thoughts:

1. have variables on the root timeline that are basically "currentLoaded" and "currentLevel" -- which basically will store the name of the currently loaded swf and the level that its on.

2. each swf would have code on frame one that would see if the 'currentLoaded' varible is blank, and if not...it will close the current loaded swf ....

my dilemma is that i dont know how to change the level dynamically...i know you could do the instance name like this:

[Code]....

View 4 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 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 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

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 :: 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 2.0 :: Targeting From Movie Clip?

Oct 7, 2003

I have a movie clip in my main movie. The movie clip has buttons on it that tell where the play head should go in the main movie. I'm using this script;

[AS]
_parent.gotoandStop(28);
[/AS]

The play head goes to the right frame but it keeps playing even though I've specified it to "gotoAndStop" at frame 28. I've tried using labels and addressing it that way but same thing happens.

View 2 Replies

ActionScript 2.0 :: Targeting Frames In A Movie

Jan 13, 2007

I can target a movie from another movie just fine, but for some reason when I try to target a specific frame within a movie, from another movie that I'm already in, it will not work. All it does is replay the movie that I'm in. I've tried a million different combinations of code, searched the internet repeatedly, but found nothing that has worked; and I'm about to throw my computer out the window! I know this should be ridiculously simple but... I can't get it!

I'll try and explain what I'm trying to do in a simpler way: I have my Root > One >> Onetwo, Onethree. Onetwo and Onethree are in the movie One, and One is on the main level/root. I want a specific frame in Onethree to gotoAndStop on a frame in Onetwo. I know it sounds confusing but it's a terribly simple thing -- my code's just not working. I would copy and paste what I'm doing but I've done every single combination imaginable to me so I'd rather just have someone here tell me how they would accomplish this.

View 14 Replies

ActionScript 2.0 :: Fmx - Targeting A Movie In A Different Frame?

Jun 4, 2003

I am curious if it is possible without using some other kind of language to target a movie that is located in the same html file, but in a different frame?

Basically lets say my one swf files is a navigation bar. I then have other frames in the html file and when i click a button i want it to goto a frame in a different swf file which is in a different frame. Do i have to do a getUrl call? or is it different because is it an swf file?

View 2 Replies

ActionScript 2.0 :: Targeting From Movie Clip

Oct 7, 2003

I have a movie clip in my main movie. The movie clip has buttons on it that tell where the play head should go in the main movie. I'm using this script;

[AS]
_parent.gotoandStop(28);
[/AS]

The play head goes to the right frame but it keeps playing even though I've specified it to "gotoAndStop" at frame 28. I've tried using labels and addressing it that way but same thing happens.

View 2 Replies







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