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




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.



FlashKit > Flash Help > Flash ActionScript
Posted on: 02-08-2005, 01:50 PM


View Complete Forum Thread with Replies

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

Controlling A Movie Clip Inside A Button
Anybody know why I can't control a movie clip instance that's inside a button instance?

My Code:
----------------------------------------------------------------
_root.ButtonInstanceName.MovieClipInstanceName._pr operty = value;
----------------------------------------------------------------


I've attached my FLA, if you want it.


Thanks for your time,
Furry

Controlling Movie Clip Inside Button
Im creating a button component, and i need to do a simple action that makes a movie clip inside a button dissapear using the ._visible action.

Why oh why cant i control a movie clips properties inside a button?

thank you

lee

Controlling A Movie Clip Inside A Button
I have created a movie clip inside a button. I want to change the frame of the moveclip inside so that the button can dynamicly change its label.

I tried to call it by buttonName.movieclipName.gotoAndPlay(2) but it doesn't do anything. Any suggestions?

Thanks!

Button Inside A Movie Clip Controlling The Main Scene?
Hi, I have a button inside a movie symbol that is on the main scene.

When it is clicked I want to move to a certain frame on the main scene.

I have double clicked on the movie symbol and attached this script to the button:

on (release) {
tellTarget ("this._parent") {
gotoAndPlay(5);
}
}

but it doesnt do anything.

What is wrong?

Thanks.

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.

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!!

Controlling A Movie Clip Inside Another Movie Clip?
I've had my share of problems with this one...I hope someone knows what the hell I'm doing right/wrong and could help me out

Okay, I made a movieclip to put the blocks(which are movieclips too) in a breakout clone.

lets give the container movieclip the instance name "container"...the blocks are preset in that container with their own instance names...what I want to do is a hittest with those blocks but I found out that...

(this.hitTest(_root.container.block1)) doesn't work.....any ideas why?

even changing the x and y properties of the blocks doesn't work...
(_root.container.block1._x = 5)

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!!!!!

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

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.

Controlling Different Jpgs Inside A Movie Clip?
Hi folks,

I'm looking to find out if it's possible (I assume it is) to control several jpg images in a root directory and having actions applied to them once they're loaded into a "holder" movie clip.

What I'm trying to do is make a series of panoramas and while I have the photographs already, as well as an open source movie from FK, I'd like to try and basically import a jpg into a movie clip which has all the actions already in place rather than having a seperate swf with all the panoramic actions in it.

What I'm looking for is either a tute, a source file or some kind soul to tell me the AS for how to achieve this.

Thanking y'all

Controlling A Movieclip That Is Inside A Movie Clip
Controlling a MovieClip that is inside a Movie clip

on (release) {
_level5.outer.gotoAndPlay("menu");
}

The above line controls a MC on level five named outer to go to a frame labeled "menu"

