Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Problem With Movie Clip Moving When The Mouse Passes Over A Button On The Clip



The swf in question calls up a series of ads. To change the ads the user clicks on the forward and back button. However, when you mouseover the forward and back buttons the controlBar goes a bit haywire (as a result of the mouseOut on it).

All the files are attached in a zip file. Thanks in advance for your help guys.



ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 08-04-2004, 10:24 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Can You Use The Coordinates Of A Movie Clip That Passes Along A Guideline ? Please
hi everyone

can you use the coordinates of a movie clip that passes along a guideline to draw a line which uses these coordinates ?

for my example : i trying to let a movie clip ( a pencil ) to draw a line on stage. this pencil passes along a guideline . now can I use these coordinates of the movie clip "pencil" to draw a line with the same coordinates ( x and y ) like the movieclip that passes along it.

here is an example of what i 'm trying to. I don't want to save the line i've drawn. i just want it to draw a line where this pencil passes.

http://www.imaginationatwork.com/Ima...lscid=73636210
( if it doesn't show up, please refresh the page )

i know i already posted something similar, but perhaps the is a little bit easier to understand and most of all, it's quite URGENT.

so please anyone ??

thx.

Moving A Movie Clip Around On Mouse Click
Okay, You all were great in answering my moving a movie clip with just actionscript. Now I have another question that deals with a similar issue.


Think of a checkers.

I am trying to make a game where the user can click on any movie clip(the "pieces") on the screen , which selects it, and then click on anywhere on the screen, and that movie clip will move to that x and y position Or it will just jump to that position.

Id rather it move from the initial position to where the user clicks.

I got it to work with just one move clip, I cant get it to work to make it where you choose which clip you want to move by clicking on it.

so its like checkers, but you can move your movie clip anywhere on the screen.

sounds fairly simple I think, but Im lost.

dduck1934

Moving A Movie Clip On Clicking With Mouse
Ok I have a Movie Clip and 6 movie clips as children of the main one.

What I want to do is when I click on a move clip that is scales and moves itself to a position near the center of the clip. I'm new to this so I"ve been playing around with this in the parent movie and


ActionScript Code:
onClipEvent(enterFrame){
function moveClip(){
    if(this.sign1._y<=0){this.sign1._y+=1;}
beep;
}
}

this in each of the children.

ActionScript Code:
onClipEvent(mouseDown){
   
    _parent.moveClip();
    this._height = 290;
    this._width = 387;
}

It moves the movie clip one pixel at a time for each individual click of the child. I need more of a click and go solution and it will stop at 0,0 or the center of the parent movie clip.

thanks
POst #1

Moving Movie Clip With Button
Hello AS wizards everywhere. Can anyone help with this. I have a movie clip which displays a very long horizontal line of thumbnail movie clips which will eventually have actions attached. Right now, I'm trying to find a way of moving the long line to the left or right by 165 pixels. The movie clip I want to move has an instance name "scrollalong" and is part of a movie calIed "scroll thumb nails". I wish to do this with 2 buttons residing on the main timeline called "go left" and "go right". Once I've got to a certain point with the "scrollalong" clip I want to disable the button action so that it won't move.

thank you from a frustrated musician Map of Limbo

'Motion' & 'Still' Button For Moving Movie Clip
Glory!

I have a Movie Clip, in which a wheel is rolling constantly on it's own position.

Afetr having brought the Movie Clip on Stage, i gave motion to the rolling wheel by making it move from Right to Left on stage, through motion tweening. When the wheel is moving, as it's a rolling wheel movie clip, it looks as if the wheel is actually rolling back.

Now all that is good, there is one additional feature i want to put in.

I would like to include two buttons in the Movie.
One for "Motion" and one for "Still".

By default the wheel would be rolling backwards, moving along the stage. If a user Clicks on the "Still" Button, i want to make the wheel stop on it's position, i.e, not roll backwards on stage, but not stop the Movie Clip itself, i.e, it should keep rolling on it's own still position.

If a user clicks the "Motion" button, the wheel should then again start moving backwards from it's 'current' position.

What kind of ActionScripting is going to make this possible.

Supremacy,
Rahul S. Johari

Moving A Movie Clip With Button Script
I have worked it all out with easing and all with


ActionScript Code:
on (release) {     textbox:x_target = -450;     textbox:y_target = 0; }


but how do i keep moving with the same button?

eg an arrow which moves the target say 100 pixels?

I have don`t it before with a simple change of the button code but I have forgotton it!

Chhers

Byron

Moving A Movie Clip When A Button Is Held Down.
I have two buttons in my movie that move a movie clip up and down on my stage. the code in the buttons atm is as follows,

on (press){
if (this.pics1._y<-240) {
} else {
this.pics1._y = (this.pics1._y-10);
}

(this is just the down button)

This just checks to see if the movie clip has reached its lowest position and if it hasn't it movies it down by 10px.

What i would like to do it make is so when the button is clicked and held the movie clip moves down untill the button is released.

How could i do this?
(Im using Flash 8 with Actionscript 2)

Moving A Movie Clip With Button Script
I have worked it all out with easing and all with


ActionScript Code:
on (release) {     textbox:x_target = -450;     textbox:y_target = 0; }


but how do i keep moving with the same button?

eg an arrow which moves the target say 100 pixels?

I have don`t it before with a simple change of the button code but I have forgotton it!

Chhers

Byron

Change Direction Of Movie Clip/stopping Moving Clip
Hello everyone,
I cannot wrap my brain around this anymore. It's been sometime since I have done much actionscript but here it is:

Functionality:
I have the movie clip moving from left to right and once it reaches a certain point, it changes direction and goes back, infinitely.

I have a hitTest to check weather the mouse is over the target movie clip, if it is, the movement stops.


Problem1 - Movement:
When I mouseover the target movie clip it stops (hitTest=true) but the movement does not resume when the hitTest is false.


Here's the code:
var xchange=10;
holder_mc.onEnterFrame = function() {
//trace("x_pos: "+this._x)
//trace("xchange: "+xchange)
this._x += xchange;
if (this.hitTest(_xmouse, _ymouse, true)) {
xchange=0;
this._x += xchange;
}
else{
if(this._x > 0){
xchange=10;
xchange*= -1;
}
else if(this._x < -645){
xchange *= -1;
}
}
}//--------------------------------------
Problem 2 - CPU Resources
Also I have code on the individual movie clips within the target movie clip, they simply play frames forward and backward to enlarge a thumbnail. After a while the computer starts hating life and chugs. I know it is from the hitTest checking on each enterFrame and it eats up the resources. Is there a way to do this without the chug?

Here is the code that expands the thumbnails within the target movie clip:

stop();
this.onEnterFrame = function() {
if (rewind == true) {
prevFrame();
}
};
this.onRollOver = function() {
this.swapDepths(this.getNextHighestDepth());
rewind = false;
play();
};
this.onRollOut = function() {
rewind = true;
};

//----------------------

If someone could give me any insight into this problem I would greatly appreciate it.
Thanks guys,
I hope I've been clear.

Flash Button Moving A Movie Clip Scroll
I'm trying to get a movie clip to scroll on a click of a button, I know I could do this in frames, but the issue is that the movie clip, which is a vertical scrolling, background highlight bar for the buttons, has to go to three different buttons on click of the button. So the the Movie Clip bar will be able to scroll, in a fixed position, to which ever button, on click of that button.

How Can I Make A Moving Movie Clip - Clickable - Lika A Button ?
Hi friends,

My name is IGX and I have a problem,

how can we make a moving movie clip - clickable - like a button (for game), and go to a specified frame as we wish ?

Mouse Rollover On One Movie Clip Increase Decrease Alpha Of Another Movie Clip..
So I really haven't messed with Actionscript much for a couple years and here is my issue.

I have several movieclips I put together that will eventually be a menu for my website. When you roll over a menu option (movieclip) I am trying to get another movie clip to fade in giving the description of the menu item.

For example - when you roll your mouse over the 'Live Chat' option a brief text description would appear telling you what the live chat is about. This description is a seperate movie clip appearing away from the original menu.

I have made the movieclips for the menu and the movie clips for the descriptions. I tried this action on the menu option to get the description to fade in:


Code:
onClipEvent (load) {
this._parent.mc_text_discussionBoard._alpha = 0;
}
onClipEvent (enterFrame) {
this.onRollOver = function() {
if (this._parent.mc_text_discussionBoard._alpha<100) {
this._parent.mc_text_discussionBoard._alpha += 5;
}
};
}
But the alpha only increases on the description (mc_text_discussionBoard) by 5 when I keep rolling my move over and out and over again. It makes sense why it does that, but I'm not exaclty sure how to get it to continually increase the alpha by 5.

any help would be great and I am anxiously waiting to get this solved!
Kevin

Button With Mouse Over To Play A Movie Clip...
wonder if someone can help me out?

I am trying to create a button that will do the followings:

step 1 - the button can play a short moive clip when it first appears
step 2 - stop and stay as the last frame image
step 3 - when the mouse over, it will play that short movie clip again
step 4 - when it is hit, it will go display a new url on the same window

i have made the movie clip and the button symbol. but when i put them together, it can only do the first 2 steps...

i am putting this button on my main movie as the front page of my website.
would be much appreciated if someone could help.

Mouse Over Problem In Movie Clip Button
hello every one

i am new to flash 8. my problem is that i have a movie clip button that resides on a vertical rectangle and what i need to do is that whenever the mouse is over that vertical rectangle this button should follow the mouse pointer(up and down direction only) and the button resumes its original position whne the pointer is out of the vertical rectangle's boundary.

i have used the rewind and roll over/out functions for that but its not working, can anyone help me regarding this problem

thanx in advance

Button/ Floating Movie Clip Attached To Mouse
How do I add a movie clip attached to mouse movement when a button is rolled over? Help Please

Continuing A Movie Clip In A Button After The Mouse Had Moved Off
Hello all,

I need help and quick too!

I have a movie clip in my 'over' state in my button, but I want it to finish playing the movie clip even after the mouse has left the button. How do I do this?

Thanks all

John

Release A Button, And Be Able To Control A Movie Clip W/ Mouse
Hello. I'm trying to make a movie where after clicking on a button named maunal, you can control a movie clip with mousemove. Unfortunatly, I can't find the problem in the script. On the button I have:


on (release) {
manual == true
tellTarget ("manual") {
nextFrame();
}
tellTarget ("auto") {
prevFrame();
}


}


On the movieclip I have:



onClipEvent(mouseMove){
if (manual == true) {
nextFrame();}
}



My guess is it's in the manuel == true, but I don't know why. Any clues? Thanks,

-A

[CS3] Button Over With Movie Clip Playing Till The End, With Mouse Not On The Hit?
[CS3] Actionscript2 - How can I create a Button Over with a movie clip symbol in it, playing till the end, even when the mouse is not anymore on the hit?!

Basically, I need a button like this:

UP: invisible
Over: movie clip symbol of 20 frames
Down same movie clip symbol of 20 frames
Hit: a square that covers the movie clip symbol

I don't want the movie clip to suddenly stop playing for example at frame 12, when the user is not anymore on the hit shape... I d like the movie clip to not suddenly stop but I d like it to end in its own time at frame 20. Do you know the script to do so? Where do I place the script? on the button? on the movieclip symbol?

Thanks for your help, if you can help!!!

Problem Getting Movie Clip Inside Of Movie Clip To Face Mouse
I used the code below to make a movie clip face the mouse, it works when I use it on a movie clip that's not embedded in another movie clip, but when I used it on an embedded movie clip, it's axis seems to change.









Attach Code

var stickGun:MovieClip = this.stick_holder.stickGun_mc;
//stick_holder.stick_mc.stickGun_mc

stage.addEventListener(Event.ENTER_FRAME, onMove);
//stick_holder.stick_mc.stickGun_mc.addEventListener(MouseEvent.MOUSE_MOVE, onMove);

function onMove(event:Event):void {
// get the radian value of the angle between the clip and the mouse...
var myRadians:Number = Math.atan2(mouseY - stickGun.y, mouseX - stickGun.x);
// convert it to degrees...
var myDegrees:Number = Math.round((myRadians * 180 / Math.PI));
// get the horizontal and vertical distance between the clip and the mouse...
// rotate the clip toward the mouse...
stickGun.rotation = myDegrees;
}

The Speed Of Moving Movie Clip Changes With The Speed Of Mouse?
Hello:
anybody knows how to make the speed of the moving movie clip changes with the speed of the mouse?
here is an example http://www.bgagroup.com/dev/alpha/ui_001.html
thank you very much!!!
I am using Flash MX

fibi

Starting A Movie Clip Where Users Mouse Clicks A Button?
Hello,

I want Movie Clip A to start playing at the location where the user click on to button1.


Thanks for your help

Control Mouse Cursor And Movie Clip Using Same Button Commands
Can you control both a movie clip and the mouse cursor simultaneously whilst using one button.....essentially Im trying to get an animated gun to follow the mouse cursor, which will be invisible within the game,using the arrow keys. So when you press left the mouse cursor moves left and the animated gun aims in that direction, and moves by the same degree (angle)...any tips most welcome, or a better work around to achieve the same result.

Many thanks............

Moving A Clip To Where Mouse Clicked
I have a movie clip that I would like to travel to where the user clicks on the stage. Thus far, I can make the clip "pop" over to where the mouse is clicked, but not travel in a smooth manner. Here is the script I'm working with:


Code:
onClipEvent(mouseDown){
xPos = _root._xmouse;
yPos = _root._ymouse;

if (xPos>_level0.clip._x){
do {_level0.clip._x += 10;
} while (xPos>_level0.clip._x);
}
else {
while (xPos<_level0.clip._x) {
_level0.clip._x -= 10;
}
}

if (yPos>_level0.clip._y){
do {_level0.clip._y += 10;
} while (yPos>_level0.clip._y);
}
else {
while (yPos<_level0.clip._y) {
_level0.clip._y -= 10;
}
}
}
The next step in this process is to orient the clip to face the direction it is traveling towards (ie: where the click occured on the stage) - if it makes things easier to fix now rather than later.

Any help is much appreciated.

Moving A Clip Horizontal With Mouse Movement
Hi,

Im trying to get a movie clip to move left and right depending on where the mouse is and to also loop (if you keep going in one direction it will start at the beginning again seamlessly. That part is fine.

My question is how to get it to speed up the more over to one side you go and then to slow down when you head towards the centre.

I have attached my fla.

any help much appreciated.

Thanks

Moving A Clip In Function Of Mouse Position
Hi!
I'd like to make a clip move (over time, slowly) in the direction of the mouse's position.
IMO, this includes refreshing two things :
a) the vector that is applied to the clip's position
b) the clip position
a has to be refreshed every times the mouse moves
b has to be refreshed every frame
I have found listeners like onMouseMove, but it is useful only for point a. To make the clip move even when the cursor is immobile, everytime in fact (point b), I need to execute a code every frame.
Is there such a listener, that is executed every frame ? Any advice ?

