ActionScript 2.0 :: Movieclip Plays Like Moviereel With Buttons

Apr 3, 2011

I have a movieclip that plays like a reel. Inside the movieclip I have 5 buttons When the user clicks the button it should take the person to new scene but it does not work.

I am using actionscript 2 code.

My scenes are called Scene 1,2,3,4,5 My movieclip has instance name buttonreel I have buttons with instance names bt1, bt2, bt3, bt4, bt5

So when I double click on the movieclip and the code I have written for bt1 is:

[Code]....

similar code for bt2 which should go to scene 2 but it does not work

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Disabling Buttons While A Movieclip Plays?

May 29, 2010

Is there a way to disable buttons while a movieclip plays?Here's the logic in english:If you mouse_over buttonA and buttonB, fly_mc plays.If you mouse_over buttonC, flutter_mc plays.While fly_mc is playing, flutter_mc cannot play, and vice versa.

View 2 Replies

ActionScript 2.0 :: Automatically Unload A Movieclip When The Movie Within The Movieclip Plays Completely?

Oct 6, 2009

I need to automatically unload a movieclip when the movie within the movieclip plays completely.

View 9 Replies

ActionScript 2.0 :: Disable Buttons In MC When Another MC Plays?

Jun 30, 2007

I am building my online portfolio and basically you scroll through my work (you may have noticed another thread about this lol) and then you click on an image which represents the different work that i have done. This opens an "info box" with a few more screen shots of that project and some text about it. This all works great, but what i need is when the "info box is opened (loaded externally), the other buttons etc on the stage need to be disabled because the info box loads in a layer above everything else. When the infobox is closed, the buttons etc need to be enabled again so i cant just put the code in the onRelease function which activates the infobox as this will permanently disable everything. I was thinking maybe I can set up some variables so it can detect whether the infobox is opened or closed depending on the value of the variable but I have found it hard to reference the variables properly.

My portfolio is currently online - www.theo-nicolaou.co.uk - but it is one year old, buggy, slow and needs updating as i have more work to show. That is why I am rebuilding - mainly the structure and a few design changes. If you go to the link, click on portfolio, and then click on one of the circular buttons under the black square, and then click the image in the square you will see the "info box" and you will notice that any buttons underneath are disabled until the box is closed.