My question is what if I had a button that was loaded in a lower level (4,3,or2 does really matter) to control a MC (let's call it inner) that is nested inside of the MC outer on level 5

I hope this is clear:

Controlling The Timeline From Inside A Movie Clip
Very very simple to most of you im sure...but i'm just learning AS3 and need some basic help...

I have a button in my movie clip that I want to be able to control the main timeline with.

I'd started with this:

++++++++++++++++++++++

nextbutton_mc.addEventListener(MouseEvent.CLICK, onClick);

function onClick(event:MouseEvent):void
{
play();
}

nextbutton_mc.buttonMode = true;

++++++++++++++++++++++

...but this obviously only controls the movie clip itself as opposed to the main timeline level. How can I control the main timeline?

Thanks in advance.

Controlling The Timeline From Inside A Movie Clip
Very very simple to most of you im sure...but i'm just learning AS3 and need some basic help...

I have a button in my movie clip that I want to be able to control the main timeline with upon clicking.

I'd started with this:


ActionScript Code:
nextbutton_mc.addEventListener(MouseEvent.CLICK, onClick);function onClick(event:MouseEvent):void{play(); }nextbutton_mc.buttonMode = true;

...but "play();" here obviously only controls the movie clip itself as opposed to the main timeline level. How can I control the main timeline? What would I put in place of "play();" to start a stopped timeline?

Thanks in advance.

Controlling Properties Of An Instance Inside A Movie Clip
I have a button, named "stuff", with an instance name "stuff". The button is inside a movie called "navmovie", and acts as a regular button once the movie is loaded.

I am trying to set the _alpha property of this button to 10 when another button is rolled-over in the main movie. My code for this button is as follows:


on (rollOver) {
setProperty("_root.navmovie.stuff", _alpha, "20");
}

and it is not working. I tried changing the path to the object to "stuff" and "_root.stuff" as well, and with the same result.

Could someone please steer me in the right direction? TIA

Controlling Dynamic Text Inside A Movie Clip.
How do You Control Dynamic Text Inside A Movie Clip? Or Action Script In Side A movieClip

The Dynamic Text Is Connected To A var and I want to change that var once something happens

Flash MX Pro 2004
Action Script 2.0

How To Have A Button Link To A Certain Frame Inside A Movie Clip From Inside A Movie
Is this possible? I have a menu and would like to have a drop down box nested inside the menue which links to certain frames inside the main movie clip.

Button(movie Clip) Inside A Movie Clip
Hey guys,

I had 3 buttons in the main movie which was working fine.

an external actionscript file was responsible for the buttons' functions

playPause is the instance name of the button(made as a movie clip)


ActionScript Code:
playPause.onRollOver = function()
{
    if(this._currentframe == 1) this.gotoAndStop("pauseOver");
    else this.gotoAndStop("playOver")
}

What I wanted to do is create another button(instance name speaker) on the main movie that when a user rolls over with a mouse, it'll show the 3 buttons. Basically, a button(movie clip) in a button(movie clip).

I have this movie clip working fine but none of the action script on the original buttons are working (of course because target changed).

I have tried the following and it will not work (in external .as file)-


ActionScript Code:
speaker.playPause.onRollOver = function()
{
    if(this._currentframe == 1) this.gotoAndStop("pauseOver");
    else this.gotoAndStop("playOver")
}

any suggestions? thanks in advance

Button(movie Clip) Inside A Movie Clip
hey everyone, using flash 8 here,

here is my problem.

on frame 1 line 2 i have a button ( bt1_btn ) and added this code on frame 1, line 1
Code:
stop();

bt1_btn.onRollOver = function() {
_root.gotoAndPlay("animation"); // frame 2
};
which works fine,

on frame 2 line 2 i have this movie clip ( bt2_btn ) that contains animation and 2 movie clips ( buttons - capsules_btn, and cahier_btn)
i added this code which works also...

Code:
bt2_btn.onRollOut= function() {
_root.gotoAndPlay("home"); // frame 1
};
but, i can't seem to make capsules_btn, and cahier_btn to work.

i tried the obvious
Code:
on (press) {
trace("on press");
}
which resulted to nothing.

i tried using this code at the main level on line 1
Code:
bt2_btn.cahier_btn.onRelease = function() {
trace("button clicked");
};
and got nothing

i then tried this code on frame 1 line 1 of the movieclip bt2_btn
Code:
_root.bt2_btn.cahier_btn.onPress= function() {
trace("button clicked");
};
nothing also

wondered what am i missing, or what i aint doing right, either way, can anyone help me out here?

attached file included

thanks

Movie Clip Button Inside Movie Clip.
hey ive got a slider menu which opens when clicked. however the buttons (also mc instanced) inside the slider mc wont work... here is the code:

//Menu Slider Background
_root.menuSlider_MC.onRollOver = function() {
new Tween(_root.menuSlider_MC, "_x", Bounce.easeOut, _root.menuSlider_MC._x,-250, 20);s
}

_root.menuSlider_MC.onRollOut = function() {
new Tween(_root.menuSlider_MC, "_x", Bounce.easeOut, _root.menuSlider_MC._x,-305, 20);s
}

_root.menuSlider_MC.onPress = function() {
new Tween(_root.menuSlider_MC, "_x", Bounce.easeOut, _root.menuSlider_MC._x,50, 20);s
}

//Menu Buttons
_root.menuSlider_MC.web_MC.onRollOver = function() {
trace("yes");
}

the slider mc works however i cant seem to get the 'web_MC' to respond..

how can i fix this? cheers.

Using A Movie Clip Inside A Movie Clip To Start A Frame Of An MC Inside A Movie Clip
Situation:
I have a movie clip inside a movie clip with a button inside of it.

This button on release goes to a different movie clip(svideo) in a different frame on the maintime. This movie clip has a movie clip(portfolio) inside of it.
Okay: I use an absolute path on the aforementioned button
on release
_root.svideo.portfolio.gotoAndPlay(60);

But, for some reason Flash won't go to frame 60 of the portfolio movie clip that is inside of the svideo.

I have tried numerous variations on reaching frame 60 of portfolio. Like going to the maintime line and going to the portfolio MC. Also, portfolio and svideo are the instance names and not the name of the actual movie clip.

If anybody could help, I would appreciate it. Thanks.

Controlling Navigation Of A Movie Clip Inside A Loaded Swf From Main Timeline
Hi,
I am using the two lines of code below in my main movie to laod another swf into level 50 of the main movie. I then want to control an instance of a movie clip inside the loaded swf called background but the second line (goto) does not work.


Code:
loadMovieNum ("desktops/"+backgroundimage, "50");
_level50.background.gotoAndStop(2);
The first line definately works fine.
Does this mean the hierarchy is such that I should be saying _level50.loadedswf_name.background.gotoAndStop(2)
In which case is there a way of giving the loaded swf an instance name when I load it. Or am I completely wrong?
Thanks again
Robin

A Button In A Movie Clip Controlling The Main Movie
I have a button in a MC, i want it to tell the main movie to go to (& stop at) a frame labelled "hr". why doesn't this work?: -

on (release) {
_level0.gotoAndStop("hr");
}

TY in advance

Having A Button Inside A Movie Clip To Move The Root Movie To Another Frame?
i dont know much about actionscripting so explain to me in simple terms...

i have buttons inside a single movie clip and i want to have each button (when clicked or rollover-ed) move the frame header of the main (root) movie to another position. what actionscript does this require? and will each button actually be "clickable" since they're all encapsulated in ONE movie clip??


thanks

Movie Clip Buttons Nested Inside Movie Clip Dont Work
Hi people!
im having a problem here.

in my first frame i have a movie clip named "menu_mc".
i have this AS for this movie:

Code:
this.menu_mc.onRollOver = function() {
menu_mc.gotoAndPlay(8);
}
this.menu_mc.onRollOut = function() {
menu_mc.gotoAndStop(7);
}

thats working ok, the menu_mc plays on rollover from frame 8 till frame 12 where stops.
On frame 12 (this is inside the menu_mc movie clip) i have another movie clip, named button1_mc.
and also i have AS controling that MC:

Code:
this.button1_mc.onRelease = function() {
getURL("index.htm", "_self");
}


The problem is that when i rollOver on menu_mc it work fine and the button1 appears, the problem is when i try to click button1...
doesnt work.

the swf you can see it on www.wt.com.mx/menu.swf
can anybody help me please?
what im doing wrong?
or what other ideas can you give me so i can make that work.

thanks!

PLEASE HELP Button Inside A Movie Clip..to Call Different Scene On The Movie
i have a button "within" a movie clip, i cant get it to work to call another "scene". i already used "_root." so the command will apply to the main time line but still, its not working.


on (release) {
_root.gotoAndPlay("scene2", 1);
}
thanks!

How To Get A Button Inside Of A Movie Clip Play The MAIN Movie
how to get a button inside of a movie clip play the MAIN movie

( reposted, bad grammer in 1st one)


I got a button, inside of a movie clip.....
How do I get the button to have the MAIN movie play on click, not the MOVIE clip

Movie Clip Inside A Sub Movie _ Button Wont Work
Hi,
my problem is i have a main movie, a sub movie and a button in the sub movie. everything is working fine until i press the button in the submovie to go to another page in the submovie, but the button wont work. i have tried frame numbers and labels with no luck.
I have posted the flas (main movie and submovie) at www.guntherrohn.com/team.fla  and www.guntherrohn.com/guntssite.fla

once on the homepage go to team page. the buttons i am talking about are on the seperate pages within team.
Thanks again for ur help
Regards

Playing Movie With A Button Inside A Movie Clip
OK LETS START FROM THE VERY BEGINING HERE...

I HAVE A BUTTON THAT IS IN A MOVIE CLIP, WHEN I TELL IT TO GOTO AND PLAY THE FIRST SCENE FRAME 2, IT PLAYS THE ANIMATION IN THE MOVIE CLIP AND NOT THE SCENE. WHAT SCRIPT DO I USE TO TELL THE BUTTON TO PLAY THE MOTION TWEEN IN THE FIRST SCENE ON THE SECOND FRAME.

How To Manipulate A Movie Clip On The Main Stage From Inside Another Movie Clip
I have a button inside a movie clip, and I want it to work that when you hit the button, a different movie clip will go to frame 5. anyone know how to help? I think it has something to do with which level it is on, but I can't manage to figure out anything else.

Create An Empty Movie Clip Inside An Existing Movie Clip?
I'm making sort of a tabbed navigation scheme by reading the data for each tab in from an XML file. What I'm wondering is if it's possible to use createEmptyMovieClip() to make a new empty movie clip inside a movie clip that already exists on the stage.

Using
ActionScript Code:
m_anchor.loadMovie(bg_image);
works as I would expect. bg_image is just the relative path to an image file, and m_anchor is a movieclip already on the stage. However, doing a similar thing:
ActionScript Code:
m_anchor.createEmptyMovieClip("textbox", this.getNextHighestDepth());
and then drawing a shape (a rounded rectangle, which I then want to put text on top of) doesn't work. It works if I just say "this.createEmptyMovieClip" instead of attempting to create it inside the m_anchor clip, but if I do that, the "textbox" is created at the root level and I can't unload it along with everything else in the "m_anchor" clip. Is it possible to create a new empty movie clip inside of one that is already on the stage?

Thanks!

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;
}

