Moving Buttons (Movie Clips)
hey fellas,
i'm still new to Flash and i need some help with the animated menu i'm trying to do:
i've created a new Symbol (type of Movie Clip) that represents a sigle button, it has the animation when you move mouse over and changes colors, etc.
now, what i'm trying to do is to put 4 of them one undernith (sp?) eachother and when i click one button i want it to move a bit to the right, and the rest of them shall remain still (or if any one was already moved - it shall go back)
u know what i'm trying to do? so, now i need to know how do i put them together and how do i make them move, i did try creating a brand new Move Clip with 4 buttons on it and tired placing them in different positions on different frames - but that didn't work)
please let me know if you need any more details,
thanks, shizo.
FlashKit > Flash Help > Flash ActionScript
Posted on: 10-02-2001, 05:44 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Moving Movie Clips By Buttons
hello all!
im trying to scroll a movie clip by the press of a button.
i cant seem to get it to work.
i want to scroll a movie clip either left or right when a corresponding button is pressed.
when button 1 is pressed the movie clip moves to _x coordinate. when button 2 is pressed the movie clip scrolls the oposite direction to _x coordiante.
i just want a clip event script on the movieclip
and a move to position actionscript on the button.
does anyone know of a simple tutorial
or simple actionscript i can use.
thanks!!
Making Buttons In Moving Movie Clips Work
Hello, I neeeeed help. I finished the "Infinite menu" tutorial and got the thing looking great. My problem is that I can't get the buttons that are embedded in the sliding movie clip to work. While the sliding movie clip is in edit mode, I've tried linking the buttons to both frames and frame labels using both the onRelease...gotoandstop action and the similar gotoandstopframeorlabel behavior. Though the button rollover states work, neither action strategy makes the button move the timeline to the specified spot. Assuming that I linked the buttons properly, do I need to add some sort of action script to the sliding movie clip itself or the main timeline to let FLASH know there are buttons that are active links inside the movie clip? How do I make this work?
Moving Movie Clips
I want to make a mr. potato head kind of game where i have differnt flash images and i want the user to be able to roll over the body and be able to drag the diffent pieces around.
do you have any suggestions?
Thank you
Moving Movie Clips
does anyone know how to move multiple movie clips at the same time by moving another movie clip
Moving My Movie Clips
Hey, im actually pretty lousy at action scripting, so my question may be a bit dumb or easy to solve for you (hopefully)
Ok, Im trying to make this idea work for a menu.
I have 3 squared movie clips (instance names sq1, sq2, and sq3) one next to each other, and what I want, is, click on one of them, and when I release it, make the other 2 squares move.
I got some code working but the movie clips just "appear" in the place I want, but I need them to move.
I did this once but with the onEnterFrame event and adding the code the the MC I wanted to move, this time I want to trigger the motion with some other button.
This is the code I used for that Enter Frame event:
xSpeed = random (40) - 20;
ySPeed = random (40) - 20;
square1.onEnterFrame = Function (){
with (this) {
_x = _x + xSpeed;
_y = _y + ySpeed;
}
}
Hope you can help me out
Thanks in advance
Moving Movie Clips
I have three movie clips
all called stage1, stage2, stage3 and then a menu mc (which only has text in it at the moment)
hmmm how to explain this
I have a menu which is in a white space (the menu mc is only text in white so you can't see the text) when you press one of the stages I want it to move to an area and then the menu move to another, but when a different stage is selected then the menu and previous stage move back to there origional place and then again that stage will move and the menu etc... hopefully that expains what im trying to achive
can anyone help me achive this.?
Moving Movie Clips
Okay, I have a movie clip that I am planning on using about 6 times. The thing is it does not stay in one place...starts out in a new location everytime and then moves to a new location each time.
There is not really any consistancy to where it starts and finishes.
Is there something I can do to be able to control this?
Movie Clips Acting As Buttons Can't Load Other Movie Clips
Frame 1 has three movie clips on it, instance names are A, B, C. I have the following actionscript on frame 1 as well:
stop();
import flash.filters.GlowFilter;
ar = [A, B, C];
for(var z=0; z<ar.length; z++) {
ar[z].onRollOver = rollover;
ar[z].onRollOut = rollout;
}
function rollover() {
this.swapDepths(0);
this.filters = [new GlowFilter(0x333333, .20, 7, 7)];
}
function rollout() {
this.filters = null;
}
This code creates a glow, obviously, on whatever movie clip I rollover. What I want to do as well is this:
I want to click on mc "A" and have it launch a different movie clip (let's say "X") on top of everything else (so that A, B and C are still visible in the background). "X" is in a sub-folder of "A" if that makes any sense or is relevant. Same kind of action for mc's B and C. B should launch mc "Y" and C should launch mc "Z".
What is the actionscript for this? Any questions please let me know. Please respond, I need this info as soon as possible. Much appreciated!!
Text
Variables Moving Movie Clips
i went to this site:
www3.telus.net
and i saw this cool menu trick where you click a button and it slides the list of titles until the right one is highlighted. I was wondering how they do this?
i thought they'd do it with variables or something but i don't see how they can make the movieclip have every possible combination of animations.
i've been looking at the "set x position" property but i don't see how you use that to animate a movieclip's position.
thanks for any help
Moving And Replacing Movie Clips
Greetings,
Could anyone tell me how to move movie clips to specific locations in actionscript (not timeline). I am working on a card game and am in need of sliding cards from one place to another through pure code. Just like if someone is dealing cards.
Thank you very much for any assistance you could provide.
Moving Movie Clips Smoothly
Heres what I have: 1 movie approx. 105 frames long. I have four buttons at the bottom as a nav. Those 4 buttons launch according movie clips into a viewing window above, which is under a masked layer. Above the viewer on the bar are two arrows. Up and down of course. They control the movie clips by way of 'tell target' 'goto and play' next frame. Utimately the movie clips have a stop action on frame one and then a motion tween which moves the clip up a few pixels on the last frame. So what you get is when the user clicks the button the movie clip movies up inside the viewing window. I'd like to know how to make the buttons trigger the movie clip to smoothly advance up rather than be clicked and the movie clip moving up frame by frame. What's the easiest way to do this?
Thanks in advance ::
Moving Movie Clips With Actionscript, Help Please
Hi, I have a movie clip named toad head, with an instance name of head. I would like to gradually move the movie clip up when the user presses enter. Currently y=282 and i would like to have it gradually move up so y=82 and then gradually move back to 282 and stop there. I have tried to set the y with action script but it just instantly moves it to 82 and instanty moves it back. All i want is it to scroll up there, scroll back down, and stay there. I dont want to draw out the frames because it will interfere with the collision detection and all that junk. Anyways, hope you can help me. Thank you!
Moving Variables Along Movie Clips
hey everyone
i have alittle proplem
i have a website that the user enters the name in an input text
then i need to copy his entrance to another movie clip or another SWF file
so how can i do that ??
thnx in advance
Moving Movie Clips In An Array
It's quite hard to explain what I'm trying to achieve. I want to have an array of objects which each contain a movie clip and move the movieclips around within the array.
At the moment when I copy the clip, there is only 1 clip which responds to references to both array locations and if I remove the clip via the old reference, the clip is removed completely.
I want the clip to only respond to references to it's new array location, it doesn't matter whether I have 2 clips or 1 for what I'm doing, if I get 2 clips I'll just remove the old one.
I've put the code from a test movie below, the movie clip name is clip1. There is no need for it to be in seperate frames, but with a slow frame rate you can see what happens.
// FRAME 1
grid = Array();
grid[0] = new Object();
clipParams = new Object();
clipParams._x = 100;
clipParams._y = 100;
grid[0].clip = clip1.duplicateMovieClip(clip,1000,clipParams);
clipParams._x = 200;
clipParams._y = 200;
grid[1] = new Object();
grid[1].clip = clip1.duplicateMovieClip(clip,2000,clipParams);
// FRAME 2
grid[2] = new Object();
grid[2].clip = grid[1].clip;
grid[2].clip._x = 300;
// FRAME 3
grid[1].clip._x = 400;
// FRAME 4
grid[1].clip.removeMovieClip();
Moving Movie Clips With Deaceleration?
Does anyone know how I'd go about making a flash like the one here?
http://www.flashkit.com/movies/Scrip...5341/index.php
I can kinda think of how I'd make the movie slide along (just make all the pictures one thin, wide clip and then tell it to move to x=coords on a button press? Although I'm not sure how I'd code for that really...) But I also cant figure out how to make it slow down like that, with deceleration. Anyone know?
Thanks!
Moving Movie Clips At A Certain Speed
I have a button and when you press it a movie clip appears on the x axis above it.
web_btn.onPress = function() {
bird_mc._x = 87
}
Other buttons move the bird_mc to other locations on the x axis. How would i code it so that the bird would move to an x location seamlessly with an ease in rather than just appear there.
Ian
Moving Movie Clips Across The Stage
Hello Im using flash mx.
Im trying to move a bunch of movie clips across the stage when the mouse rolls left and then rolls right. I want the movie clips to move left when the mouse moves right and vice-versa. With a bit of help I got this script but it doesnt seem to work the way I want it to. Is there a easier way of doing this ?
Script :
Frame 1:
Code:
//movie clip instance is number1
x1 = getProperty (number1,_x);
if (x1 < -50) {
setProperty("number1", _x, -50);
}
if (x1 > 50) {
setProperty("number1", _x, 50);
}
Frame2:
Code:
mpos = _xmouse;
x1 = getProperty (number1,_x);
speed = (mpos - 20) / 25;
setProperty("number1", _x, x1 - speed);
gotoAndPlay("loop");
A good example of what I want to do can be found here http://www.allamericanrejects.com/home.asp
Moving Duplicated Movie-Clips
If I have a line and duplicate it and make the new name "line"+i. How do I make the _x of every "line"+i to be added by 5. It doesn't work for me or I don't know the trick, I use Flash MX if that makes a difference or not. I'll post the code of what I mean.
Code:
_root.onEnterFrame = function() {
for (i=1; i <= 25; i++) {
duplicateMovieClip(line, "line"+i, i);
}
_root["line"+i]._x += 5; // this is what I want to work but I don't know how
};
Moving Movie Clips On Rollover
I need a simple actionscript that will cause a movie clip that is looping on the stage to just move offstage when the mouse is rolling over a button, and will then return to it's original position once the mouse leaves the button (and/or is clicked).
Thank you.
Moving Movie Clips Between FLAs
Noobish problem I guess,
I've created an animated logo in 1 fla as a movie clip... I created another animation movie clip in another fla, when I copied the logo animation into this new file it changed some of the graphics to them in the movie clip of the file I copied it into...
I'm at a loss to how to stop this happening, any help would be greatly appreciated.
(I also hope I havent talked in riddles)
thanks
[F8] Moving A Movie Clips To The Center?
Ok this is killing me this one.
I have a large movie clip and i want ever time i click on it, it to move the position I clicked on to the center of the stage.
So I have tried quiet a lot of different variations but cant get it to work
I can get the x and y position of where i clicked but cant put it into the middle of the stage
Please help
- B
Moving Movie Clips With Actionscript?
basically i have a new problem.......
i have a movie clip, with 10 pictures, side to side. i have a mask over the movie clip which only shows one of the pictures.
i want to have buttons so that when a button is clicked, the movie clip is moved into the position where u can see a particular picture.
for example, when button 10 is clicked, the movie clip is moved to show picture 10, but i aslo want it at a particular speed and easing.
anyone got an idea, or a tutorial??????????????
this one is close :
http://www.actionscript.org/tutorial..._scrol_1.shtml
but hasnt got no easing/soeed.
help!!!
Moving Movie Clips With Actionscript 2
heya
basically i'm still having problems with moving a mc with actionscript
i've looked at the tutorial below:
http://www.actionscript.org/tutorial...ed/index.shtml
basically i have 5 sections on one whole movie clip.
home, bio, live, photos and music
i've used the method code below for the buttons,
so if i click the bio button, it will move from home to bio, etc,etc
Code:
function mozephotos() {
easeType = mx.transitions.easing.Strong.easeOut;
var begin = 0;
var end = -2350;
var time = 3;
var mc = this._parent.ldmain.ldallmaster.ldall;
mozephotosTween = new mx.transitions.Tween(mc, "_x", easeType, begin, end, time, true);
}
but the issue is, if i'm at the bio stage and i click music
it will move from home to music! and not bio to music.
i just want it in a way that he movie clip will move into
the section from where it is currently to the area specfied
so for example im at at live and i click bio it will move
from bio to live, if i click music, it will move from live
to music.....
anyone out there that can help me, i've attached
a .swf so u can see the problem.
x
SWF FILE HERE
Moving Points In Movie Clips
Im not sure how to explain this as im not sure what it is that im trying to do.
Basically i have a movie clip...this has an image inside....i want to move say the top left point up by 5px and the bottom left pixel down by 5 px giving it a distorted look. Can anyone point me in the right direction for this. I know i can do it with the tools in flash but i want to do it dynamically as my moive clips are loaded dynamically.
Any ideas or keywords to look for?
Al
Scaling & Moving Movie Clips
Hi there, I'm wondering if anyone can help with how to move other Movie clips x/y position when 1 particular Movie clips scales up.
I've got 3 rectangles on the stage (created by a loop from the Movieclip 'Shape1' in the Library).
On rollover a rectangle will scale up. How do I move the other rectangles y position out from under the currently scaled up rectangle?
I'm hoping there's a simpler way than using collision detection that I've read about in the forum.
I currently have...
ActionScript Code:
import gs.TweenMax;
import fl.motion.easing.*;
for (var z:int = 0; z < 3; z++) {
var shape:Shape1 = new Shape1();
shape.y = shape.height + z * shape.height;
addChild(shape);
shape.addEventListener(MouseEvent.ROLL_OVER, onOver);
shape.addEventListener(MouseEvent.ROLL_OUT, onOut);
}
function onOver(evt:Event):void {
var shape:MovieClip = MovieClip(evt.target);
TweenMax.to(evt.target, .6, {scaleX:2, scaleY:2, ease:Cubic.easeOut});
}
function onOut(evt:Event):void {
TweenMax.to(evt.target, .2, {scaleX:1, scaleY:1, ease:Elastic.easeOut});
}
If anyone can help I'd be really grateful.
Thanks
Moving Movie Clips To Different Sections
In my current flash movie, I have 5 horizontal buttons, and when I click 1 of them, I would like for a movie cliip to move horizontally to that button. So pretty much I need help figure out how to movie that movie clip to the different buttons when they are pressed. But only horizontally. And it'd be nice if there was some easing invovled. Does anyone know of a tutorial that would help me? Thank You
Moving Actionscript From Movie Clips
i want to move actionscript, which is currently located in the timeline of a movie clip, to the main timeline. however, there are many insances of this movie clip. is there anyway to write the script globally to all instances of the same movie clip, even if they are added to the timeline later.
cheers, james
Creating And Moving Movie Clips Dynamically
okay, here's the deal i'm trying to create and move objects using data from a database, i'm having no trouble pulling the data or posting it. i think im doing something wrong with the array's or something but i can't figure out what anyways here's the code i'm using any help would be appriciated.
-------------action scipt code frame1 layer1-----------
loadVariablesNum ("simulated turn.ASP", 0, "GET");
Ident = new Array();
location = new Array();
moveone = new Array();
movetwo = new Array();
movethree = new Array();
movefour = new Array();
for (n=1; n<6; n++) {
location[n] = eval("location"+n);
moveone[n] = eval("moveone"+n);
movetwo[n] = eval("movetwo"+n);
movethree[n] = eval("movethree"+n);
movefour[n] = eval("movefour"+n);
duplicateMovieClip (_root.frigate, "frigate"+n, n);
}
--------------------------------------------------------
Help: Moving Wide Movie Clips Across The Stage
Hi, Flash MX user here:
I'm working on a stage that is 700 X 400. I have a movie clip that exceeds the stage's width (it's 3000 pixels in width). I want to make my movie clip draggable, so that the entire clip is viewed on stage while moving horizontally from left to right.
I want to begin moving right when my mouse's X position is at 0 and I want it to move back left once it reaches -3000 on the stage.
This is the code I came up with so far, which I'm sure it has some mistakes. Any help would be more than appreciated.
PHP Code:
onClipEvent (enterFrame) {
if (_root.movieClip._x < 0) {
_root.movieClip._x = _x - 1;
}
if (_root.movieClip._x > -3000) {
_root.movieClip._x = _x + 1;
}
}
Moving Movie Clips / Graphics On Mousover
hey.. I'm having a problem. I have a series of buttons in a menu.. when you mouse over, I need a colored bar in a lower layer to slide over behind it. any easy way to do this w/ action script. it also needs to ease out at the end of the move.
I'd rather not have to create a thousand layers and do each reponse to each menu item.. any help would be greatly appreciate! you can also find me online on AIM -- sekritagentgirl
Rotating, Expanding And Moving Movie Clips
Hi all -
I'm working on an engine to move a movie clip differently when different events occur and while I was fine with the simultaneously expanding and moving part, throwing rotation into the mix is causing all sorts of problems. Does this involve advanced trigonometry in some way I'll never be able to figure out? Can someone with a knowledge of such things check out my code and offer much needed advice? Thank you. Here's the code:
function PageExpand() {
if (_root.airport.terminals._alpha > .5) {
_root.airport._width +=(_root.goalWidth-_root.airport._width)/5;
_root.airport._height +=(_root.goalHeight-_root.airport._height)/5;
_root.airport._x +=(_root.finalX-_root.airport._x)/5;
_root.airport._y +=(_root.finalY-_root.airport._y)/5;
var pagePercent =(_root.airport._width-_root.firstWidth)/(_root.goalWidth-_root.firstWidth)*100;
_root.airport._rotation=_root.mapRotate*(pagePerce nt/100);
_root.airport[pagetag + "_outline"]._alpha =pagePercent;
_root.airport.terminals._alpha = 100-pagePercent;
trace(_root.airport[pagetag + "_outline"]._alpha);
} else {
clearInterval(navInterval);
_root[pagetag+"_content"].gotoAndPlay("start");
navbar();
this.buttonbar.about_btn.onRelease = null;
}
}
HitTest With Two Irregular Shaped Moving Movie Clips
I am trying to use the hitTest with two movie clips that are moving. One is controlled by the user, and the other is a motion tweened clip. I can make the hitTest work, however it detects the hit on the entire movie clip, where the actual object is an irregular shape. Any suggestions on how I can define the actual hit area.
Thanks,
Moving Multiple Movie Clips To Suggest Depth
Hey there I'm trying to learn the method of moving a number of movie clips at different speeds in the opposite direction to the movement of the cursor in a way to create the illsion of a depth of field. The best example I know of this is www.leoburnett.com.
Any guidance, known tutorials or more accurate descriptions of what I am trying to do would be very very welcome.
Thanks in advance peeps - you guys are so smart
Creating Empty Movie Clips, Moving Them, And Masking
I read a few of the tutorials on the site to get to where I am now. However, I've tried multiple variations of this code and I can't seem to get it to do what I want.
This is what I'm trying to do:
All of this will be on a button Rollover event.
There will be a picture (the pic will change based on which button is rolled over).
On rollover, there will be a series of 15x15 black(or any color) boxes created that are masks and will slide from left to right on the screen stopping 1 or 2 pixels apart and creating a grid through which you can see the photo underneath. The area this grid will cover will be 15 boxes wide and 10 high (also, don't forget to account for the 1 or 2 pixel border in between each box).
The code I've created is attempting to start these boxes at a y value that increases by 16 (or 17 depending on border width) EVERY time until it's done 10 boxes and then the y value resets to the original value to start the next column. It also uses "mc_tween2.as"... the include statement is in the first frame of my movie. So, I'm also attempting to xSlide the movie clips to a certain ending x value which will change after 10 movie clips.
I'm trying to get it to do all of this within 3 seconds. That means creating 150 (50 per second) movie clips and having them all slide in to expose the underlying picture.
It's not working. It freezes and then a few seconds later says "flash is running slow...blahblah... would you like to abort the script". Any suggestions you guys could make would be incredible. I'm also open to doing this a different way. I've thought about cutting the picture into 150 different small movie clips and sliding them in, but I haven't the foggiest idea how to even START that procedure.
Here's the code:
Code:
x = -350;
y = 58;
_root.wait = 1;
ercogHit_btn.onRollOver = function() {
ercog_mc.scaleTo(300, 1.5, "easeOutElastic"); //movie clip that scales when button is rolled over using "mc_tween2.as"
for (i=1; i<=151; i++) {
for (delayTime=0; delayTime<=1; ) {
if (Math.floor(getTimer()/20) == _root.lastTime+_root.wait) {
_root.lastTime = Math.floor(getTimer()/20);
createEmptyMovieClip("clip"+i, i);
y += 17;
if (y == 245) {
y = 75;
}
with (clip+i) {
moveTo(x, y);
beginFill(0x000000);
lineTo(x+15, y);
lineTo(x+15, y+15);
lineTo(x, y+15);
endFill();
slidingMovie(i);
}
}
delayTime = ((Math.floor(getTimer()/20)-_root.lastTime));
}
i++;
}
};
function slidingMovie(i) {
xFactor = i;
if (((xFactor/10)-previousFactor)>1) {
endingPosition = 151;
this.xSlideTo(endingPosition-(previousFactor*17), .1, "linear");
previousFactor++;
}
}
Post Subject: Moving Through Scenes With Embedded Movie Clips
he problem is when I run my movie the two scenes flicker rapidly (flash?!) alternately.
The reason is that on the top level the scenes have only one frame. All the animation is embedded on a symbolic level. When I run the movie while there is only one scene it runs through the entire embedded animations and repeats.
Is there a way to let all the animated symbols run before moving to the next scene?
thanks,
peter
ActionScript In Buttons To Reference Movie Clips Inside Buttons
I want to reference a movie clip inside a button, to use tell target on the button. Is there a way to use something like:
tellTarget (this.movieclipname) {
}
that way i can use multiple instances of one object, rather then having to make a different action for every single time i want to use it.
Hiding Buttons Or Movie Clips With Buttons With Actionscripting
Greetings,
I really need someone's help. I am trying to hide buttons from screen when certain conditions are set. For example, I have a variable called Amount. Now, I have a textfield that displays the value of Amount. Three buttons are visible. Each button has actionscript so when click each button would subtract some amount from the variable Amount. Button 5 will subtract 5 from Amount and button 10,20 accordingly. Now, when Amount is less than 20. I wanted to make the 20 button disappear from the screen (not using timeline, object oriented actionscripting). Then when Amount is less than 10 the 10 button will disappear.
I tried making the button disappear with "five._visible=false;" However, I was told I could not do that with buttons. So, i created a movie with button inside. It disappears with "moviefive._visible=false;" But the button does not work when visible. I can see the little hand when I place the mouse over the button, but it does not work. It does not subtract from the variable Amount.
When someone clicks the five button, five button has code that will subtract 5 from Amount and if statements that will "twenty._visible=false;" if the Amount is now less than 20.
Could someone please help me. Thank you very much. I really appreciate any assistance you could provide.
Thanks again
Moving A Movie Clip With Buttons
I have a piece thats 720 x 486 that has buttons across the bottom of the page that will launch movie clips into a masked area to the left side of the page. The movie clips fall bellow a bar with two buttons which are arrows that point up and down. I want to tie the movie clip to these buttons so the user can scroll the clips up or down accordingly to view all of the info. Any good tutorials or advice would be appreciated -
Innersight
Buttons In Moving Movie Clip
I have a movie clip that I'm moving along the X axis based on the location of the mouse - how can I make the buttons that are in that movie clip useable???
Cole
Buttons + Moving A Movie Clip
I want on rollover to change where the movie clip is. However, I don't wan the clip to just jump there, I want it to gradually get there.
I tried myMovie._x = myMovie._x + 5 but that didn't work as to plan. Any help, even pseudo code, is much appreciated. Im not exactly an expert on Actionscript yet, but I do understand VB programming and am working my way into C++/AS now.
Fast Forward And Rewind Buttons To Control Movie Clips AND Main Movie
I am creating a software training movie in Flash (MX). The main movie has text, sound and animations directly on the main timeline, and also includes external swfs (video screen captures) that are loaded dynamically into a movieclip target.
loadMovie("bkr_openpgm.swf", "mc_finvideo");
I'm not importing these videos because they can be quite large after importing (my video capturing software can export as swf and avi). I will never play more than one movieclip at a time (so I use the same movieclip to load all movies: mc_finvideo), and there can be many frames in between movie clips where there's only non-movieclip stuff going on on the main timeline. After I finish playing a movie clip , I unload the movie from the movieclip using the following on the frame on the main timeline where the movieclip should end
mc_finvideo.unloadMovie()
I have play, pause, fast forward and rewind buttons on the main timeline that control the main movie just fine. The play and pause buttons also control the movieclip fine.
However, I'm having problems with the rewind and fast forward controlling the movieclip. The button logic works fine (moves play ahead or back 100 frames) UNLESS I click the rewind button at a point within 100 frames AFTER a movie clip has unloaded. Then (assuming the last movie clip was at least 100 frames long), the movie goes back to a frame where there should be a movie loaded, but of course there isn't, since the frame that loaded the movie clip wasn't hit.
Here's the code for the rewind button's on release event:
intCurrFrame = math.round(_currentframe);
intMCCurrFrame = math.round(mc_finvideo._currentframe);
//if the movieclip is closer than 100 frames
// to the beginning, go back 100 frames
// otherwise unload it
if ((mc_finvideo._currentframe - 100) > mc_finvideo._totalframes) {
mc_finvideo.gotoAndPlay(intMCCurrFrame - 100);
} else {
mc_finvideo.unloadmovie();
}
this.gotoAndPlay((intCurrFrame - 100));
The fast forward button is similarly problematic -- if I click fast forward within 100 frames of a frame where a movie clip will load, the frame that the movie fast forwards to has no movie clip playing because the frame that loads the clip was skipped over.
Can anyone help me make this work? (Maybe I'm going about this whole thing the hard way?)
I can post a sample fla if it will help clarify.
Thanks
Buttons, Buttons, And More Buttons...oh And Movie Clips Too
MY QUESTION IS AT THE END and UNTIL THEN IS A BACKGROUND... PLEASE HELP!
moving along...
Ive now made several .fla files for my hour long movie. each .fla file ranges from 2-20mb. not too shabby... Ive done the load movie thing and it ran fine... i havent put any sound yet.. but i'll ask about that question later...
okay.. so the whole thing has about 30 slides... i have 5 .fla files which has 3-5 movie clips in each... each movie clip has about 1-3 slides.
everything is fine so far... (no audio, but im not there yet)
Since i dont have sound cutting software currently... i thought id make movie controls for this video....
originally i put the controls in the original timeline.. not the movie clips.. but my pause didnt work and my play acted like a fast forward... my fast forward would go to the next movie clip(which i anticipated)... but I wanted the fast forward to jump every 12frames..
so here comes the problem....
i copy pasted the buttons in the same exact place in every movie clip.... so it should ,in theory,work like it was on one timeline.. but it wont export.. the file is still the same size.. (insignificantly larger ,less than a mb)..
my question is:
does having buttons on every movie clip ( which frames length range from 400-2000, avg.1000) have a problem with flash...??????????not allowing me to export.. or maybe it's just having so many errors it wont run... in fact... when i close it down (because it wont let me cancel..) it wont let me re open the .fla again.. unless i restart the computer
Buttons Within Movie Clips
I have been having awful problems with movie clips.
I have constructed a site that uses 7 scenes. it includes a preloader 2 animated movies and the menu. the menu consists of a monocrafts style menu, which has a scrolling nav bar which contains the option buttons. I have tried varies methods of actionscript to get the button inside the movie clip to goto whatever I point it at, no luck. I have used the new dots notation too. I really would appreciate any help or advice on this matter, I am at my wits end. I can supply the fla for the menu if it helps. thanks in advance
Buttons W/movie Clips
So.. after hours of struggling I managed to stick together a little button with a movie clip in it.. but it's still not perfect.
Does anyone know
1) how to make a movie clip NOT looping?
2) how to make it so there's a clickable square around the text - so you don't have to click just the letters themselves?
I'd be grateful for any help. ^__^
Movie Clips As Buttons? Help
I have a scrolling menu. I need to use a Movie Clip as a button... Can it be done using, on clip event? How can I set the rollover?
Buttons In Movie Clips
I have a button in a movie clip that I want to go outside the movie clip to scene 2 then a fram label. Just need the code. Thanks
Buttons In Movie Clips
I have created a symbol with movie clip behaviour. Within this symbol I have placed some instances of a button I made. However, no matter what action I try to make the button do, it won't do it. That is, I can't change any of my variables, or jump to a different frame in my flash movie, etc.
It works fine if I place the button straight into my flash movie, but inside a movie clip it doesn't seem to work.
This may be a stupid question, but can anyone help me?
Buttons And Movie Clips
hello everyone, this is my first posting, My question is this:
I want to make buttons on my homepage that brings up another screnn/menu when you rollover it. Then when that screen is up be able to insert more rollovers within that screen that came up.
I can do this by making the button a button symbol, then in the over state I make it a movi clip. It works the way I want it to look, the movie clip plays when I rollover the button. I want to add more buttons within that movie clip and continue down into other MC's etc... My problem is when I move my mouse cursor off the button the movie clip goes away until I roll over again. I have put the stop script in the movie clip and that works, the movie clip plays and stops. How can I keep that movie clip on the screen for my mouse cursor to move around and select other buttons within that movie clip?
anyhelp would be great, thanks
|