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




A Button Not Active Beneath A Movie Clip.



a button not active beneath a movie clip.

I have a button beneath a movie clip.
By beneath , I mean on a lower layer level, not inside an movie clip.

The problem is my button is not active, because it`s blocked by a movie clip above it.
How can I solve this problem without changing the order of my layers?

P.S. I`M USING FLASH CS3 with AS3.0



ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0
Posted on: 09-09-2008, 02:43 PM


View Complete Forum Thread with Replies

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

[MX04] Issue: Buttons On Main Movie Are Still Active Beneath Loaded MC
Basically, I have a small interface (a large square for instance) with main and sub navigation contained in it. Using a loadMovieNum action on a button to "View More Photos", it loads a pop-up Image Viewer MC (that covers the entire large square) and presents a new mini interface and a "Close Window" button. Simple enough.

The problem is the buttons beneath the loaded MC are still active when I roll over the new interface.

Should I be using an empty MC instead? Is it an issue of transparancy?

Getting To Movie Clip Beneath Alpha
I have a series of movie clips laid out across the stage... Some overlap...

They're all set to alpha 0, with the idea that on roll over they fade in to alpha 1... and then on roll out, back to 0.

But since alpha is 0, the object is still on stage and so if they overlap I'm getting the wrong event target each time.

Is there any way around this outside of pulling them out of the library when needed or placing them so they don't overlap?

Thanks much for your help.

Detecting If Movie Clip Is Already Active
Time for me to update my flash a bit.

How is it done on a site where a button is clicked and a movie clip fades in.
Then, if the same button is clicked yet again, since the movie clip is active, nothing happens.

It is tricky due to the fade in.

Thanks!

Using A Variable To Indicate An Active Movie Clip
I'm trying to use a variable to indicate a movie clip is active. there are multiple clips, about fifteen of them, so I'm trying to get around having to talk to them all at once. I figured I could have the clip say it's target name as a variable, and then use that variable to target it, but I'm not sure how to use the variable in an action. here's what I was thinking:

the active clip sends it's target name to the timeline as a variable "active-clip-target-name"

the button in another clip, to communicate with it, says:
"_root."+"active-clip-target-name"+".play()";

but this is not working at all. does anyone know the correct syntax for this kind of thing?

Buttons Behind Movie Clip Active
I have build movie clip which at some point slides on top of the buttons. The problem is that buttons are active under mc although they are not visible.

I know i could script to disable buttons i.e. button._visible=false, but since i have too many buttons things are little bit messy.

Do you know any better way to disable buttons behind movie clip?

Any help/suggestions will be highly appreciated!!!

Using A Variable To Indicate An Active Movie Clip
I'm trying to use a variable to indicate a movie clip is active. there are multiple clips, about fifteen of them, so I'm trying to get around having to talk to them all at once. I figured I could have the clip say it's target name as a variable, and then use that variable to target it, but I'm not sure how to use the variable in an action. here's what I was thinking:

the active clip sends it's target name to the timeline as a variable "active-clip-target-name"

the button in another clip, to communicate with it, says:
"_root."+"active-clip-target-name"+".play()";

but this is not working at all. does anyone know the correct syntax for this kind of thing?

Using A Variable To Indicate An Active Movie Clip
I'm trying to use a variable to indicate a movie clip is active. there are multiple clips, about fifteen of them, so I'm trying to get around having to talk to them all at once. I figured I could have the clip say it's target name as a variable, and then use that variable to target it, but I'm not sure how to use the variable in an action. here's what I was thinking:

the active clip sends it's target name to the timeline as a variable "active-clip-target-name"

the button in another clip, to communicate with it, says:
"_root."+"active-clip-target-name"+".play()";

but this is not working at all. does anyone know the correct syntax for this kind of thing?

[F8] Is There An Active State For Movie Clip Buttons?
Hi All,
I have functions for my movie that do a on press, on release, on rollout states. But I was wondering what the code or if there was an example how how to code in action script. If the user clicked on the button then it would keep a color to show that is the active button that was clicked already?

Similar to the HTML: active state

Any ideas ? Actionscript 1 please

Links In Hidden Movie Clip Are Still Active
hi,

i have some content that gets hidden until the user clicks on a button. it uses a hideRelated() function. the problem is that it has a link to related content and a search function that still appear to be active even when the content is hidden.

any ideas how i could solve this?

Links In Hidden Movie Clip Are Still Active
hi,

i have some content that gets hidden until the user clicks on a button. it uses a hideRelated() function. the problem is that it has a link to related content and a search function that still appear to be active even when the content is hidden.

any ideas how i could solve this?