Moving A Movie Clip From A Parent Movie Clip
Fellas..


I've played with Flash 5 and action script a few years back.. just getting back into it recently. This might be a noob question, but I'm having a hard time trying to search for a solution.



I'm putting together a silly little game (Flash 8) that involves a tank, or missile base (ala Space Invaders) with a rotating turret. The tank consists of 2 movie clips.. one for the base/treads which attaches the mBarrel movie clip to itself.

This is a hard one to describe, so please bear with me.

I've managed to have the turret 'look-at' the mouse cursor, so it's angle adjusts to aim at where the player has the mouse reticle.

I'm firing a missile, by using some thing this..


Code:
function FireRocket():Void {

// firing a missile with attachMovie
_level0.mPlayer1.mBarrel.attachMovie("mMissile_Normal",
"mMissile_Normal" + _global.nRocket,
_level0.mPlayer1.mBarrel.getNextHighestDepth(),
{_x:(_root.mPlayer1.mBarrel._x), _y:(_root.mPlayer1.mBarrel._y)});

}


My missile has a script that simply += it's _y.




THis works beautifully. A missile appears *right* inside mBarrel, and adopts it rotation, and by having the missile MC increase/decrease it's _y will send it in motion. I was originally planning on having to use matrices to have the fired missiles inherit the barrel's angle, but having the barrel movie clip call the missile movie clip worked amazingly well.

