ActionScript 3.0 :: Control Movieclips That Are Within A Movie Clip?

Nov 19, 2009

What I'm trying to do is control movieclips that are within a movie clip I have added to the stage.

First I did this:

var navcon:NavigationContainer_mc = new NavigationContainer_mc;
addChild(navcon);

This worked fine. But within this there is a mc called printBtn_mc that I want to target.I tried to declare it as a variable like I did with NavigationContainer_mc, but it doesn't work.

View 9 Replies


Similar Posts:


Professional :: Control The Movie Clip Mc_allPages From Within The Movie Clip Mc_buttonMenu?

Aug 20, 2010

I am making a web site in flash in which I have multiple movie clips.I have mc_buttonMenu on the main timeline.Inside of mc_buttonMenu, I have 3 buttons that are all button symbols.From the main timeline, I have a movie clip called mc_allPages.In this movie clip, I have a few layers.I have the content layer.This layer controls how my pages display.I have another layer called labels.I labeled frames 1 to 10 as 'home' and layers 11 to 20 as 'contactUs'.I have another layer in mc_allPages called actions.I put a stop(); on frame 10 and frame 20 on this layer.I want to be able to control the movie clip mc_allPages from within the movie clip mc_buttonMenu.I put some action script in various places, but it never worked.I tried this action script:
 
_root.btn_home.onPress()
{
Gotoandplay("home");[code]...........
 
I tried placing that code on the main timeline, inside mc_allPages, inside mc_buttonMenu and split up into both buttons appropriately for btn_home and btn_contactUs.Sometimes the animation would stop on frame 10 and sometimes it would just play through to frame 20 and ignore the stop(); I put on frame 10 inside the mc_allPages movie clip.However, whenever I pressed the button ( btn_contactUs ), it never went to the frame labeled "contactUs" in the allPages movie clip.

View 11 Replies

Buttons Inside A Movie Clip To Control Same Movie Clip?

Aug 27, 2009

I am trying to place buttons inside a movie clip to control the timeline of the same movie clip. This does not seam to work like buttons on the main timeline. When I play the movie the cursor does not turn into a hand and the rolloever affects only sort of work. I have read about controling the movie clip with buttons on the main timeline, but I need one of the buttons to change halfway through the movieclip. I want to be able to jump to interior shots while in the exterior section and vice versa. It would seem that button would work the same way inside a movie clip as they do on the main timeline, but that does not appear to be the case. I am using CS3. Action scrip 2.0 is selected, but I could change it to 3.0 if it would make a difference.

View 6 Replies

ActionScript 2.0 :: Loop Through A Movie Clip And Assign A Function To Each Of The Clip's Child Movieclips?

Jan 3, 2007

I want to loop through a movie clip and assign a function to each of the clip's child movieclips. when i do a for...in loop and then do a typeof() trace I get "string" and obviously it won't let me assign lets say 'onRollOver' functions to the children.

View 6 Replies

ActionScript 3.0 :: Movie Clip Control Another Movie Clip?

Feb 9, 2009

On my timeline have two movie clips. In one of my movie clips i have a button that when you click it i want it to navigate to another frame in the other movie clip. Here is the code i have in the movie clip with the button.

[Code]...

View 1 Replies

ActionScript 3.0 :: Control A Movie Clip From Another?

Dec 10, 2009

I have a parent movieclip (present_content_mc) that has two nested movie clips, players_content_mov is the first one. It's on frame 6 of the parent clip. The second movie clip, bios_mc is on frame 7 of the parent clip.

Now, my problem is getting a button on frame 2 of players_content_mov to go to frame 18 of bios_mc on click. Here are the two types of coding i've tried[code]...

View 9 Replies

ActionScript 2.0 :: Control Movie Clip From Parent Swf

Sep 7, 2009

Im trying to control a movie clip that is part of a swf from another swf file. For example. My main flash file is called index.swf. this flash files loads another flash file called image.swf within image.swf are several movie clips (mc_1, mc_2) that I need to control show hide. I need to do so directly from index.swf.This would be flash 9 action script 2.Here is the code i am trying to work with. "filter" is a movieclip on index.swf. mc_1 and so on are movie clips on image.swf. What is the path i need to define before "mcfadeTo..."[code]

View 6 Replies

ActionScript 2.0 :: Control 3 Movie Clip With One Button?

Nov 6, 2009

i have 1 button and 3 Movieclip there is 2 frame in each move clip . i want to control all mc with my button. when i press it all mc go to frame 2 .

i use this action for button :

Code:
on (release) {
_root.f1 = true;
}

and use this action on first frame of each movie clip :

Code:
stop();
if (_root.f1 == true) {
gotoAndStop(2);
}

but don't work

View 7 Replies

Movie Clip Control Main Timeline?

Dec 22, 2009

I am simply trying to tell my main timeline to go to the next frame when a movie clip reaches the end of its timeline (using AS3). Here is what I have which does not work.

Code:
MovieClip(root).gotoAndPlay(nextFrame);

View 2 Replies

ActionScript 3.0 :: Control Nested Movie Clip?

Jan 4, 2010

I try to control nested movie clip.So i have box movie clip and on this movie clip i put tree movie clip.And now i try to change for example apha of tree. Code:

//box_mc.tree_mc.alpha=.4;
box_mc.getChildByName("tree_mc").alpha=.4;
"" for me not logical symbols:) it looks like trace("blabla"); why need use ""?

