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
Similar Posts:
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
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
Sep 19, 2011
Initially I want to control a movie clip (play, pause) using two buttons. I placed a movie clip(square) and two buttons (btnPlay, btnPause) on the stage.and created Engine.as assigned to stage.
/// Engine.as ///
package {
import flash.display.Stage;
import flash.display.MovieClip;[code]...
View 11 Replies
Sep 8, 2010
im trying to navigate through a movie clip and stop at frame labels using individual buttons to call to individual labels while being able to see the on the way to the frame(for a blurred effect).my goal is to jump from point A to point F to point Z and see all the frames in between and visa versa.
View 1 Replies
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
Feb 13, 2009
here is my issue, so i have a main page with a slideOut movieclip which basically is a movie clip button and the "over" state sends a tray out of the movie clip with info and anothe rmovie clip button. i cant seem to get that movie clip button to root.gotoAndPlay("frameLabel");i have the actionscript on the same frame as the movie clip i need to act as a button. but it just doesnt seem to react to it.i have tried going to the main timeline and doing
blank_mc.blank2_mc.onRelease = function();
{
_root.gotoAndPlay("frameLabel");
[code]....
View 4 Replies
Aug 19, 2010
For some reason I can not get any Flash document to allow buttons to control movie clips. I might have a coding error or something is wrong with my system. I've got an interactive map with the counties of a state as buttons. The buttons control a movie clip that runs info on each county. I have some other variables and things going on and figured that might have something to do with it. So I just created a test file with 1 movie clip and 1 button.
The movie clip has a stop action on frame 1 and frame 5. It is just a box that is different colors per frame.I've tried several methods and I'm not getting a result from anything. This is an AS 2 file.Button has an instance name of btn and the movie clip is mc. There is only 1 frame in the main timeline.First method was adding the script to the button. This didn't work...
on (press) {
mc.GotoAndPlay(5);
}
Second Method, I placed the actions on frame one of the main timeline.
btn.OnPress = function() {
mc.GotoAndPlay(5);
}
That didn't work either. I even made a AS 3 file and used a Mouse Event, this didn't work either. I have older files that have the same code and do work, but no new files I create with work. I haven't been working in flash for about 2 years, so I might be missing something due to the rust in my brain.
Thoughts?
View 5 Replies
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
Aug 7, 2009
I have a movie clip with 15 frames. Each frame has buttons on it (mc's)... I was going to put the actions on the main timeline/stage and navigate within the MC from the main timeline. Is that possible? I can get the buttons on the first frame of the MC to work, but I can't seem to figure out how to target/make the buttons on the other frames work? I was thinking I could identify the path of the MC with the frame labels, but that doesn't seem to work. like: _root.RMChanger.(frame label).buttonOnFrame = function
I have to move a text box in and out over the MC backgrounds on the main stage... which is why I was thinking to do it this way? I've been switching back and forth bwtween AS2.0 and 3.0
View 9 Replies
Jul 25, 2007
I am creating a navigation bar in Flash (which will then be used in Dreamweaver). When you mouse over each topic in menu (ex. Products), i want it play a movie clip (so it shoots out a sub-menu underneath). so far so good, but the only thing is, the sub-menu won't stay open in order for me to click on buttons in it. For each button, I assigned it the Behavior to go to a url. Also, I tested the buttons within the mc and they don't seem to direct me to url. do you think maybe it's because it's nested within the movie clip?? Is there an easier way to go about this?
[Code]....
View 2 Replies
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
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
Feb 19, 2008
I used the Kirupa Tutorial for Advanced Rollovers to create my navigation menu and within one of the movie clips I have additional buttons that show up on the roll over.I know that you need to place the onPress code on the frame that the buttons actually live. I have a trace("mix_btn: "+mix_btn); to find out if the button is being found.
My problem is that I dont know how to get the code below to actually dynamically load and external SWF into a container on the main timeline. A friend of mine suggested a MovieClipLoader or onLoadInit Handler but I have no idea how to use those. (I'm a noob and proud of it!). (this is my latest version of a onPress.)
Code:
mix_btn.onRelease = function() {
_root.createEmptyMovieClip("container", getNextHighestDepth())
loadMovie("musicMixes.swf", container);
[code]....
View 1 Replies
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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