The thing is.. if I rotate the barrel (by moving the mouse cursor) ALL the rockets automatically change their angle along with the barrel.. as to be guided missiles per se.

How do I stop the missiles from moving along with their parent MC?


wheeew..

Moving Clip Contents Left/right On Mouse Over, Any Tutorials Out There?
Hi there,

Getting a whole load of data from a xml doc.

Want to load images into a movie, one next to another. Obviously there will be too many images in the movie for the user to see so..

When the user puts the mouse over the movie, and moves the mouse left/right, the movie will 'drag' its self in the relevant direction.

Anybody out there know a tutorial for doing this? Also want to turn each image into a button, so that it will change the main image to the selected image.

Thanks in advance....

Targeting A Frame Label In A Movie Clip From A Button In A Separate Movie Clip.
I have two separate movie clips placed on a timeline-MovieclipA and MovieclipB. I have a button in MovieclipB clip that wants to target a frame label located in the MovieclipA timeline. Can someone help me?

Code 4 MovieClip Button To Load A Movie Clip Into A Placeholder Movie Clip.
Yeah that title sounds a little confusing...so i will explain:

Is there a way to tell a "movie clip button" that once it is clicked on to load a "movie clip" into a "movie clip placeholder". So instead of loading an external swf into the placeholder, it will be a movie clip from within the same library. Putting every single custom clip on the timeline would take a while, so that is why I thought it would be easier like this, and the other movie clips are not that large that I want to load into it so there is no need for external swfs, trying to keep it clean. Here is the code along the lines I am trying to go for.

