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


Similar Posts:


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

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

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

Using Multiple Movie Clips For Separate Buttons And Mouse Over Buttons?

Nov 24, 2009

I am using Flash CS4 with ActionScript 3 and I am fairly new at it. I am struggling with two things.
 
1. How can I start a movie clip while scrolling over a button? I know how to start a movie clip when a button is clicked.
 
2. How can I use multiple movie clips for seperate buttons?

[URL]

View 3 Replies

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

Movie Clips And Buttons

Mar 12, 2009

i just started tackling Flash and Actionscript 3.I know how to have a button react to a click by going to and playing (gotoAndPlay) a certain set of frames within the same scene [code].themselves are in a movie clip, and the "aboutpage" frames are in another movie clip back outside in the main timeline... How do I tell it to target that other Movieclip thats on the main timeline and contains the frames called "aboutpage"?Ive seen somethign like: currentTarget.gotoAndPlay ("aboutpage");But currenttarget i think looks for stuff within the target/Movieclip it lies in.. what is the code to do this:

View 2 Replies

AS2 :: Connect Swf With Buttons And Movie Clips

Mar 14, 2009

I have connected 2 pages to the index page with movieclips and buttons. I have used this action script on the button "fotoalbum"; [code]This takes me to the page called "bilder".My question is: how do i get from the flashpage "bilder" directly to the other page called " tekst" using the button "om meg"? As it is now i have to use the Home button to go back to the index page...and from there to the other pages.I have attached some test files as im sure my explanation is a bit akward.

View 3 Replies

ActionScript 3.0 :: 50 Different Buttons With 50 Different Movie Clips?

Mar 5, 2009

I'm creating a timeline of events with about 50 different points to click on. When each event is clicked on, a movie clip needs to appear (or tween onto) the screen. Then, when another event is clicked on, the previous content needs to go away so that the new content can appear.

A prefect example of what I'm talking about can be seen here:

[URL]

I've created a custom class of "TimePoint" that has a public property of date, so that I can assign a date to each individual instance of my TimePoint class.

In my fla, he timeline itself is a movie clip that needs to scroll back and forth as the mouse is moved. It contains the nested instances of my TimePoint class. I already have the scrolling movement taken care of, and I also have a tooltip date appearing over each point in time. Now I just need to figure out how to manage 50 different movie clips, each with and without graphics, bitmaps, etc.

I'm just wondering if there is any way to do this without having to create 50 different event listeners and 50 different classes just so that I can add/remove children. I'm thinking I need to use an array, but I don't know how I would implement it. I'm also not very familiar with XML.

My progress so far can bee seen here:
Timeline
version 2

View 4 Replies

Using Movie Clips As Buttons To Navigate?

Jul 13, 2009

For my online gallery, I'm using movie clips as buttons to navigate. I was having the movie clip play when you scrolled over it and off of it. Now i have it so when you click on it, it stops at the mid-way point. What on is to get it to go back to its original state when I click on something else. So basically I'm looking for a way to go back to frame 1 when a different movie clip/button is clicked on. I want it to revert back to what it was in an inactive state when I click on a different part, but I don't know how to do that

View 1 Replies

Professional :: Buttons And Movie Clips (on And Off)

Jul 15, 2011

I'm working on my own personal website for my graphic design work and I'm using flash for the intro movie, which you can either skip or after an elapsed time, sends you directly to the home page. On that intro movie (which ill call animatedface_mc) i've put two other movie clips with the eyes blinking (left and right). The eyes would be constantly blinking, as this page is open. That one is working. Off to the side are buttons of names of famous celebrities and once clicked it adds movie clips to the main animatedface_mc. For example if i clicked on the monroe_mc, it adds that famous Marilyn Monroe mole (using either mask or opacity, depending on the facial feature) on the animatedface_mc. If I clicked on tyson_mc, it adds his face tattoo. I've used the following code for this:

[Code]...

View 6 Replies

ActionScript 2.0 :: Buttons In Movie Clips?

Jul 10, 2009

