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
Similar Posts:
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
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
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
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
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
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
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
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
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
Aug 30, 2006
I am looking for a way to fade in a white movie clip over my main movie when a button is pressed.
(i.e. When you press a button, a white rectangle will fade in over all other layers and then fade out after a couple of seconds. This is to make it look like the different pages are fading in and out without having to build the transition over and over again.)
View 8 Replies
Nov 17, 2011
I have a flash banner that includes a movie clip of the logo being animated. I want the logo animation to only run at the beginning of the main "movie". Currently I have to find the length of the entire movie (for ex. 500 frames) then put a key frame in at the 500th frame of the logo movie clip. I know there has to be a correct way to do this...Do I add a frame name at the end of the main timeline and somehow in AS in the logo movie clip say "when you reach X goToAndPlay(1);"?
View 1 Replies
Jun 20, 2006
i'm trying to play several movie clips, one after the other from one main movie clip.i've got 8 movie clips, "m1.swf", "m2.swf", etc. "m8.swf", and one main movie clip, "play.swf".i've tried using loadMovie, but it only plays the last movie clip. this is what i've got. in the main movie clip, i've put a play button, and the actionscript i have in the button is:
on(release)
{
this.loadMovie("m1.swf",play);
//this.unloadMovie("m1.swf");[code]....
is this wrong? how can i get this to work correctly.
View 4 Replies
Oct 10, 2002
I'm still a rookie in flash and I'm having a little bit of trouble with some actionscript. I've gotten as far as placing the buttons and assign the correct actionscript for them to work. Everything is working fine with the buttons activating the external .swf into a blank movie clip in the main movie. Ony thing is, I would like the external movie assigned to the first button to open once the movie is loaded.
I thought by using the same actionscript i used on the button {and removing the on(release) tag} and placing on the first frame of the main movie would help, but it doesn't.
View 2 Replies
Dec 6, 2009
I have my flash document set up in the following way: On the main timeline I have my buttons that I want to play movie clips embedded inside a movie clip on the main timeline.However, when I click each different button, the current movie clip stops playing and then the movie clip corresponding to the button plays.
I want them all to be able to play at once. So for example you push button 1 and the alien plays, but half way through you could click button 2 and the alien clip would keep playing, but also the helicopter clip would begin to play as well.Here is the code I have so far:
building_btn1.addEventListener(MouseEvent.CLICK, alien);
building_btn2.addEventListener(MouseEvent.CLICK, helicopter);
function helicopter(e:MouseEvent):void {[code]......
View 1 Replies
Apr 26, 2009
I'm trying to make a flash website that has clickable buttons that will play different movie clips. But I dont know how to make it to just play the movie clip with the button you click without playing all the movie clips on the main timeline.
View 1 Replies
Feb 24, 2003
How do I remove a movie clip from the main movie?I've tried setting the alpha,but technically it is still there.Removing and deleting movie clip only works if the movie clip is duplicated and I don't want the movie clip duplicated.
View 1 Replies
Nov 5, 2008
I have two files main.swf and external.swf i have use the following script on main.swf to do animation
import mx.transitions.Tween;
import mx.transitions.easing.*;
[Code]....
which work perfectly fine. Now due some reason i had to place the navigation bar in the external movie clip , in external.swf Using the same script how can i control the textBox animation which is on the main.swf??
View 1 Replies
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
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
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
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
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
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
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
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
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
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
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
Mar 21, 2006
I have a movie clip with 11 frames containing 10 different images named "thermometer". I have a dynamic text box on the root of the movie with the var name of "therm"
action script in MC "thermometer"=
onEnterFrame = function() {
if ((therm <= 15000) && (therm >= 0)){
[code].....
View 4 Replies