ActionScript 3.0 :: Controlling Movie Clip Timeline From Within Another

Feb 19, 2009

On my main timeline I have two movie clips sitting side by side in frame1. They are called content_mc and content_mc2. Those are their respective names in the library and as instances. Now, I have a button in content_mc in which I am looking for the following behavior. When I click it, I want the timeline inside
content_mc2 to jump to frame2. MovieClip(parent).gotoAndStop(2); This code would be just dandy if I wanted to go to frame 2 of the main timeline, but I cannot find, for the life of me, how to go up one level (parent) and then specify down a new level (content_mc2). In other words, where do I put "content_mc2" in this syntax?

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Controlling Main Timeline In A Movie Clip?

Nov 5, 2010

How would one on a specific frame inside a movie clip cause the main timeline to go to a certain frame label?

I know how to use gotoandstop(), but i can't seem to find a working, correct syntax variable that accesses the main timeline and not the movie clip's timeline.

View 3 Replies

Movie Clip Button Controlling Main Timeline?

Jan 4, 2012

I'm in the process of designing this site as a portfolio for my art and am in the process of creating and laying out the galleries. My idea was to create movie clip animated buttons that would react to the roll over stuff. I got that part to work the way I wanted it. But now, I can't seem to figure out how to put a "Gotoandplay" type of code on the buttons so that the timeline would jump to the appropriate frame and play. (I put an "on(release) gotoandplay" on it the way I would put it on a button but it never responds. I have a couple of buttons that work fine with a "geturl". so I thought a "gotoandplay" would work fine. If this can be figured out in a way that I can easily use it for all buttons with just the frame number needing alteration, that would be best. After you click the splashpage door jpg, there will be a piece of paper on the floor. That is a button which should trigger the animation that starts at frame 114. When clicked, the page lifts up and spread open to two pages. But it never reacts

[URL]

View 6 Replies

ActionScript 3.0 :: Controlling Root Timeline From Movie Clip?

Nov 18, 2008

I'm trying to control the root timeline from a movie clip. On the last frame of the movie clip, I have:

MovieClip(root).gotoAndPlay (10);

which successfully brings me back to frame 10 on the main timeline. However, from here, none of the ActionScript that is on Frame 1 seems to work... the rollovers aren't working, except on those embedded in a separate movie clip.

View 2 Replies

ActionScript 3.0 :: Button In Timeline Controlling Movie Clip?

Feb 25, 2010

But how should I adapt such to control a movieclip called mcGlider from a button on the main timeline.

btn1.addEventListener(MouseEvent.CLICK, btn1Click);
function btn1Click(evt:MouseEvent):void {
var url:String = "http://www.awebsite.com/awebpage.html";

[Code]....

View 9 Replies

ActionScript 3.0 :: Button Controlling Timeline Of Movie Clip

Nov 13, 2010

What I am trying to achieve is have one movie clip containing a button control the timeline of another movie clip.I know how to get a button to control the timeline of it's current movie clip, however, getting a button to control the timeline of a seperate clip seems to evade me.

View 6 Replies

ActionScript 3.0 :: Button Controlling Timeline Of Movie Clip?

Nov 13, 2010

What I am trying to achieve is have one movie clip containing a button control the timeline of another movie clip. I know how to get a button to control the timeline of it's current movie clip, however, getting a button to control the timeline of a seperate clip seems to evade me.

Re: Question: AS3 Button controling timeline of movie clip.

here is the coding I am using too:

but_shows.addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown);
function onMouseDown(event:MouseEvent):void{
_root.mainContainer.gotoAndStop(2);
}


it says that I have an error:

Symbol 'ribbon_menu', Layer 'actions', Frame 1, Line 20 1120: Access of undefined property _root.

but_shows is located in a movie clip called Ribbon_menu that is trying to go to and play x fram in a movieclip called mainContainer.

Both Ribbon_menu and mainContainer are located on the root timeline.

I wonder since the button scripting is located in Ribbon_menu and not the main timeline is the _root command confusing itself with the root of the stage, or the stage of the ribbon_menu movieclip!

View 4 Replies

Professional :: Button Inside A Movie Clip Controlling Main Timeline?

Mar 10, 2010

I have a movie clip on the main stage- inside that movie clip is a button- I want that button to contol a function on the main timeline-

example: Button Script

closeAll_btn.addEventListener(MouseEvent.MOUSE_DOWN, goCloseAll);
 
function goCloseAll(e:MouseEvent):void {
****don't know what to put here to activate "closeAllOpenMovieClips" function on main stage****
}
 
example: Main Stage Timeline Script
 
function closeAllOpenMovieClips():void {  trek_mc.gotoAndStop(1); lost_arts_mc.gotoAndStop(1);  rain_mc.gotoAndStop(1);  vintage_mc.gotoAndStop(1);}

***don't know if I need more script on Main Stage Timeline that just "function" ***

View 5 Replies

Controlling A Movie Clip With A Button Inside The Movie Clip?

Mar 9, 2009

I'm just trying to find the right action scrip for instance on my button to control the movie clip it is within.I have currently tried..

on (press) {
mc_lexisnexis_main.gotoAndPlay(2);
}

[code].....

View 4 Replies

ActionScript 3.0 :: Controlling Animation Of Movie Clip Within Another Movie Clip

Apr 16, 2010

I press a button and have an object (a movie clip) move onto the stage - that works ok.When that movie clip gets to a certain spot, I want it to stop - that works ok.I want to be able to press the button again and have it leave the stage - that works ok.Then if I press the button again, it will come back on the stage again - that works ok.when it stops on the stage, I want a part of it to animate just once. I've been trying to do this by putting a second movie clip inside of the first, but it won't work.

View 4 Replies

ActionScript 2.0 :: Controlling A Movie Clip Inside Another Movie Clip?

Jan 30, 2007

I made a movieclip to put the blocks(which are movieclips too) in a breakout clone.lets give the container movieclip the instance name "container"the blocks are preset in that container with their own instance names...what I want to do is a hittest with those blocks but I found out that.[code]

View 3 Replies

ActionScript 3.0 :: Movie Clip On Main Timeline Receiving Input From Nested Movie Clip

Feb 23, 2011

I've got a main timeline .swf file called "blank.swf" which contains nothing but two blank movie clips one called called "pproduct", the other called "ppalette". In the script frame of this main timeline I use the simple "Loader = new Loader();" method to load a URL of an .swf file into the "ppalette" movie clip. The "ppalette" movie clip contains several color chip buttons, each of which use the same Loader method above to load an external .swf into a clip. Here's what I want to do: let those color chip buttons, when the "blank.swf" file loads, be used to load an .swf movie into the "pproduct" clip on the main timeline. I'm wanting to be able to swap depths with various movie clips which will take out the movie which has the palette, but I want whatever that palette has loaded in the original "pproduct" clip to stay there.

[Code]...

View 3 Replies

ActionScript 1/2 :: Text File Controlling Movie Timeline?

Mar 11, 2010

I have a movie where on the main timeline stage I have placed a movie clip (Clip1) and a dynamic text field. I have a .txt document that contains a variable that will always be a number (Var1).
 
Currently, the dynamic text field reads Var1 and displays that number. This is great, but I want Var1 to be used in 2 places:
 
How can I get Clip1 to also read Var1 and, based on the number that is Var1, play a certain frame of Clip1?
 
I'd like it to go like this: If Var1 is <1000 then play frame1, If Var1 is =1000 and <2000 then play frame2, If Var1 is =2000 and <3000 then play frame3, and so on...

View 17 Replies

ActionScript 2.0 :: Controlling Timeline Of Movie Using A Scrolling Slider Mc?

Jul 2, 2003

how to create a movie where a user can control the position of the playhead on a root or mc timeline with a scrolling slider mc? for example, check out [URL] home page (flash mx movie introducing ground breaking sites nike skateboarding, eagle f-1, and cbc home delivery).

View 1 Replies

IDE :: Controlling Movie Clips Using Alpha On Its Own Timeline With A Stop(); At The End??

Sep 10, 2009

I have created a website on the time line. There is actionscipt contolling which frame to play via a button. Within this button is a movieclip with a fade in using alpha on its own timeline with a stop(); at the end.The problem is I only want it to play when you first see it from moving to that page from the main timeline. Currently if i move over the button it plays the movie again which i dont want to happen. I do however want to retain the over states etc for the button.

View 2 Replies

ActionScript 3.0 :: Controlling A Movie Clip From Another Movie Clip?

Feb 22, 2010

I've got a list of links nested in a movie clip named "link_list_mc", and I've got a movie clip that simulates a radio equilizer nested in another movie clip namedcentral_control_mc".Both mcs are directly on the stage. As you can see I can reproduce the music of my links but I cannot put to play the movie equilizer. My question is, how could I send an order (like in this case: stop() or play()) to a movie clip from another movie clip?.Ive beensing:root.central_control_mc.equilizer.stop()parent.central_control_mc.equilizer.stop().t neither of them seem to work.This is the code in the first frame of my nested movie clip "list_links_mc".

Code:
var mySecondChannel:SoundChannel = new SoundChannel();
//click_cl01_al01.addEvent..."click."..click_cl01_al01

[code].....

View 2 Replies

ActionScript 2.0 :: Movie Clip Controlling From Another Movie Clip?

Sep 16, 2009

I have a movie clip and at the end of the timeline I have an action where it stops. Then I want it to play another movieclip on the stage that is stopped. My code is:

stop();
_root.narration.play();
But when I try it doesn't work.

View 1 Replies

ActionScript 2.0 :: Buttons In Movie Clips Controlling Main Timeline?

Aug 5, 2004

Ive been having problems getting buttons within a movie clip to control the main timeline and switch scenes. Ive tried everything from _root.gotoAndPlay to with(_parent) and such.

View 1 Replies

ActionScript 3.0 :: Loading Main Timeline Variable From Movie Clip Timeline?

Feb 2, 2010

I cannot seem to find anything of what I need from google.(Well, I can find the reverse method to what i need ) Basically I wish to access a variable declared in the Root Timeline from my Movie clips timeline.

[Code]...

View 2 Replies

ActionScript 2.0 :: Controlling Main Movie From Movie Clip

Jun 16, 2005

I have instances in my movie layed out as such

_root contains
[sliderX] which contains
[holder]

Where X is a number from 1-500 inside [holder] is a button that when pressed should load an image into new browser (does this fine) then move the main movie to it's next scene. this is when it fails. I have tried

[Code]...

View 1 Replies

ActionScript 3.0 :: Movie Clip Timeline To Main Timeline Coding?

Oct 9, 2009

I have a file comprised of 1 scene and two movie clips. The clips are instanced into the Main Timeline and occupy Frames 1 and 2 respectively.MovieClip1 is an animation that has navigation buttons that appear at the end of the clip. I'm trying to get mouse click navigation to make Frame 2 on the Main Timeline active.

Here is what I'm trying but it is not working:

btExplore.addEventListener(MouseEvent.CLICK, ExploreClick);
function ExploreClick (evt:MouseEvent):void {
gotoAndStop(2);
}

this takes the animation to Frame 2 of the Movie Clip Timeline not Frame 2 the Main Timeline.

View 9 Replies

ActionScript 2.0 :: Controlling Multiple Movie Clips With 1 Set Of Code On The Main Timeline?

Jul 19, 2011

So I have been trying to figure out a way to control multiple clips using the same "on press" & "on release" statements located on 1st frame of main timeline. A variable is being set to a value that correlates to the name of each movie clip as an interaction occurs.Ex: user clicks from a selection of buttons & depending on the button clicked it sets clipNum = "1" through "21".What I want is to have something like the following code that will give the user the ability to click and drag the clip with code on the main timeline similar to the following:

_root["drag_" + clipNum].onPress = function () {
startDrag (_root["drag_" + clipNum]);
};

[code].....

View 2 Replies

ActionScript 3.0 :: Controlling A Movie Clip With Another?

Mar 22, 2010

Problem:I have my main Scene 1.In that scene I have 2 layers.Layer 1 has a movie clip named ca.Layer 2 has a movie clip named tutorial.When a button is clicked in movie clip ca I want it to tell movie clip tutorial to gotoAndPlay("31")

I was using the code:
btn_ca.addEventListener(MouseEvent.CLICK,click01);
function click01(e:MouseEvent):void {

[code].....

View 4 Replies

Controlling A Movie Clip In An External Swf?

Nov 4, 2010

I'm working from main.swf and I need to call another swf to display one of four flvs once the appropriate button is clicked.

main.swf = my main content
player.swf = contains mc_playMovie
mc_playMovie = embedded in player.swf and contains four frames, each with a different flv movie.

My code so far:

butDelmar_thumb.onRelease = function() {
createEmptyMovieClip("targetMC", this.getNextHighestDepth())
targetMC._x = 0
targetMC._y = 0

[Code].....

View 1 Replies

ActionScript 1/2 :: Controlling More Than One Movie Clip At Once?

Feb 21, 2010

I am making a game were you create movieclips with a button and move them around using a function system. The problem is, I want to control all of the same attached version of that movieclip in the code. how exactly would i do that if the instance name changes every time I load it?

View 3 Replies

ActionScript 3.0 :: Controlling Movie Clip From Another?

Jul 20, 2011

I'm at the end of my flash site creation and I would like to have the "mouse_down" keyframe in my movie clip to change the frame of my other movie clip displaying the content of the page. How would I go about a gotoAndStop() function to control a movie clip from another MC?[Code]...

View 1 Replies

ActionScript 2.0 :: Controlling A Movie Clip?

Apr 18, 2004

The problem I have is when i select to move the movie clip, i can't get it to stop animating when i tell it to go to a certain place.

View 4 Replies

ActionScript 2.0 :: Controlling One Movie Clip From Another?

Oct 10, 2004

What is the best way or controlling one movieclip from anoither. Pretty much want my menu and contentas two separate files but of course i need to contol my content from the menu.

View 1 Replies

ActionScript 3.0 :: Controlling A Movie Clip From A Class

Oct 12, 2009

so here is the thing: I have a movie clip with 12 frames (lets call him MC), each frame shows a symbol. I want to create a class that control the MC instances, (lets call that controlClass) the controlClass will have function to change the frames of the MC instance and some other stuff. last thing I tried is that you give the constructor of the controlClass the instance name of the MC and tried to do that for example: stage. + MCInstanceName + . gotoAndPlay(2); that's what I'm trying to accomplish, at least.

View 4 Replies

ActionScript 3.0 :: Controlling Movie Clip Children

Jul 10, 2010

I am making SWFs that an interface will load and control (pause, re-start, stop, etc.).When the interface is paused, the main movie clip will pause but not it's children movie clip.Note that I didn't write the interface AS3 code. I am supplying the SWFs that are loading into the interface. The developer of the interface won't allow me to use animated movie clips in my SWFs since he can't control them with the interface. So all my animation need to be on the main timeline.Can I provide him with some AS3 code to allow the developer to control the child movie clips or is there an Event Listener scheme I could include in the child movie clips that would pause, stop, restart, etc when the main movie clip changes?

Also...in the meantime...since I currently do not have a fix at this time and since all my animations are on the main timeline, is there a way to select multiple tweened objects (movie clips and graphic on difference layers) and move or resize them across multiple keyframes?

View 1 Replies







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