[code].....

View 1 Replies

Professional :: Flash 8 - Add Control To A Movie Clip?

Mar 22, 2010

I am  currently working on flash 8 tool.I wanted to know how to add control to a movie clip ,as in, how to play animations of an SWF file if the mouse is clicked anywhere on the movie clip

View 1 Replies

ActionScript 3.0 :: Movie Clip Depth Control?

Jan 31, 2011

I'm having a huge problem trying to place movie clip under other stuff. Here is the thing I have three layers and I need to place vid_mc on the midle one i've tried creating a movie clip and intancing it as vid_mc and removing de addChild (vid_mc) from the code but ir didn't work.

[Code]...

View 4 Replies

Professional :: Script To Control Movie Clip?

Mar 10, 2011

I would like to ask the script to control movie clip?clicking the button, play starts the eventclicking another button, the event starts stopbut I've tried and failed.

View 1 Replies

Professional :: Can A Movie Clip Control The Timeline

Aug 16, 2011

I have a movie clip with buttons placed on the stage. I set the buttons in the movie clip to GoToandStop on unique frame labels on the stage. However, the buttons are not working.

View 26 Replies

ActionScript 2.0 :: Using SQL Info To Control A Movie Clip?

Dec 28, 2011

Ok, in a nuthsell I am looking to write a piece of actionscript using an included PHP file that connects to a mySQL databse. Depending on the result of the database, I want to know if its possible for the actionscript to then control a movie clip.Ok I'm probably not making an awful lot of sense, so I'll basicaly lay out what I want to perform (if it is at all possible).The flash file will essentialy be a map of the world and will list certain ports (i.e. New York Harbour, London Harbour, Sydney Harbour). The flash file then connects to a database to find out if each harbour has a sailing ship present. If a ship is present at the harbour, a movie clip of a ship would be turned on for that particular harbour, if no ship is present the movie clip would remain hidden.

View 2 Replies

ActionScript 2.0 :: Control An Attached Movie Clip?

Feb 18, 2009

How do i change movie clips inside MC3?lets say i have a button called but1 inside MC3, how do i make his enabled=false?

View 6 Replies

ActionScript 3.0 :: Control Movie Clip In Another Class

Sep 13, 2010

Im trying to make a simple pacman game and im relatively new to as3 but I have found its very similar to java.What I'm trying to do is build a class that will control everything my pacman does, so if I create an instance of the class I would want to be able to set the position of my pacman by doing something like this:[code]Then I would like this code to call the setXPos function to update a "pacman" movie clip inside the Pac class. DocumentMain.as - the class file for pacman.fla, this file will instantiate the Pac.as class and tell it everything it has to do to the movie clip (created in the Pac.as file) on the stage.Pac.as - this is the class that creates the "pacman" movie clip, controls it via input from DocumentMain. as, and shows it on the pacman.fla stage.

View 9 Replies

ActionScript 2.0 :: Navigation Movie Clip Control?

Dec 5, 2002

I'm trying to make a rollover activated animation ( i think it is 40 frames) and the animation will play, then stop at a predetermined location, when you roll "out" of that button the movie clip should play back to the original(start) position. but if you roll over another button, it will move to position... and react the same with each buttons.I uploaded a fla for a more comprhensive explanation, considering i've been working for the past 15 hours, my englis idn't whud id wons wus.i've tried a few different ways to imitate this, but each has made me mad and i have to have a working demo by friday, otherwise i'd take my time and try a few more methods but i still have the rest of the damn thing to put together, tons of animations.

View 2 Replies

ActionScript 2.0 :: Using GetHours To Control A Movie Clip?

May 21, 2007

I have a movie clip that animates across a set of labels that are based on a 24hour day. The hours are separated into blocks and the basic idea is to mimic a pda style daily calendar based on the current hour. The day starts at 6am and ends at 9pm.

This is the code i have but doesnt seem to be working correctly, im not sure i have it right here but im thinking the "AM, PM" thing is messing it up...

var myCalate = new Date();
var myMinutes:Number = myCal.getMinutes()
var myHours:Number = myCal.getHours()

[Code].....

View 1 Replies

ActionScript 2.0 :: Movie Clip Control - Zooms Out

Apr 22, 2008

[Code]...

If movie A is loaded and I click button B, I need movie A to do a small animation where it zooms out and once that is done movie B can zoom in.