__________________________________________

this.profile_mc.onRelease = function() {
placeholder_mc.loadMovie("profileSection_mc","plac eholder_mc","_root.content");
}
__________________________________________

- "profile_mc is the button I am trying to activate to load the
"profileSection_mc" into the "placeholder_mc". but so far no good.

- the movie clips are within the same library, not on the timeline or external library.

- Is this possible?

Movie Clip Button Inside Movie Clip Button Is Driving Me Nuts
hellllllo everyone, this thing has been bothering me for weeks, i've been hiding from it for days but it always seems to come back and bug me..
this is the problem..
on my main timeline i have a movie clip button that plays over/out state within this clip and on the over state it also opens 8 other movie clip in this movieclip that i am hoping to make them clipable, i only made an over state for the first movieclip out of the eight, but it just wont do the rollover effect..
i think there is a better way to do this..if i need to start over..let me know..thanks!!!

i will attach the file please help me out! i am tired of hiding!
thank you again!!!!!

Stop And Play Button For Movie Clip Within Moive Clip
hi i have problems with my buttons. i have got 2 fla files. 1) shell.fla 2) content.fla.

The shell.fla has a movie clip(name:holder) to load the content.swf. And within the content.swf i have got movie clip within movie clip.

Thru a search from the forum i came across this script