Placing Actionscript Movie Clip Inside A Movie Clip Symbol
I'm loading an external image into an empty actionscript movie clip (holder1) using MovieClipLoader(); on frame one of my movie and is invisible. Then when the movie plays, there is an empty movie clip symbol (image1_mc) that is placed manually on the stage within another movie clip symbol (flash_mc), and is also on a bottom layer of a mask layer which is animated. Is it possible to place "holder1" inside of "image1_mc" so that I can treat it as if it were an embedded image? In other words, have the image in "holder1" inside of the manually placed movie clip symbol "image1_mc" so that I can use it like a regular symbol on the stage?

Button Inside Movie Clip Inside Scrollpane Doesn't Work In Xml
This is sorta odd but I'm hoping somewhat easy to fix. This is in AS2 and is the last problem I have in a very small project of mine.

I have button called button01 inside a movieclip called movieclip01 which is the contentPath for a scrollpane called scrollpane01. I'd like the button to work, and depending on the code it will work in the normal .swf but won't when I embed my movie into xml.

If I put the code inside movieclip01

button01.onRelease=function(){
_root.gotoAndPlay("Frame Name");
}

It will work when I test it but not in the XML. So what I want to do is go to the main timeline where the scrollpane is and write the code there. That is where I'm stuck.

I've tried scrollpane01.movieclip01.button01 and tried movieclip01.button01 and also tried scrollpane01.button01. Just for giggles I also tried scrollpane01.movieclip01 but none of that works

