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




Stuck With Movie Clip Button



hello forum, thx for reading my question

i'm trying to use a movie clip as a button that includes rollover and a rollout animation. I got all that to work but I wanted it so that when you click it, it stays at the "end rollover" state and when you rollout, it doesnt play the rollout animation if you've clicked it. But if you didn't click it, it will rollout of you roll your mouse out.

so far i can get it to stay rolled when click, but still roll out, or i can get it to no rollout when clicked AND even when i don't click.

Here's the code, please help!



Code:
manu_btn.onRollOver = function() {
manu_btn.gotoAndPlay("_over");
};
manu_btn.onRelease = function() {
manu_btn.gotoAndStop("_press");
};

manu_btn.onRollOut = function() {
if (manu_btn._currentframe = ("_press")) {
manu_btn.gotoAndPlay("_press");
} else {
manu_btn.gotoAndPlay("_out");
}
};



Ultrashock Forums > Flash > Flash Newbie
Posted on: 2006-10-19


View Complete Forum Thread with Replies

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

Stuck On A Movie Clip :(
sos....plzzzzz
i have a movie clip inside a scene. it is an accelerating scrolling menu bar, the thing is that i want to link the buttons in the menu to a different SCENE, inside my fla it only links to another flash movie, but not to a scene inside my intended one.... hope i was clear in my question... coz i realy need help, and have a nerve recking deadline.....

thxs a milion

Help, I'm Stuck In A Movie Clip, And I Can't Get Out
The two numbers circled in red launch a movie clip which opens up a grey box, which will contain information about the number.

The problem is: I can't get out of the movie clip to get back to the main scene, which I've named 'opening'. I attached an action to the button on the stage of the movie clip.

Ughh! This is sooo confusing. Can anyone help?

-Matthew

Movie Clip Gets Stuck
HEY EVERYONE...
This is my first post and I am hoping this works...
ANYWAYS, I have a small mini navigation that I want to include on my home page that I am working on. I have main navigation at the top of my website in HTML, BUT I just wanted to add a lil flash to the page to make it a lil more eye catching.

So This whole thing works PERFECT besides the fact that the movie clip gets stuck when u roll off the flash movie directly onto the html part of my website. If you roll back up into the flash movie first the movie works fine.

I am using a "onClipEvent (enterFrame)" that is attached to the movie to make the "roll over" effect start. There is an else statement that tells the movie clip to play in reverse when you roll off the movie clip into the other part of the flash movie. BUT like I said when you roll off the flash movie and dont roll into into the other part of the flash movie the bottom movie gets stuck.

I am NOT an expert at actionscript just good enough to do tutorials and edit the actionscript so the movie behaves like I want. I can do simple action by my slef and I checked the actionscript dictionary that adobe has and I see that there is NO "onClipEvent (exitFrame)" so I dont know what to do. I tried giving the movie clip "on (rollOut), and on (rollOver)" action but then the movie clip behaves like a button and the buttons that are inside the movie clip do not act like buttons any more.

SO I am clueless on how to get this thing to work how I want. If anyone can help me I would greatly appreciate it. Even if there is another TOTALLY different way to do what I am trying to do. I am open to changing my whole movie around. SOOOOO please let me know if anyone has IDEAS

thanks in advance....
PS... this is the page that I am trying to get to work....
http://www.ipeclip.com/test/index.html
(the flash movie is located near the top)

Movie Clip Gets Stuck :(
HEY EVERYONE...
This is my first post and I am hoping this works...
ANYWAYS, I have a small mini navigation that I want to include on my home page that I am working on. I have main navigation at the top of my website in HTML, BUT I just wanted to add a lil flash to the page to make it a lil more eye catching.

So This whole thing works PERFECT besides the fact that the movie clip gets stuck when u roll off the flash movie directly onto the html part of my website. If you roll back up into the flash movie first the movie works fine.

I am using a "onClipEvent (enterFrame)" that is attached to the movie to make the "roll over" effect start. There is an else statement that tells the movie clip to play in reverse when you roll off the movie clip into the other part of the flash movie. BUT like I said when you roll off the flash movie and dont roll into into the other part of the flash movie the bottom movie gets stuck.

I am NOT an expert at actionscript just good enough to do tutorials and edit the actionscript so the movie behaves like I want. I can do simple action by my slef and I checked the actionscript dictionary that adobe has and I see that there is NO "onClipEvent (exitFrame)" so I dont know what to do. I tried giving the movie clip "on (rollOut), and on (rollOver)" action but then the movie clip behaves like a button and the buttons that are inside the movie clip do not act like buttons any more.

SO I am clueless on how to get this thing to work how I want. If anyone can help me I would greatly appreciate it. Even if there is another TOTALLY different way to do what I am trying to do. I am open to changing my whole movie around. SOOOOO please let me know if anyone has IDEAS

thanks in advance....
PS... this is the page that I am trying to get to work....
http://www.ipeclip.com/test/index.html
(the flash movie is located near the top)
I also attached the .fla file

Stuck In The Movie Clip Of Masking
Hi,
my problem is that I play a masking with a Movie Clip and can't get to the next scene after playing the mc once. here is the link to the file: http://teszt.netteam.hu/bgw/
I would like to skip to Scene2 and keep also the background music.
How would it be possible?
thanks for your kind help in advance

Movie Clip Buttons Getting Stuck
For some reason my movie clip buttons get stuck playing when rolled over too fast. Any ideas why this might be happening?

Thanks in advanceed

Dragging Objects, But They Are Stuck In A Movie Clip?
Hey guys, I don't know what I've done, but I am sort of pulling all these different elements into a project that I'm working on, and they are sort of getting all confused and mushy...

Check out the confusion at:

bathroom planner has some issues

I would like the objects on the left hand side to be dragged onto the right side of the screen (after you create the box), but they are in a movieclip scrollbox...

I'm sure that there must be some easier way, with actionscript or something like that, but I am really confused and violent-feeling...

If you want me to make the .fla available, just tell me...

-- Nate (TheArchon)

Flash Movie Clip Stuck On First Mouse Over
So I made a flash menu and everything loads fine except the menu links (that are movie clips) get stuck on the first rollover. When I put my mouse over one of them the first time it stops when it finishes the mouse_over event but it stays there instead of continuing and returning to the original state after I "Mouse_out". I have to roll over them a second time to stop this and it works fine after the second rollover. Any idea what this could be? (Flash CS3 / AS 3.0)

Draggable Objects Get Stuck On Pointer When Release Over Movie Clip
Hi, hope someone can help. i've got movie clips that can be dragged around scene and perform a hit test when dropped over the correct target. however, if i release the object over another movie clip that isn't the correct target, the object im dragging gets stuck on the mouse pointer and i have to move the pointer to an empty area and double click to release

im using the following...


Code:
object_mc.onPress=function(){
object_mc.startDrag();
}
object_mc.onRelease=function(){
object_mc.stopDrag();


any ideas? thanks. x

Still Stuck With Dynamic Text Not Showing Up Inside Movie Clip Problem
hi there..
posted this afew days ago..but still havent recieved help.One guy was helping me and said i needed to but the "render text as html" but i did and still didnt help.

i want to use dymanic text inside a moving movie clip.But the problem is when i "test movie" it doesnt show up, there is nothing there.But when i change the text back to static text then it shows up fine.
Why might this be??

Can anyone helps me out

cheers!

Creating A Flash Game, Buttons Pressed = Play Movie Clip, Stuck On How To Start
Hello All, as it's Christmas time, the time of goodwill to all, I thought now would be the best opportunity to post this 'plea for help'. Don't worry I'm not asking you to create it for me I'm just looking for a 'heads up', or for (metaphorically speaking) someone to show me the door so I can walk through it.

Basically I need a wee bit of help on what I actually need, how I need to go about creating it, where I need to put it, and so forth.

Feel free to call me 'stupid' or 'moron' throughout this thread as I have accepted that in doing something like this is completely beyond my capabilities, but hey, if I get a step in the right direction I may just pull it off.

---------------------------------------------------

Right I'm basically trying to create a penalty shoot out game, where the gamer has the best of 20 penalties to score a goal.

What I planned to do goes a little something like this.

Game loads

Screen pops up, saying "blah blah blah welcome, instructions, blah blah blah"

"Please enter your name" (User enters name in a text field, this is stored)
"Please enter your team" (User enters team name in a text field, this is stored)
"Please choose difficulty" (dropdown list of either 1. Easy, 2. Medium, 3. Hard)

User then has to press 9, and the title screen goes away and the game starts.

Scoreboard at the top of the screen, a goal, a ball and a keeper on the game screen.

Scoreboard states how many penalties taken (starts at 0) and how many scored (starts at 0).

The user has the option of pressing 1,2,3,4,5 and 6 (this is where the football will go, e.g. 1 = bottom left, 2 = bottom middle, 6 = top right etc)

The user makes their choice and presses the button.

A random number is generated between 0 and 10. if difficulty is easy then any number between 1 and 9 is a goal, if difficulty is medium then any number between 1 and 7 is a goal, if difficutly is hard then any number between 1 and 5 is a goal.

Lets say the user pressed the number 4

if it is a goal then play movie clip goal4 and add 1 to the penalties taken and add 1 to score.

if it is a miss (e.g random number is 8,9 or 10) then play movie clip miss4 and add 1 to the penalties taken and 0 to the score.

Once the penalties taken = 20, then end the game.

THE END

---------------------------------------------------

Sorry if that's bored you to death, feel free to ignore it and get on with your lives whilst I wake up in a ditch somewhere on xmas day due to not being to create this simple game as I didn't know where to start etc, and spend the rest of my life on the street corners begging for money to feed my drug habit and gambling addiction.

In all seriousness though, have a merry christmas everyone and have an even better christmas if you actually help me out.

Stuck With Zoom In And Zoomout Button For A Movie
Hi ! There,

How do i go about a zooming a movie on button click and zoom out on another button click...

I tried placing two buttons for zoom in and zoom out...
where I used setproperty parameter x_scale n y_scale...It scales movie only once..up to the defined value

Help Pls..

Sabs

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

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?

Help Trigger External Movie To Load From Button In Another External Movie - Stuck
I really hope someone can help me!!!

I am loading movie C.swf into movie B.swf which gets loaded into movie A.swf the main movie. All loading works except C.swf has buttons that need to trigger another movie E.swf to load into A.swf and that is not working!!!

Here is the structure I am using:

A.swf (main final movie loads B.swf on start)
B.swf (loads main nav C.swf and scrolls it infinitely)
C.swf (main nav with buttons that trigger sub nav E.swf to load into A.swf)
E.swf (sub nav with buttons that trigger F.swf to load into A.swf)
F.swf (scrolling images of portfolio)

The actionscript I am using for the button in C.swf to trigger E.swf to load into the main movie A.swf is:

metals_mc_bn.onRelease = function() {
reActivateMenu();
this.gotoAndStop(3);
this.enabled = false;
loadMovieNum("E.swf", 1); // trigger sub nav E.swf to load into A.swf
};

I am so stuck with this and seems so simple a problem, but I'm just pulling hairs out at this point, can anyone please help me!

Stuck On Movie Clip "goto"s
Okay, My movie is a little needlessly complex. I have my main movie, which has stop(); on frame 60, and there is a movie clip instance that starts on 58 (constant_mc, instance name: c1) and continues to play. I then have a movie clip INSIDE constant_mc called run_mc, which starts on frame 80 (of constant_mc). constant_mc has a stop(); command on frame 81. Is there any way I can get constant_mc to loop back to frame 3 when run_mc is done playing? I have a c1.gotoAndPlay(3); at the end of run_mc, but I don't think its picking up the main timeline's instance name. Sorry if that is confusing, but I'm sorta new to Flash and trying to pick things up.

Stuck On Movie Clip "goto"s
Okay, My movie is a little needlessly complex. I have my main movie, which has stop(); on frame 60, and there is a movie clip instance that starts on 58 (constant_mc, instance name: c1) and continues to play. I then have a movie clip INSIDE constant_mc called run_mc, which starts on frame 80 (of constant_mc). constant_mc has a stop(); command on frame 81. Is there any way I can get constant_mc to loop back to frame 3 when run_mc is done playing? I have a c1.gotoAndPlay(3); at the end of run_mc, but I don't think its picking up the main timeline's instance name. Sorry if that is confusing, but I'm sorta new to Flash and trying to pick things up.

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

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

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

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.

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.

Movie Clip Button Inside A Movie Clip Button
Ok so I'm going crazy with creating a movie clip button inside a movie clip.

I have it working well for onRollover, but onRollout the Header_mc looks like it is not looking at the code. It is driving me crazy. Here is my Action Script code to control the two movieclip buttons.

I basicly want the Header_mc to stop when over the B_photo and on Rollout of the B_photo. I don't know why it is not working. I have attached screenshots of my Header_mc and the SWF so you can see what frame I'm calling.



/*--------------Photographers Button------------*/

this.B_photo.onRollOver = function() {
Header_mc.gotoAndPlay("_stop");
B_photo.gotoAndPlay("_over");

}

this.B_photo.onRollOut = function() {
Header_mc.stop("_stop");
B_photo.gotoAndPlay("_out");

}

this.B_photo.onRelease = function() {
B_photo.getURL("http://www.macromedia.com", "_parent");
}

/*--------------Main Header---------------------*/

this.Header_mc.onRollOver = function() {
Header_mc.gotoAndPlay("_over");

}

this.Header_mc.onRollOut = function() {
Header_mc.gotoAndPlay("_out");

}

this.Header_mc.onRelease = function() {
Header_mc.gotoAndStop("_out");

}

Button(movie Clip) In A Button(movie Clip) Help - Attached Fla
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")}


here is the fla (for the test file, i simply put the as code in the frame and not external as file)
www.yooniq.net/dante/testmp.fla

and here is what i'm talking about
www.yooniq.net/dante/testmp.swf

any suggestions? it'll be greatly appreciated.
thanks in advance

Button In Movie Clip To Link To Other Movie Clip
I am trying to have a button isde my movie clip on frame 1 to jumpt to the start of my movie clip on frame 2. They are both in the same scene. I have tried all the basic action scripts including calling the root target and movie name and nothing will work. I am using Flash5 in XP.

Some of the scripts I used:

on (release) {
loadMovie ("", "_root.about");
}


and

on (release) {
gotoAndPlay ("_root.about");
}


why doesn't this work?

ps my 2nd movie clip is called "about"

Button In Movie Clip To Link To Other Movie Clip
I am trying to have a button isde my movie clip on frame 1 to jumpt to the start of my movie clip on frame 2. They are both in the same scene. I have tried all the basic action scripts including calling the root target and movie name and nothing will work. I am using Flash5 in XP.

Some of the scripts I used:

on (release) {
loadMovie ("", "_root.about");
}


and

on (release) {
gotoAndPlay ("_root.about");
}


why doesn't this work?

ps my 2nd movie clip is called "about"

Movie Clip To Movie Clip Button Action
I am trying to have one movie clip jump to another movie clip. I made the mistake of having them on seperate frames and corrected that. None of the code I have used works still. I am wondering if anyone has a solution. I am sure its something small I am forgetting.

Some of the scripts I used:

on (release) {
loadMovie ("", "_root.about");
}


and

on (release) {
gotoAndPlay ("_root.about");
}


why doesn't this work?

ps my 2nd movie clip is called "about"

Can A Button In A Movie Clip Control A Different Movie Clip?
I'm working on a web page with a draggable menu which is in its own movie clip. Can the buttons in this menu affect different movie clips or the main page?

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.

Movie Clip To Movie Clip Button Script?
I am trying to have one movie clip jump to another movie clip. I made the mistake of having them on seperate frames and corrected that. None of the code I have used works still. I am wondering if anyone has a solution. I am sure its something small I am forgetting.

Some of the scripts I used:

on (release) {
loadMovie ("", "_root.about");
}


and

on (release) {
gotoAndPlay ("_root.about");
}


why doesn't this work?

ps my 2nd movie clip is called "about"

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

Display Movie-clip With Image/text/button ..when Clicked On A Button
We had generated a template.

Template has 2 area
Buttons on left and right had side area is blank

on click of button we want to display a movie-clip having image/text and buttons for nvaigation.


We found that on click we can display the movie ...it displays image text is not diapled. Also we want to display buttons on the same.

Your help is great value addtion to us.

Thanks in advance

Ramesh

Make A Button Within A Movie Clip Make The Main Movie Clip Play?
hi, is it possible to make a button within a movie clip make the main movie clip play?

at the moment i have it set to play(); on release put this plays the movie clip rather than the main movie, is there any way to make it play the acutal main movie insteat?

Jumping To A Scene From Button In A Movie Clip Button?
I need to jump to a scene from a button inside a movie clip of ascene. Can any one please help? On the frame for the button in the movie clip I have this action script:

on (press, release) {
gotoAndPlay ("presCambells", "presCamp");
continue;
}

It works (with enable simple button action) in flash, however, when I publish and preview as a swf flash file it just shows the current scene with the movie clip looping after I click on it. Please Help.

Trying To Get A Button To Play A Movie Clip After I Click The Button
trying to get a button to play a movie clip after i click the button. right now when i preview my web i have to hold the button for it to play and after i let it go it dissaperes. please help with flash mx. use to corel rave so simple but limited

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