first frame:


Quote:




function stopAllClips(clip) {
clip.stop();
for (var i in clip) {
if(typeof clip[i]=="movieclip") {
if(clip[i]!=clip) {
stopAllClips(clip[i]);
}
}
}
};

function startAllClips(clip) {
clip.play();
for (var i in clip) {
if(typeof clip[i]=="movieclip") {
if(clip[i]!=clip) {
startAllClips(clip[i]);
}
}
}
};




for the button:


Quote:




on (release) {
if(!_root.stopped){
_root.stopAllClips(_root.holder_mc);
_root.stopped = true;
} else {
_root.startAllClips(_root.holder_mc);
_root.stopped = false;
}
}




everything works fine except after i pause and play, i doesn't play from where it has stopped. Anyone has got any ideas as to how i can solve this problem. Thanks very much.

A Button Inside A Movie Clip, Within A Movie Clip, Calling Another Scene:
Is it even possible?

I have been trying to do it for the last few days for a site I am working on.

I have done searches in many forums and it's foolish looking for an answer that way, because quite frankly every thread I opened was something to do with LoadMovie or GetURL, etc.

What I have right now is on the button in my Menu Bar Movie Clip:

on (release) {
gotoAndPlay(285);
}

Which plays a fancy little animation in the movie clip and then on the last frame of that movie clip I had:

gotoAndPlay("Contact", 1);

Which is the Scene for the "Contact Us" Scene named "Contact"

One would think that it would load up the scene and play at frame 1, however all that happens is it reloads the movie clip of the "Menu Bar" at frame 1 and starts over, not even realizing what I asked.

Anyways, I figured there's a script or something that tells it to look outside of the movie clip or to the _Root, or whatever.

If someone has a solution, it would be greatly appreciated.