To activate the infobox, an image (i call it a thumbnail" is clicked, for example, "DG_thumb":

Code:
DG_thumb.onRelease = function() {
_root.holder_mc.infobox_holder.loadMovie("DG_infoBox.swf", "start");
}

the portfolio page itself is a separate .fla (portfolio.fla) which is loaded into a main fla which has an empty MC called holder_mc. The instance name "infobox_holder" is in the portfolio.fla file and that is what it is loaded into when the thumbnail is clicked. The thumbnail itself is within a MC called webList (in this case) which is within a MC called portfolioList. This is on the main timeline of portfolio.fla so i guess the path would be (though maybe i am wrong):

Code:
_root.holder_mc.portfolioList.webList.DG_thumb

however this doesnt seem to make any difference and it is still enabled even if i use enabled = false;I have also tried using _parent. but that doesnt work either.I also need to disable the circular group of buttons which are within a MC on the main timeline of portfolio.fla called "circles". They all have instance names, so in the case of the work i call DG, it would be "DG_button".

View 14 Replies

30 Buttons With Sound But Only Plays The Pressed Ones In Sequence?

Jun 12, 2010

I�v build a simple flash projector to offer to my local fire department Essentially they used to in internal audio alarms to warn firefighters when there is an accident, fire, aggression, etcIn the version 1.0 they click several buttons, one to play the alarm sound, otherto announce the vehicle or vehicles that goes out, and a last one that says what is occurring.

The problem they report is that the sounds play immediately when you click in each of the buttons, and even the sound overlaps the other, which makes they click on each button and have to wait for the sound to finish and then click next. All this is normal because I associated the sounds to the buttons. What do I need to do the flash in this order in the version 2 of my projector:

1 The Fireman choose the type of alarm you want to play and click the button corresponding (but do not want the sound to play now) let's imagine that he pressed the button "alarm 1"

2 The Fireman choose (s) vehicles which are going out to the occurrence (but do not want the sound to play now) let's imagine that pressed the button "ABSC01"

3 The Fireman choose the type of occurrence (but do not want the sound to play now) we will imagine that pressed the button "fire"

4 finally the fireman holding down the "PLAY" (the green on on the top of the image) and this Makes the sounds selected to start playing in sequence, liker "Alarm 1" then "ABSC01 "and then" Fire "

Logically speaking I believe that each button must declare a variable associated with every unique sound, and then pressing the button takes the variables and plays them in sequence and without overlapping sounds.

View 1 Replies

ActionScript 2.0 :: Letting A Movie Clip Finish Before A New Plays With Buttons?

Aug 14, 2009

I am creating an online banner where I want movie 3 movies clips to move to different parts of the banner when a button is rolled over. the 3 movie clips move independently of each other. When I roll off the button I want the clips to move back to where they started. I have achieved this fine, but the problem is when i roll over a different button on the banner the file automatically plays the commands for that button of course. What I need to do is have each movie clip finish before the next button plays it's commands. The coding I have for the buttons is just simple.

PHP Code:
on (rollOver) {
cta1.gotoAndPlay(11);

[code]......

View 0 Replies

ActionScript 3.0 :: Compatibility - When Made Into Pdf And Opened The Movie Plays Automatically No Black Screen And The Buttons Do Not Work

Sep 2, 2009

I have created a .swf with flash cs4 actionscript 3. I placed it into an indesign page (cs4) and then exported to make a pdf. The movie played correctly before being placed and made into pdf. I have a stop in the first frame of the movie. So when you open the movie there is a black screen (first two frames only) with two buttons, a start and a stop. click the start the movie plays. when made into pdf and opened the movie plays automaticly no black screen and the buttons do not work.

[Code]...

View 3 Replies

ActionScript 3.0 :: Movieclip Plays Before The Preloader Finishes

Apr 12, 2010

here is my AS3

[Code]...

I do have stop(); on the 1st frame of the portfoliohome.swf, but It plays the movieclip(my intro) before the loader finishes. Is there a way for me to move the play head to frame 2 while I have the stop() on the frame 1?

View 3 Replies

ActionScript 3.0 :: Flash File Plays One And Stops In End And Only Plays Again

Dec 11, 2011

I want my flash file plays one and stops in the end and only plays again if  play again button is pressed.How do i do it?

View 1 Replies

ActionScript 2.0 :: Slider That Plays Movieclip Forward And Backword?

Apr 20, 2004

I have created a slider with the following code:

stop();
//DRAGGER1 CODE
dragger1_mc.onPress = function() {

[code]......

View 1 Replies

ActionScript 2.0 :: Slider That Plays Movieclip Forward And Backward?

Apr 20, 2004

I have created a slider with the following code:

stop();
//DRAGGER1 CODE
dragger1_mc.onPress = function() {
//constrain dragger to line width

[Code]....

What code would I add to have a seperate movieclip play frame by frame based on where my slider is. Ex: My slider is on the far left, seperate movieclip is at end of its timeline. If I move the slider quickly back to the beginning the movieclip plays backwards quickly to its beginning and stops.

View 1 Replies

ActionScript 1/2 :: Plays Random Animation The Enemy Is MovieClip Who Contains Other MovieClips?

Sep 11, 2011

I am creating a game and I want that when the enemies started to attack me, I want it to plays random animation(the enemy is movieClip who contains other MovieClips )

View 6 Replies

ActionScript 2.0 :: Run A Function Where After An Amount Of Time Of The Mouse Being Idle A Movieclip Plays?

Jan 19, 2012

I'm trying to run a function where after an amount of time of the mouse being idle a movieclip plays, then if the mouse moves another one plays. I have gotten my code to do this, but the last function runs over and over as the mouse is moving. I want it to run once, so the movieclip plays once. how do I do this?

here is my code,

standstill = 0;
lastmove = 0;
timeout = 3000; // 1000 ticks = 1 sec

[code]....

View 1 Replies

ActionScript 2.0 :: Run A Function When After A Specific Amount Of Time Of The Mouse Being Idle A Movieclip Plays?

Jan 20, 2012

I'm trying to run a function when after a specific amount of time of the mouse being idle a movieclip plays, then when the mouse becomes active again a different movieclip plays. I have gotten my code work for the most part, but the last function runs over and over as the mouse is moving. I want it to run once, so the movieclip plays once.

here is my code:

standstill = 0;
lastmove = 0;
timeout = 3000;

[code]...

View 1 Replies

Actionscript 3.0 :: Movie To Loop - Movie Plays A Certain Number Of Times Then Plays The Opening Of A Screen Then Stops

Aug 30, 2011

I want my movie to loop. Would prefer an If/Else loop so that the movie plays a certain number of times then plays the opening of a screen then stops. This is a simple 4 screen ad I am doing for a school project. Can't get it to work. I tried containing my code in the proper loop syntax, didn't work. Then wrapping the loop in a function and calling that with a timer event, didn't work. My final solution was to call my whole movie in a timer event set to play once. Then calling the entire movie again in a second timer event set to play 20 times and set to start at an interval when the first movie ended. This did work but each time the movie plays thru function calls drop off making the movie degrade.

[Code]....

View 5 Replies

ActionScript 2.0 :: Clicking A Button - Select A Button On The Screen And Then A Movieclip Plays?

Nov 24, 2006

I have many buttons (symbols). This is what I want it to do: -Select a button on the screen, and then a movieclip plays. - If the user selects any OTHER button on screen, a message box displays a message.

View 2 Replies

ActionScript 2.0 :: Creating A Menu Bar That Is A Movieclip And Inside The Movieclip Consists Of The Buttons?

Oct 21, 2005

I'm creating a menu bar that is a movieclip and inside the movieclip consists of the buttons.Now the menu bar is twice as WIDE as what is visible on the stage.The only part you can see is the text 'menu' on a bar.Then when the mouse hits the bar, it flies across the screen to the otherside of the bar where the menu buttons are.Now the menu bar does its animation over 20 frames - the last frame being the frame where the menu buttons are now visible.

On the last frame i have the 'stop;' code

On the first frame I have this code:

Code:
stop();
this.onEnterFrame = function(){
if(rewind == true){

[code]....

View 2 Replies

ActionScript 2.0 :: [CS3] - Control Hero Movieclip With Movieclip Buttons

Jan 21, 2009

Originally, the client wanted to control "hero_mc" using the keyboard but now they would like to control him with buttons only. Here is the original code on the "hero_mc" which works as expected:

[Code]...

View 2 Replies

Animate A Movieclip By Buttons?

May 20, 2009

There are 2 buttons to animate the movieclip on moving right or left and making it appearing and disappearing. However, the button react after a few second the animation finish. Does anyone know how to make the button work faster? this is the script for those buttons

one of the button
on (press) {
if (tt == false) {
import mx.transitions.Tween;

[code]....

View 1 Replies

ActionScript 3.0 :: Buttons Within A MovieClip?

Oct 29, 2009

How could one set up a movie clip that has usable buttons in it? If i understand correctly, the movieclips actions will override all the button actions...?

For the purposes of my project, I need a MC that ive set up to loop across the screen with my buttons on it.

View 4 Replies

AS3 - Having Buttons In A Movieclip Not Working

Oct 22, 2010

I've created a movieclip of a trashcan, which falls over and 6 items fall out of it. I want each of these items to become a button, which will jump to a different point on the timeline.

The movieclip is all working fine, and the buttons appear to be fine. The problem is when I publish the flash, the movieclip resets each time I hover over one of the buttons, so i get an endless loop of this trashcan falling over and the items falling out.

View 1 Replies

ActionScript 3.0 :: Buttons Within Movieclip?

Nov 25, 2010

scene 1 has a movieclip in the top left on the stage (called poster_mc) ... the image on the screen is of a museum enterance. double click on the movieclip to go into the movieclip; the first frame has the museum enterance and the second frame has a gallery.I created a button called door_mc which when clicked, allows the user to go 'inside' the museum into the gallery. this is the code i used:

poster_mc.stop();
poster_mc.door_btn.addEventListener(MouseEvent.MOU SE_UP, nextPicture);
function nextPicture(e:MouseEvent):void

[code].....

View 1 Replies

MovieClip Control With Buttons - X And Y Coordinates

Apr 8, 2009

I'm putting together a site, that has 3 pages and I'd like the content to move into position when the menu button is clicked. So, 3 buttons etc, 'Home, Portfolio, contact" and one movie clip that contains the info. I'm not really a programmer [URL].

View 1 Replies

MovieClip With Hit Zones - Buttons Overlapping

Apr 13, 2009

I have a movie clip with hit zones over buttons. It looks like a cam corder and when you roll over them a thumb moves to that button and when you click. The thumb presses on the button. That all works great. I want to put buttons in the main scene over top of these that will change things on the screen when you click it. And get urls of the videos that I have on my website. But when I put the hitzones over other hitzones the ones in back dont work. Is there a way to make them both work or am I going to have to make everything contained in the movie clip? So in short can I have two buttons on top of each other that do two different things?

View 8 Replies

ActionScript 3.0 :: Removing MovieClip Buttons?

Sep 24, 2009

I have 5 movieClip buttons. I want the GALLERY button to stay on the stage at all times, "which it does" but i want when the user clicks on 1 of the other 4 buttons for the remaining 3 to disappear. Example...when the user clicks on the KIDS button, the COUPLES, PORTRAITS AND BELLIES buttons disappear, or when the user clicks on COUPLES, for the KIDS, PORTRAITS AND BELLIES buttons to disappear, and so on.

Code:
import fl.transitions.Tween;
import fl.transitions.easing.*;

[code]......

View 16 Replies

ActionScript 3.0 :: Removing The MovieClip Buttons?

May 10, 2010

I have 5 movieClip buttons. I want the GALLERY button to stay on the stage at all times, "which it does" but i want when the user clicks on 1 of the other 4 buttons for the remaining 3 to disappear. when the user clicks on the KIDS button, the COUPLES, PORTRAITS AND BELLIES buttons disappear, or when the user clicks on COUPLES, for the KIDS, PORTRAITS AND BELLIES buttons to disappear, and so on.

Code:

import fl.transitions.Tween;
import fl.transitions.easing.*;
var currentPage:MovieClip = gallery_mc

[code].....

View 1 Replies

ActionScript 3.0 :: Dragable Movieclip With Buttons?

Jun 1, 2010

I am basically trying to create a menu which can be dragged across the stage. I have created a main movieclip which acts as the holder. This is the movieclip that gets dragged around.Within that movieclip there are 6 buttons. I am using the MouseEvent.MOUSE_DOWN and MouseEvent.MOUSE_UP eventlisteners to control the dragging however it is not working correctly.When i compile to SWF it is fine. I click down the mouse button on the movieclip and It will start dragging however if i let go of the button it registers a click. Obviously i don't want it to do that but i'm not sure why it is registering a click as i thought that i was just releasing the button...

The second problem is if i move the mouse cursor off of the movieclip but i still have the mouse button pressed it will continue dragging the movieclip about, even if i then let go of the button.... The elements i have are:main holder movie clip whose dimension is 1800x280 and it is called : container_mcwithin this movie clip i have 6 buttons whose dimensions are each 300x270 and the names of the buttons are:

linkbtn1
linkbtn2
linkbtn3

[code]....

View 6 Replies

ActionScript 3.0 :: Accessing Buttons In A Movieclip?

Aug 24, 2010

My problem is that I created my buttons on the stage and then grouped them together as a movieclip called navSat.Then I set the Linkage for navSat to NavSat.I am doing all my coding through AS3 outside of this. This is my code:

Importing the NavSat MovieClip

Quote:

function loadNavSat():void {
var newNavSat:MovieClip = new NavSat();
addChild(newNavSat);

[code]....

When I run the swf now, my navigation system comes in and all the buttons are working (up, down, over, off states are working) It still links to nothing yet. The problem is when I try to add functionality to those buttons. I have tried about 5 days worth of variations around this type of code but cannot 'communicate' with the buttons within the movieclip. This is my code for the 1st button - contactBtn (linkage: ContactBtn):

Quote:

contactBtn.addEventListener(MouseEvent.MOUSE_DOWN, contactDown);
function contactDown(event:MouseEvent):void
{

[code]....

View 1 Replies

Array Buttons And Movieclip Change?

Oct 23, 2011

How can I make that when I press one of the button arrays then a movie clip loads in the frame where it sends me? for example on the company. And then the movie clip unloads and another loads when I click on tutorials? forexample.i just want that clicking a specific array button triggers the appearance of my movieclip in only the frame where the button sends me.ere's the code for the menu:

Caurina.Transitions.Tweener import;
var menu_label: Array = new Array ("Home", "The Company", "Online Store"
"Service Center", "tutorials", "Contact");

[code].......

View 1 Replies

ActionScript 3.0 :: Can't Get Stable Movieclip Buttons?

Jun 1, 2009

I've looked on forums, Google, you name it.  No-one seems to be able to offer a reliable solution.  I am having a problem with buttons sticking on rollover in AS3, then reversing their over and out states.  It only appears to happen when dragging the cursor quickly over the top of the buttons.  For example, in the case of a menu, when running the cursor quickly across all the buttons, many of the buttons will remain in the rollover state and then reverse their over/out functions. I have tried everything including removeEventListener which seems to be the most popular solution to similar issues.'m at a total loss ... Below is a link to the Flash animation, the timeline (screengrab) and the code in an HTML page

View 5 Replies







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