View 1 Replies

ActionScript 2.0 :: Control Movie Clip Using Buttons?

May 6, 2008

My question is probably very simple, all I am trying to do is control "myMovie_mc".I have created four buttons "up_btn", "down_btn" etc.I can get the movie clip to move each time I rollover a button.How do I get continuous movement when I keep my cursor over a button?

View 2 Replies

ActionScript 2.0 :: Control A Movie Clip To Play?

May 18, 2004

how to control a movie clip to play, say every 3rd frame instead of every 1? Thus creating the illusion it is playing faster.

View 3 Replies

ActionScript 2.0 :: Get Button To Control Movie Clip?

Dec 12, 2004

I'm trying to get an invisible button to control the timeline of a movie clip. On rollOver, I want my movie, clipA, to move foward 1 frame for every fps that the user is over the button, starting with frame 40, until clipA reaches frame 50. Then on the rollOut I want clipA to move backward 1 frame for every fps that the user is off the button until it goes back to frame 40.

I was trying to use _currentframe+=1 & _currentframe-=1, but i got no response.

View 1 Replies

ActionScript 2.0 :: Have 2 Movieclips - Move Both Of Them But The Second Movie Clip Will Only Move If The First Clip Reach His Final Destination?

Aug 29, 2003

i have 2 movieclips: i want to move both of them but the second movie clip will only move if the first clip reach his final destination how do i do that?

View 2 Replies

ActionScript 2.0 :: Button Release Control For Movie Clip?

May 29, 2007

I have a Movie Clip which has a button and animated image on 2 layers, there is also some action scipt to control how the layers work.The Movie clip sits in my main windows and what I need to do is make the movie clip action open a swf external file in the movie clip holder I have made, I have acomplished the orignal external file to load, but now need to add diffrent files to the Movie Clip buttons.here is the base code for loading the original external file\ Code \loadMovie("news.swf","movieholder");

View 4 Replies

ActionScript 3.0 :: Control Root Timeline From A Movie Clip

Oct 1, 2007

In Flash CS3 using Action Script 3, how can I tell the main timeline to gotoAndStop(); a certain frame from within a movie clip.

I have a menu (which is a movie clip) with various buttons. Each button corresponds to a certain frame in the main movie. So if a user click on Button1, it should gotoAndStop(1); and Button2 should gotoAndStop(2); and so on.

In Action Script 2, I could use _root.gotoAndPlay(2); from what I understand, but that does not work in Action Script 3.

View 9 Replies

ActionScript 3.0 :: Control Sounds In A Movie Clip Using Buttons?

Nov 16, 2010

I have five audio clips that need to be played when their corresponding button is clicked, but need to be stopped when the same button is clicked or when another one is clicked and when the user clicks out of the movie clip to get back to the main interface.

So far I've been trying to tinker with this:

var sound1:Sound = new Yield();
var mySoundChannel:SoundChannel;
numberThree.addEventListener(MouseEvent.CLICK, clickThis);

[Code].....

View 3 Replies

ActionScript 2.0 :: Control A Movie Clip From The Library At Runtime?

Mar 13, 2011

I have a Flash movie as2 that has a main movie that loads other movie clips into a Flash Window .I need to control the actions for the Flash Window movie from the main movie.As the movie in the Window is not on the stage until runtime ,how do i communicate to it from the main movie time line.example:Play the main movie and you click on a button that moves a ball across the stage ,at the same time a window pops up with a linked movie clip embedded in it that will change color when the ball on the stage reaches a specific point.The movie is alot more complicated than that ,as it is a aircraft system simulation. Where the pop is a circuit diagram of the action and the main movie is a flow diagram of the same function.

View 5 Replies

ActionScript 3.0 :: Text Input To Control Movie Clip?

May 5, 2011

I've been trying to contol a movie clip by inputting certain text. I've tried different bits that I've found online, but I can't seem to get it right.I want it so that it only if the text is (for the purpose of this) "Test" and you press enter does it call the function "doSomething" else it doesn't allow you to enter it, or it calls a different function.This is the code I have:Quote:

myText.addEventListener(KeyboardEvent.KEY_DOWN,han dler);
function handler(event:KeyboardEvent){
if(event.charCode == 13)

[code]......

View 3 Replies

ActionScript 3.0 :: Control A Movie Clip From The Main Fla File?

Aug 12, 2011

I am trying to control a movie clip from the main fla file.

Explaining below:--

I have a main file with menu/navigation.
In another swf file which is loading on the main fla file.

In the another swf file I have a moviclip for example sq1. and I have write the code:--

test2.sq1.visible=false; which is by default value.

when this load in main fla file on the click of a btn I want to visible sq1 I write the code like this way:--

MovieClip(this.parent.parent).test2.sq1.visible=tr ue;

the swf is loading in holder moviclip.

But when I clik on btn the swf is loading but the movieclip is not visible.

View 2 Replies







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