Sorry I have no example to show, since I have yet to upload it. (It's my company's web site, and I don't think customers would want to see some half-arsed web site that's not complete.

Thanks in advance.

Create A Movie Clip As A Button To Jump To Half Way Through Another Movie Clip?
hi guys and gals,
i am wondering if i can make a movie clip (as a link for a website) jump to half way through another movieclip...
thanks in advance

Control Movie Clip In Container From Button Inside Other Movie Clip
There are three movie clips involved in this question.

1. A main movie clip that has a target empty movie clip where an external swf loads.

2. A menu movie clip that is built from button symbols and has its own timeline.

3. The external movie.

When a user clicks on the menu, the external swf loads into the empty movie clip target.  This part works fine. Here's the code:
on (release) {    
    loadMovie ("Lesson1.swf", "_root.container");
}

I want to use one external swf for all lesson, versus 20 external swfs. The problem I'm having is controling at what frame the external swf loads.  I've tried adding --gotoAndStop (15) -- for example. I've also tried adding, gotoAndStop "_root.container" (15), but that doesn't work either. The gotoAndStop action ends up controlling the menu movie clip timeline instead of the movie loaded into the container. I figure this is because the menu mc has "embedded" buttons and it's own timeline.

Any  help you can offer will be much appreciated.

Thanks
Sheila



Creating A Button To Open A Movie Clip From Inside A Movie Clip?
I'm using a hexagon menu to display some images. One image is placed on each slide of the hexagon menu (which can then be rotated left and right to see other "slides").

What I want to do now is to be able to click on the object (image) as a button and for it to go to another scene which shows the image blown up and some description next to it (which is another movie)

I have tried the following which doesn't seem to work:
Created an invisible button (or choosing the image as a button) and having

on(release) {
gotoAndPlay("scene 5", 1);
}

this doesn't work when I use it over the hexagonal menu, but when I move the button to somewhere else on the screen (not over the movie) it works.


Please can someone help with this - Ive been working on it flat out over the weekend and desperately want to make it work. any ideas would be appreciated!! thank you

Loading External Movie Clip With A Button Inside Another Movie Clip Help
Hi,

I am working on a scrolling thumbnail movie clip, that when you click on the thumbnail button inside the movie clip it will load an external movie clip. I have an empty movie clip on the main stage, and have been trying all sorts of code, but for some reason it doesn't like that I am inside a movie clip using buttons. It can't seem to find the external swf.

I have tried:

on (release) {
loadMovie (ithink.swf, "loader");

and

on (release) }
if (firstTime == true) {
loadMovie("ithink.swf", _root.loader);
firstTime = false;
} else {
_root.clicked = "ithink.swf";
_root.loader.gotoAndPlay("goback");
}
}

and so far nothing, for some reaosn when I click on a button outside of the movie clip with the above code it loads... and than the other works too, but if I click on the buttons inside the scolling movie clip first they won't work.

Any suggests or ideas!!?

I would really appreciate it... I am beyond frusterated!!

How Do I Play A Clip After Mouse Stops Moving For A Ceratin Amount Of Seconds?
How do I play a clip after mouse stops moving for a ceratin amount of seconds?

How Do You Make A Button Able To Jump From Movie Clip To Movie Clip
how do you make a button able to jump from movie clip to movie clip

I have 5 movies i the same scene , I need the buttons to jump from movie to movie ... how do I code this in the acrions ?

A Button Inside A Movie Clip To Move Another Movie Clip
I'm building a web page and I have a button that I need to make two movie clips play. The button is inside one movie clip and in addition to it playing I want it to make another movie clip play. It doesn't seem to recognize the movie clip target names. Any help as to how this can be done would be much appriciated.

Thanx

Controlling A Movie Clip From A Button Inside Another Movie Clip.
I'm confusing myself just typing this.

I'm working on an interactive map. The map itself is a MC inside a container, but also contains all the buttons as well. On my main stage(scene 1 and menu) is a window(MC) that will show info and photo of building. Now if I create a button on the main stage I can control the movieclip(images) easily. But when I use a button from inside map(MC) it doesn't seem to recognize the (images.gotoAndStop(frame))command.

I'm just not sure what to put in order to be able to control the MC's timeline from within that map movieclip.