Button Beneath Swf
hello.

Please help me.
I have some floating window that opens above my page. The problem is that I don't want buttons above to be trigerable.
I tried to put an movieclip on bottom layer of floating window and tell him not to show hand cursor, but it looks as if my floating window is transparent. I could still push buttons below and cursor would change into hand.

http://www.etna.hr/
go to button "ostalo" and click any of galleries. Then go over reed floating window and you'll notice that you can push buttons underneath.

Thank you guys in advance, I know you'll help me out.

Bye

When Mouse Is Still A Movie Clip Plays, When Its Active It Doesnt. How Do I Do This?
Basically this is what i am afte.

I am in the process of creating a world map navigation for a global ite portal.

In the map a user can hover over different continents to zoom in on specific countries then click on that country's to goto its specific website.

However I think the world map looks a little un-user friendly so planning to include a looping movie clip to show the areas o the map glowing.

This feature a little reminisant of when sonic the hedgehog used to tap his foot if you didnt use your joypad for a while.

I would also like to start the movie (after he preloader ive used) with the tutorial playing, so the user can understand the way it works straight away.

I have found this:

Time-Out
This example consists of a single frame with only code. The code dynamically builds a clip and a textfield for display, and incorporates a mouse move detection that only displays the aforementioned clip and textfield if the mouse has not moved for a specified amount of time.

http://www.canfieldstudios.com/flash...out/index.html

which works as i want it to, however when adjusting it to work with my fla it just doesnt work!


I have uploaded my FLA that i am building, so you can take a look at it:

Here is the url to the zip (Please copy and paste this url into your browser window to download DO NOT click link, thanks!)

http://www.geocities.com/freeeky/help_v1.zip

Basically when the mouse is still for say 3 seconds I want the movie clip called 'Continent Glow' to play (its on the layer called 'Glow')

I also want the continent glow movie clip to play as soon as the swf is loaded too.

Please help!!

Thanks

Button Over State Active When Movie's Loaded
I want to keep a button over state active when that category is selected.
for example, if you select 'portfolio', and then the portfolio clip is loaded,
how do I keep the portfolio button in the overstate when viewing portfolio?
I just want to identify the category by the color of the overstate of the portfolio.
When you leave the portfolio section, I'd like the button to resume it's normal behavior. Do you have to write a script like: if this condition exists then display button overstate?, and what is the correct way to do that?

Really confused....please help!!

Sassius

Creating A Rollover Button That Deletes The Content Beneath
How do I do this I've triad a few variations on masking with little or no success

RollOver Movie Button - Can You Make Part Not Active?
Hey Everyone....

I have a movie clip that has a thumb nail and the thumb nails larger image. I have my AS set so when you roll over the thumbnail it plays the frames within the movie clip so the larger pic shows up.

My problem is that if you roll over where the larger picture is suppose to pop up, it plays the same way as if you were rolling over the thumb nail.

How do i stop this from happening? Preferably without redoing the whole set up.

Heres what it looks like now: http://www.braytongraphics.com/StCroixTanRollOver.swf

Click on Amsterdam, Clifton Park or Delmar to see what i am talking about

If anyone would like to see the FLA file thats here: http://www.braytongraphics.com/StCroixTanRollOver.fla

Any help is appreciated!

Thanxs in advance :)

Transparent Movie File.... Unselectable Text Beneath...
I have a transparent .swf that I am exporting and then use div tags to place on my html page.... but then all selectable content beneath it dies. Does anyone know how to let the user "click through" the transparent section of the .swf file?

HELP Clicked Button Still Active And Tracking While Underneath Newly Loaded Movie?
I just tried to load a new movie on top of an old one, with the old movie being the initial navigation interface screen. I got everything to work, but there is one flaw...when the new movie loads, the hit area of the button "underneath" is still active and when you mouseover where the button on the previous interface used to be, it still tracks it as a button even though on the new screen, it is just part of the newly displayed background space...how should I make it so that the button cant be used if it's underneath another swf?

I could disable the button as part of the onRelease, I 'spose...I just wanted to know if you guys knew a better way to swap interfaces/load new files...below are my two tried attempts...they both do the interface loading/swapping just fine, but that damn button is still active underneath the newly loaded mynextMov.swf



loadMovie("mynextMov.swf",loadPoint);

OR...

loadMovieNum("mynextMov.swf",2);

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?

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

Stopping Audio In Non-active Clip
hi there,

i have a movie clip that plays audio that can also open a quicktime movie with audio in another window. does anybody know a way to stop the sounds in one window if another window is opened? or another way to get around this without the user having to restart the audio again?

thanks,

dougc

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

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