I have 2 movie clips on my main timeline (let's call them MovieClip1 & MovieClip2). I have buttons inside MovieClip1 that I'm trying to (on release) direct to a specific frame in MovieClip2. Is this possible? I've tried COUNTLESS different gotoandplay and gotoandstop codes, but nothing works.

View 5 Replies

ActionScript 2.0 :: Concerning Buttons Within Movie Clips?

Jan 14, 2004

Being rather "green" with actionscripting, I am having difficulties using a sliding menu (very similar to the "infinite menu" tutorial here on kirupa) in conjuction with some actionscripting to interact with some external movies outside the main movie I am working with. What I want to do is to use each button within the menu to reference a flash movie outside the menu bar (which is a movie clip). Before I sound even more vague let me show you the code first....

aboards.onRelease = function() {
loadMovie("aboard.swf", "target");
};

So here I have a button instance (aboards) of one of the 10 buttons in the menu. I want to then reference a movie clip called "target" in the main scene of my movie to then load and display the movie aboard.swf at this reference point.

This code works well with static buttons on the main scene, but here each of the 10 buttons are located within the movie clip that makes the sliding menu work. The instance "aboards" of course works if I assign the instance to the movie clip, but then that of course means that ALL 10 buttons then will be assigned "aboards". What code change can I make to fix this issue so that each of the 10 buttons (within the movie clip) carry their own instance that can be referenced from the main scene?

View 14 Replies

ActionScript 2.0 :: Movie Clips And Buttons?

Apr 5, 2005

I have assigned a movie clip to a hit state of a button, but alas, it refuses to work. Can anyone suggest a way of using actionscript to play a short movie clip on release of the mouse?

View 4 Replies

ActionScript 2.0 :: Buttons Within Movie Clips Does Not Work?

Feb 3, 2009

im having an issue with a cursor i made following this tutorial...http:[url]........the cursor works fine with a regular button however i have buttons inside movieclips, i tried it but it isnt working, i keep getting an error in the output...

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

View 1 Replies

Buttons In Movie Clips Arrays, SwapDepths?

Jan 28, 2010

I am a Flash newbie and I've probably bitten off more than I can chew with this one...it sounded so easy!
Okay, so here's what I want to do: There are 5 people layered across the screen. When you rollover the person, they change color and come to the foreground (over the other pictures). On rollout, they go back to the background and change back in color. On click, they go to a new screen with just their picture and some information.

I first started setting this up and did each person as a button. Then I realized that in doing that, the button would not come to the foreground on rollover if it was below other buttons in the layers. So I put all of the buttons in movie clips and applied AS to the buttons (inside the movie clips, with the buttons on the main scene) and the AS2 looks like this:

[Code]...

View 15 Replies

ActionScript 3.0 :: Triggering Movie Clips With Buttons?

May 28, 2009

I'm taking an intro Flash and Action Script class and for my final I need to create a portfolio project that contains 5 unique buttons that trigger 5 unique movie clips. I'm having a hard time with this. I've been able to trigger the 1st movie clip with the first button (although I can't stop it) but I can't trigger any ohter movies with any other buttons.

Here's my code:
stop();chuck1_btn.addEventListener(MouseEvent.CLICK, playMovie);
function playMovie(event:MouseEvent):void

[code].....

View 12 Replies

Buttons Inside Movie Clips Does Not Work

Dec 6, 2009

I've created a button and placed it inside a movie clip. I've added the below script (as2) on the button however when I Test Movie, the button does not work.

[Code]...

View 1 Replies

Professional :: Buttons Actioning In Different Movie Clips?

Nov 22, 2010

So ive set up some buttons into a movie clip, but i want to get them performing actions in a movie clip that is within another clip.For example, the code below is what I have attached to one of my buttons. The Movieclip 2photosMC2 is inside a DIFFERENT movie clip to the ones where the buttons are stored. How can I script so that the button actions activate the correct clip?
 
on(release){
photosMC.gotoAndPlay("img 02");
}

[code].....

View 3 Replies

ActionScript 2.0 :: Buttons Control Movie Clips?

Jan 11, 2009

This is quite complex, in simple English, I have some folders (mc's) which I need to enter the stage when a button is clicked, when a different button is clicked I need the previous folders to animate out, before the new ones animate in! The folders feature there own functions and animations, which are viewable when clicked (they bring in external imagery and text)?

View 3 Replies

ActionScript 2.0 :: Buttons Inside Movie Clips?

Jul 31, 2007

I've got a scrolling thumbnail movie clip.Inside the movie clip are 5 buttons.I can't get the buttons to work.I know to put the actionscript(2.0) ON the button and not IN the button.The sripting is a simple on press gotoandplay frame# command.yet it won't work.Is there something specific I'm missing when putting buttons inside a movie clip?

View 5 Replies

ActionScript 2.0 :: Controlling Two Different Movie Clips With 2 Different Buttons?

Nov 12, 2008

I am somewhat new to flash and am having some trouble trying to control two different movie clips with two different buttons. Currently when either one of the buttons is pressed both movie clips start to play. How can I set file up so that if button 1 is pressed movie clip 1 will play and if button 2 is pressed movie clip 2 will play

View 3 Replies

ActionScript 2.0 :: Movie Clips Lined Up As Buttons?

Mar 19, 2004

ok I have 3 movie clips lined up as buttons. When you rollover one, the others fade out to an alpha of 20.

I also added an arrow that is called when I click on a mc to align it self to the top center of the mc.

My prblem: When I added the arrow I lost my fading. Somewhere in the actions is messing this up.

Here is a fla file. Please help. fla file on next post

I am using Flash MX actionscript I also have Flash MX 2004 but I dont like it.

View 10 Replies

ActionScript 2.0 :: Movie Clips As Buttons And Rollover?

Feb 28, 2005

Im trying the following menu, and Id like to make them to have rollover, and rollouteffects, staying in the "over" position when clicked.When clicking in a different button, the previous clicked button should go back to normal position, but not just jump right a standard button.How can I do that without using a prototype, because is a horizontal menu and the buttons have different width sizes

View 1 Replies

ActionScript 2.0 :: Buttons Within Movie Clips Are Disabling?

Oct 8, 2003

so...i've got these buttons in movie clips. the buttons are animated for mouseover and i've also got an action on the first frame of the main timeline to get the buttons to stay active when clicked on, so the view knows where he is.the problem with this is that any time i go to put an action on the button itself to pull up an external .swf or whatever, the buttons stop animating and/or stop staying "depressed" on the active sheet.

View 1 Replies







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