Sorry if this is confusing. Of course at the same time it might be a simple solution for most people here as well. At least that is what I'm hoping anyways.

[CS3.AS2] Button In A Movie Clip Link To Another Movie Clip And Play
what im doing is that making a button in a movie clip link to another movie and play/stop certain parts of that clip

lets say that there are 4 buttons are in movieA, and the other clip is called movieB

when the user clicks button1 in movieA, movieB will play from frame 1 to 5 and stop.
when user clicks button2 in movieA, movieB will play from frame 5 to 10.
and so on

so far my code for button1 is:

on (release){
this._parent.movieB.gotoAndStop(5);
}

on (release){
_root.movieB.gotoAndStop(5);
}

button2:

on (release){
this._parent.movieB.gotoAndStop(10);
}

on (release){
_root.movieB.gotoAndStop(10);
}

with this code, it just jumps to the designated frame.
what i want is to have it play from current frame to a designated frame

can anyone shed some light on this?

Place Movie Clip Button Inside Movie Clip
Hi, I have searched the forum but cannot find exactly what I am looking for.
I have a movie clip of a map that I can zoom and drag and what I would like to do if possible is to have several other movie clips inside the first movie clip which when clicked go to and play at a given frame number on the timeline where a photo is displayed.

The 'several' movie clips will be small flashing red circles. Each one represents a place of interest and when clicked will display a photo of the place of interest.

Button Nested In Movie Clip Just Repeats Movie Clip
I have a button that is inside of a movie clip. (the button falls down from the top). BUT, when i click on the button, it just plays the movie clip over again? Am I missing something?
Thank you

Help Pls Making A Button In A Movie Clip Goto Another Movie Clip (pic)
Hi guys and girls,

i need ya help. What action script would i need to make a button in one movie clip goto and play a frame in another movie clip. I've added a pic to help. Im not very good at flash but i've been trying my usual codes but it dont work..

Cheers

Help Pls Making A Button In A Movie Clip Goto Another Movie Clip (pic)
Hi guys and girls,

i need ya help. What action script would i need to make a button in one movie clip goto and play a frame in another movie clip? I've added a pic to help. Im not very good at flash but i've been trying my usual codes but it dont work..

Cheers

Move Movie Clip On Button Clip
This is a script that causes a movie clip to move down to a new location when a button nested inside the movie clip is released. can anyone tell me how to write the code so that when a different button is pressed the movie clip will move back to its original position. I am trying to learn actionscript 2.0 by taking the posted files apart and so on, I have a ton o books none of which are too helpful so I could really use some help. What the heck is "ty". I decided to join the forum because books were not cutting it! LOL

here is the code thanks.

ActionScript Code:
// this is the main button to start the slide show
collButtHolder.slide1.onRelease = function() {
    //move the to menu down to reveal the slide show components
    slide(collButtHolder,324);
    // call the function to set up slide show or reset it you had other buttons
    // this is where you set your path to the photos and how many photos are in that folder.
    resetSlideShow("images/slide1/", 15);
    collectionMenu.bName.text = "slide1";
};

function slide(mc, ty) {
    mc.onEnterFrame = function() {
        mc._y += (ty-mc._y)/5;
        if (Math.abs(ty-mc._y)<0.4) {
            this._y = ty;
            delete mc.onEnterFrame;
        }
    };
}

Using A Button In A Movie Clip To Control The Movie(and Not Movie Clip) Timeline
Ok i have a button placed in a movie clip. I want this button, when released, to go in another scene, frame one, on the movie(scene) timeline and not on the movie clip timeline.

So i tried: gotoAndPlay("mission", 1); (mission is the name of my scene)

But it goes to the frame 1 of my movie clip, It would be great if someone could tell me how i can control the movie timeline while my button is in a movie clip

thaks
Vakarm

Moving A Movie Clip?
Hello

I can not seem to figure out or find the answer to this.

I have a movie clip called 'ball'.

Ball starts out at x/y of 100,100.

I want to move ball to say 187,372 but fluidly not just disappear at one x/y and reappear at the destination x/y.

Anyone know how to do this?

Thanks

Moving A Movie Clip
This is really, really newbish..

Anyways, how does one "move" a movie clip? For example, I press the up key and the object moves a bit up?

Copyright © 2005-08 www.BigResource.com, All rights reserved