Last night I had a similar problem with buttons inside a movieclip that was on the root stage. They worked in the swf but not when I embedded the file - so I found this which worked (typed in the root stage)

movieclip01.button01.onRelease=function(){

Button Controlling A Movie Clip...
For a flash site I'm working on right now, I've had some problems with conflicting actions. I've realised that the only way I can achieve what I want is to control a movie clip's frames with a button from outside of the movie clip.

how do I do that?

Controlling A Button In A Movie Clip?
In scene1 of my movie I have a movie clip with a button in it. When the button is clicked, I need the movie to go to scene3. If you don't mind, how do I do this?

Cheers

Help With Button Controlling Movie Clip...
Hey everyone,

Got a question regarding button/movie clip control. Ok, I'm making myself a flash site and I've got my links. A single link is a movie clip with a button inside of that. I want to be able to make a different movie clip at the root level rotate x number of degrees when I click the button. Any help would be greatly appreciated!

[F8] Controlling A Button Using A Movie Clip
Hi, haven't tried this before, but want to see if it can be done:
I have a movie clip with the following code:

on(release){trace("downini");
_root.controlledButtonInstanceName.press=true}

also on the stage is the button with instance name: controlledButtonInstanceName, and the following code is attached to it:

on(press){trace("pressed");}

well, it doesn't work
any suggestions?

Button Controlling Movie Clip
I posted this post earlier but i dont think i explained myself enough. so here it goes.

I have a flash website im working on and im stuck. my website loads and then my first page comes up and every thing fades in.so far everything is fine.this is where the problem comes in. on the bottom of the page i have a button that i want to controll a movie clip. the movie clip is nested inside the button on the down state. the problem with this is the movie clip plays when you hold it down and i want it to play when the button is clicked. if anyone can help me with this? i have read about using action script for this but i dont think thats the problem.also if all i need to do is put action script in the button what state do i put the action script on the up or down state?

[F8] Button Not Controlling Movie Clip
I have got a movie clip used like a button to change the appearance of another movie clip. I have got a demo that you can download to see what I have done. It isa version of what I am trying to do. On the demo. I have 3 graphics and a large letter A. The letter A is in a movie clip called "Alpha" on frame 1 with a stop action. B is on the second frame and C on the third all with stop actions. The movie clip has an instance name of "Alpha". The actions on the graphics are
______________________________
on (release){
Alpha.gotoAndPlay(1);

}

on the first
______________________________

on (release){
Alpha.gotoAndPlay(2);

}


on the second

&

______________________________
on (release){
Alpha.gotoAndPlay(3);

}

on the third graphic.


It is not advancing the frames in the movie clip.

Please help.

You can download my demo.fla here: http://www.judahpro.com/demo.zip

Button Controlling Movie Clip
I have a button on the main timeline targeting a Movie Clip. The button has a onRollOver and onRollOut state associated with some actionscript in the main timeline. The Movie Clip really is just a mask that opens and closes over in image. What I'm trying to do is onRollOVer make the mask open and onRollOut make the mask close. The animation is 40 frames with the first 20 frames being the open tween and the last 20 frames being the close tween. The problem I'm having is when the user rolls out prematurely it jumps to the last frame of the open tween and then begins it's closing tween. I think I need to set up some kind of onEnterFrame somewhere. Is there a way to get rid of the last 20 frames and just have the animation rewind? I want all the
actionscript to be on the main timeline. Example actionscript:

tv_btn.onRollOver = function () {

tv_mc.gotoAndPlay("open");

}

tv_btn.onRollOut = function () {

tv_mc.gotoAndPlay("close");

}

I know where my problem is, but not sure how to fix it.

Button Controlling Movie Clip
I have a button on the main timeline controlling an animation residing in a movie clip. I have a mask in the movie clip that opens to show an image when the button is in the rollOver state. I want the the mask to close on the rollOut state. If I make a tween with it opening and a tween with it closing, when the user rollsOut of the button prematurely it jumps to the last portion of the open animation. I want it to be fluid. I'm not sure how to do this with actionscript and I want all my code to be on the main timeline. Here is a sample of the code:

tv_btn.onRollOver = function () {
tv_mc.gotoAndPlay("open");
}
tv_btn.onRollOut = function () {
tv_mc.gotoAndPlay("close");
}

Controlling Movie Clip With Button
Hi, I am a Flash beginner. I've got the following problem:
I am doing an animation on the seven-piece Chinese puzzle called "Tangram". It consists of movie clips showing the solution of each puzzle and three buttons to control the movie clips: "Hint", "Solution", and "Next"

Each movie clip has 71 frames, with a key frame every 10 frames, i.e. frame 1, frame 11, frame 21, etc (Every ten frame, a piece of the puzzle positions itself at the right place).

I want the Hint button to tell Flash to go to frame 11 of the movie clip when clicked, then to go to frame 21 when clicked again, etc, until the puzzle is complete. My question is, instead of "nextFrame" as in:

on (press) {

movieclipname.nextFrame();

}

what should the function be? I have tried "nextKeyFrame", but Flash doesn't accept it. Could you help me with this? Oh, I forgot, another question:
does Flash allow you to create your own commands. Thanks for helping me.

Controlling A Movie Clip Within A Button?
I am trying to control a movie clip which is contained in a button.
I was told this could be done in Flash MX, if it can then I am doing something wrong.

I have an instance of my button placed on my main timeline called aubutton

Withing this button there is movie clip symbol instance named centre

I am using the following script on the main timeline instance of the button to try and control the movie clip in the button:

PHP Code:



on (rollOver) {
    tellTarget ("aubutton.centre") {
        gotoAndPlay(2);
    }





yet nothing happens

What am I doing wrong?

Controlling Movie Clip With Button
Hi, I am a Flash beginner. I've got the following problem:
I am doing an animation on the seven-piece Chinese puzzle called "Tangram". It consists of movie clips showing the solution of each puzzle and three buttons to control the movie clips: "Hint", "Solution", and "Next"

Each movie clip has 71 frames, with a key frame every 10 frames, i.e. frame 1, frame 11, frame 21, etc (Every ten frame, a piece of the puzzle positions itself at the right place).

I want the Hint button to tell Flash to go to frame 11 of the movie clip when clicked, then to go to frame 21 when clicked again, etc, until the puzzle is complete. My question is, instead of "nextFrame" as in:

on (press) {

movieclipname.nextFrame();

}

what should the function be? I have tried "nextKeyFrame", but Flash doesn't accept it. Could you help me with this? Oh, I forgot, another question:
does Flash allow you to create your own commands. Thanks for helping me.

Controlling A Movie Clip With Button
Last edited by 101-1 : 2003-12-22 at 16:10.
























I have a long animation which continually loops, within this animation there are several buttons. I would like to use these buttons to run smaller animations within the overall animation.

The desired result is to have little animations going on (when you press a button) within a larger animation.

This may be solved by having the small animations constantly running but have them invisible (Alpha=0) and then when you click the button the alpha is reset to 100.
(maybe)

I have no idea where to start with this and so any help you can offer at all will be gratefully recieved.

Nice One, 101-1

Behavior On Buttons Inside A Movie Clip Inside A Button.
I would like t create an animated button with menu inside, how do i do it.

something like on here http://www.demarchelier.net

hidden menu on left side (contents) but on flash. I have flash 8. any tutorial that explain how to do that ?

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