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




Buttons Layers And More Buttons?



I have a calander basicly a grid of buttons when you click a on a day a popup window mc apears above the grid here you can add a event for that day. the problem is that the buttons in the leyer bellow are still clickable through the popUp mc (the pop up mc is is a square with a few form fields and and a submit button ) if some clicks a little of from the text field they click the calender buttons bellow. is there a way to prevent this.

thanx dave



FlashKit > Flash Help > Flash MX
Posted on: 10-03-2002, 06:35 PM


View Complete Forum Thread with Replies

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

Layers And Buttons
If you load a flash movie in a second level. The buttons on the first level keep on working. How can I make this not to happen?

[Edited by Bart_Missant on 08-28-2002 at 10:25 AM]

Buttons With Layers
i've created a button with 2 up/over/down/hit sequences, each with its own layer. the trouble is that the layer on top always appears to change. the layer below is working, but since it's under the primary layer, you can't see it. is there any way to modify the "hit" area so that a specific layer becomes the primary layer?

btw, i've tried separating it into 2 layers on the timeline each with its own button, but that doesnt work either.

Buttons And Layers
Hi there,

I've got a little problem with some buttons on differend layers.

I've made a little movie (look here... ) with a bunch of sounds in it.

I'm loading the sounds as separate MCs in _level1, _level2, _level3.
If a user plays a Sound, a StopButton <_visible = true;> appears over the playButton used <on release>. At SoundComplete, a little MC sets all StopButtons to <_visible = false;>. The same MC plays, if the User clicks the StopButton <on press> or clicks another playButton <on press>.

Now the problem:
Sometimes the StopButton doesn't appear if the user clicks on a Sound in a differend level, sometimes it does.

thanks...
Giorgio

Buttons On Layers
hi I have buttons on different layers that are being half covered by other buttons on a higher layer how would you bring them to the front/higherlayer, with an mouseover action script and then putback with mouseoff

many thanks.

Buttons Through Layers?
ok i have two layers, the bottom layer has a button and the layer above it has a rectangle covering it, open the swf and i can still hit the button through the layer! why!?!?!?!

Buttons Through Layers?
ok i have two layers, the bottom layer has a button and the layer above it has a rectangle covering it, open the swf and i can still hit the button through the layer! why!?!?!?!

Layers & Buttons
Is there a way to "solidify" (sorry, I don't know the term) a graphic/symbol/etc. in the layer above the button's layer so that the button below does not react upon mouse over?

The Buttons Beneath My Layers
hi there,

Im making a popup window onto like a higher layer (whereas the main film is at layer 0) and it shouldnt be a problem. I plan on putting other buttons into the popup window but i am noticing that opening one window doesnt make whatever buttons that are underneath it disappear...like the buttons to open the window still show on rollover once the window covers them. I need to make my window "solid", so the buttons from level zero dont interfere with the popped-up buttons on level one.

Would anyone have any tips?


Later and thanks in advance,

Jan

Buttons Under Loadmovie Layers
Hello,

I have 4 different movies. at the beginning of each movie there is a button that starts that movie. I created a swf that loads all the movies on different layers. Movie 1 on layer 4, movie 2 on layer 3, and so on. And then at the end of each movie I unload the layer that the movie is on, and then the next movie, is right there waiting under it to play. the problem is that those buttons that start the movies, You can click them when you're not on that layer.. You can't see them, but they are live. I need to make them not work until that movie is the top layer. Or, to get rid of this entire problem,.. How could I unload layer 5, and at the same time make it play layer 4 (which on the first frame has a stop action, so it doesn't play until it's turn)
thanks

kal

Blocking Buttons Through Layers?
Not sure if I am in right forum - but maybe I am! Is there a way (maybe through some aactionscript) of preventing a button activating when it below another layer without unloading the movie below.

thx in advance

yoonka

Ahhh Buttons And Layers
Im attempting to create a header bar with 8 images that all have a cartoonish bubble pop up when you roll over the faces. I also wish to have image slide down from the bottom of the images. the images also have a grey layer below them that doesnt cover the whole header. I want the images to slide out from the grey layer the images are on top of. I really have no clue how make that function work. I was thinking about a on release play movie clip action script, but i havnt had any good experiences with ASing. If you could please show me the code i should use or if some kind of mask could help.


Thanks

ActWind

Disabling Buttons When Under Layers?
im making a menu system that when either of two buttons are checked, more options are revealed.
the check boxes remove a partly transparent layer above the buttons to reveal them. the buttons under it though can still be clicked under the layer.

Buttons Clickable Through Other Layers
i have a series of thumbnail pictures, which when clicked attach a movie from the library (w/ attachMovie()). the full size picture, which is loaded onto a level higher than all the thumbs, shows up fine (it is above the thumbnails). however, if one clicks on a thumbnail that is BEHIND a full size picture, it will read the click and load another full size pic, DESPITE the fact that the button is covered by a movie clip on a higher level. how i can i prevent this?

i.e. www.geocities.com/shassmir/pics.swf
www.geocities.com/shassmir/pics.fla

..russ..

Disabling Buttons On Under Layers?
I have a menu for a CD that has a number of buttons on level "0". When I load another swf into level "1" the buttons are not visible because I have a graphic to hide them, but they remain active. Is there any simple way to remove the functionality of the buttons on level "0" without using unload movie? Thanks.

How To Hide Layers With Buttons
There is a layer on my application which i want the user to be able to hide if they wanted to, by clicking a button.

hiding a layer in the timeline while creating a flash (clicking the eye dot thing which makes a cross on the dot and hides the layer)... this is the function i want a button to do... and undo by clicking a second time.

thank-you in advance.

Buttons Turning On/off Layers
I'm trying to build an interactive map using Flash MX. The goal is to be able to display/hide features such as cities or roads. I can't figure out how to connect the buttons in the "Buttons" layer to the different movie clips.

Here's the goal: There are several layers playing simultaneously over each other. Each layer is either static or active (a movie clip). When you click the On/Off button corresponding to the map layer, it actually starts and stops the map layer movie (based on if it is already on or off). The movie clips/map layers are 1 frame, no animation.

I've attached a streamlined version of the project that just has the background and the cities layer. I've been playing with this for days with no luck. If anyone could help me out, I'd be extremely grateful.
-Matt

Layers, Rollovers And Buttons
Hi,

i've created a dropdown-menu. The menu is a movieclip. In the movieclip there are several buttons with the submenu's on it.
Now I've animated the movieclip like this with As
code:
on (rollOver) {
this.onEnterFrame = function() {
if (this._currentframe < 20) {
this.nextFrame();
} else {
delete this.onEnterFrame
}
}
}

on (rollOut) {
this.onEnterFrame = function() {
if (this._currentframe != 1) {
this.prevFrame();
} else {
delete this.onEnterFrame
}
}
}


In that movieclip there are the buttons of the submenu's.
For one reason the cursor doesn't generate the "Over" state of that buttons. Does it still gives the "rollOver" to the parent MC? Is nesting of rollOvers not possible?

What can i do?

Thankx in advance
kGP

Controlling Layers Using Buttons
(i am still new to this flash thing, so this may be a very dumb question...)

i am looking to build a top view map of my town with buttons that toggle certain features: such as roads, points of interest, etc.

how can i create this dynamic map using radio type buttons?

Multiple Layers Of Buttons
I'm a newbie to Flash and actionscript. I'm trying
to run multiple photos in one spot (if you go to my home page,
http://www.floridalegalreport.com, you'll see a crude version of what I'm
trying. But I want the whole photo to be clickable). Each photo is seen for
five seconds. I want my visitors to be able to click on a photo and go to the
story for that photo. So my 15 invisible buttons are all in the same spot on
the stage, or overlapping. However, I have limited the invisible buttons that
correspond with each photo to run on the timeline at the same time the photo
runs that the button is connected to. (Could that last sentence be more
convoluted?)

Anyway, when I test my movie, I get this error code:

TypeError: Error #1009: Cannot access a property or method of a null object
reference.
at StoryScrollTemplateWith15Arrows1_fla::MainTimeline/frame1()

Here is my actionscript:

leftone_btn.addEventListener(MouseEvent.CLICK, leftoneHandler);
function leftoneHandler (event:MouseEvent):void {
navigateToURL(new URLRequest("http://www.google.com"));
trace("I'm clicked");
}
lefttwo_btn.addEventListener(MouseEvent.CLICK, lefttwoHandler);
function lefttwoHandler (event:MouseEvent):void {
navigateToURL(new URLRequest("http://www.yahoo.com"));
trace("I'm clicked");
}
leftthree_btn.addEventListener(MouseEvent.CLICK, leftthreeHandler);
function leftthreeHandler (event:MouseEvent):void {
navigateToURL(new URLRequest("http://www.tbo.com"));
trace("I'm clicked");
}

...and so on

Any ideas?

Thanks a bunch,
Josh Good, aka Totally Clueless in Tampa

Buttons On Overlapping Layers
i have two movie clips.
movie clip A is on layer 1, movie clip B is on layer 2 (above).
clipA has a button inside of it, when clicked, plays clipB.
clipB was off the stage, but once the button in clipA is clicked,
clipB plays and moves to the center of the stage, covering
clipA and the button inside of it. BUT i can still click the button inside
clipA even though i can't see it
(and that animates clipB all over again into the center of the stage)

that's bad. i don't want that. what can i do?

Get (Buttons/) Layers Inactive
Hi guys !

just started into FlashMX, and now i got a little problem.
I made a scene with 5 lockers, which you can open and close by clicking on them.
The thing is, is just want one locker to be able for opening at the same time.
Cause otherwise its all mixed up withe look it should have.
Is there a possibility to lock one layer, as a button on the other layer is active ??
I tried it with the "buttonX.enable=true" commands, but dindt work for me...

Heres a link where you can take a look at it, then you should know what i mean
http://members.chello.at/sandberg/home.html

thanks for your help !

Get (Buttons/) Layers Inactive
Hi guys !

just started into FlashMX, and now i got a little problem.
I made a scene with 5 lockers, which you can open and close by clicking on them.
The thing is, is just want one locker to be able for opening at the same time.
Cause otherwise its all mixed up withe look it should have.
Is there a possibility to lock one layer, as a button on the other layer is active ??
I tried it with the "buttonX.enable=true" commands, but dindt work for me...

Heres a link where you can take a look at it, then you should know what i mean
http://members.chello.at/sandberg/home.html

thanks for your help !

Buttons Under Layers With Window. How Can I Disable Them All At Once?
I have a big problem with the fact that when I create a window in flash, every button under that layer remains active, and even if I can't see them, my cursor still changes when rolled over them, and I can still click on the button..

Is there any way to disable every button on another layer when I enable a feature on another layer? or even on the same layer..

I have thought about embedding each button in individual movies, and just doing a tell target goto frame 2 and just have dummy buttons on frame 2, but the project at hand will probably have about 30-40 buttons active at any given time.. I don't want to have to do that for every button on there..

I am hoping to find a script that will take care of the problem..

Thanks for any help...

Hiding Layers And Buttons With Actionscript
Hi,

Can anyone help?

I need to either:

Hide a button instance (that is not a movie clip) ie render invisible using AScript

Or

Hide a layer using Ascript


I am sure it is very easy....

Thanks very much
Ed

Layers Above Buttons Not Blocking Button
i have a button on a bottom layer, above it i have an mc that is tweened to come in over the button..

however the button's action and cursor still happeen when i mouse over the button even when it's obscured by the mc symbol above it?

how do i 'block' the button underneath the mc?

Hiding/Displaying Layers With Buttons
Is there a command which will hide and display a layer when when a button is pressed?

Thanks

Help With Buttons, Layers And Movie Control
Hi All,

I would really appreciate some help with the following, I will do my best to explain the situation.

I have a movie with one scene Scene1.

On the main stage there is a second movie. "softwarelists" with the instance name of "scrollingClip" within this movie there are several buttons. I am trying to get these to jump to another frame to show another movie called "zonealarm" however i cannot get the buttons to show the movie if i put it within the softwarelists movie or on the mainstage.

I have tried everything, well obviously not but it just wont show.

Can anyone help.

Ive uploaded the FLA here if anyone can help www.4melimited.co.uk/page_2.zip

Scripting Buttons -- Are My Layers A Problem?
I am using Flash MX 2004, with ActionScript 2:

I am creating an interactive graphic, with buttons that are scripted to call up photos. It's a fashion piece, so you click on the face of the model and a close-up of the earring appears; you click on the watch, and a close-up of the watch appears; etc.

I made invisible buttons on frame 1 and scripted each one to call up frame 2 (earring), frame 3 (watch), frame 4 (purse), etc. The problem is, no matter which button I push now, they all go to the shoes (which I put at frame 5). Each item is on a different layer, so I thought maybe my problem was that the shoes were the top layer. But I mixed the layers around and put shoes at the bottom and that's still the photo all of my buttons are pointing to.

Here is an example of the script I'm using at frame 1:
stop();
earring_btn.onRelease=function(){
gotoAndStop(2);
}

However, when the earring button is released, it goes to frame 5 and shows the shoes.

Can anyone help me?

Buttons Open Same Mc, But Link To Different Layers, Can It Be Done?
I have 2 buttons on an interface, on the root timeline which play the same animation (of the interface disappearing) in a mc. But i would like to have them open they're 2 respective layers at the end of the animation.

ie one button could be to "Contact us" which would play the closing of the interface animation and then open up a layer on level 2 called contactus.swf

if you had pressed another button called "Portfolio" it would play the closing of the interface animation and then open up a layer on level 2 called portfolio.swf

(the reason im asking is because I'll have a lot more than 2 of these buttons happening and was wondering if i could use one animation rather than may duplicated versions of the same aniamtion)

thx in advance.

Hiding Buttons Underneath Layers
hi,

i currently have a scene in flash acting as an image gallery, which contains thumbnail images. When i click on a thumbnail, the full size image appears as the top layer of the scene ..... but the thumbnails underneath are still clickable

is there a way of making these unclickable without making all the thumbnails visible = false?

Thaks in advance for the help !

tony

[F8] [CS3] SwapDepth On Layers, Triggered By Buttons
Hey everyone!
I'm trying to figure out how to get whichever button I push in a row of buttons, to display a certain layer/image and depending on which button I push, the layer that the button correspnds to, moves to the very top of all the other layers and the rest of the layers stay at the same level. Basically a presentation with different options....Keep in mind that I'm still pretty new at Flash!

If what I'm describing isn't clear, a good exampe of some real websites which utilize what I described above is car websites such as volkswagen.com and subaru.com where you can pick the car you want and then go on and add paint color, or the wheels and rims and just keep clicking and adding on the layers until you get the model specifications that you want....That's what I'm trying to figure do but cant find enough info on how to do it
Any help would be AWESOME!!
Thanks everyone!

-Chris.

Buttons Open Same Mc, But Link To Different Layers, Can It Be Done?
I have 2 buttons on an interface, on the root timeline which play the same animation (of the interface disappearing) in a mc. But i would like to have them open they're 2 respective layers at the end of the animation.

ie one button could be to "Contact us" which would play the closing of the interface animation and then open up a layer on level 2 called contactus.swf

if you had pressed another button called "Portfolio" it would play the closing of the interface animation and then open up a layer on level 2 called portfolio.swf

(the reason im asking is because I'll have a lot more than 2 of these buttons happening and was wondering if i could use one animation rather than may duplicated versions of the same aniamtion)

thx in advance.

RollOver And RollOut With Layers Of Buttons
Hi There,

I am an old school Flash developer (FLash 3!) who has just come back to using the software (Flash 8) and is having to learn to use ActionScript. I have a problem with stacked/layered buttons that I no doubt knew a solution to many years ago, but currently have no idea how to deal with.

I have a button that appears when I mouse over a 0 alpha region. There is also another smaller button on top of the corner of this button, which appears at the same time.

When I rollout on the larger button I want both to disappear. Easy enough using a line or two of script. I use the same script on the smaller button to mimic the behaviour.

The problem is, when I move my mouse across the larger button to the smaller button, even though the mouse pointer is still effectively over the larger button, the smaller one takes it's focus and the application assumes I have 'Rolled out' of the bigger button and makes both of them disappear.

Does this make sense?

here is the script I use:

Code:
on (rollOver) {
setProperty("P1HolidayIcon", _visible, 100);
setProperty("P1HolidaySpeaker", _visible, 100);
}
on (rollOut) {
setProperty("P1HolidayIcon", _visible, 0);
setProperty("P1HolidaySpeaker", _visible, 0);
}
This script is used for both buttons.

Is there a way of having the larger bottom button still detect it is being rolled over when the the pointer goes onto the smaller button. Or...can I pre-empt the fact that it is about to disappear by detecting that the pointer is over the smaller button (is their a property/function to detect if the pointer is over a symbol?)

I hope this makes sense. I'm all over theplace at the moment trying to fix this because until I do, I'm kind of stuck in a rut.

many thanks
Guy

SwapDepths On Layers, Triggered By Buttons
Hey everyone!
I'm trying to figure out how to get whichever button I push in a row of buttons, to display a certain layer/image and depending on which button I push, the layer that the button correspnds to, moves to the very top of all the other layers and the rest of the layers stay at the same level. Basically a presentation with different options....Keep in mind that I'm still pretty new at Flash!

If what I'm describing isn't clear, a good exampe of some real websites which utilize what I described above is car websites such as volkswagen.com and subaru.com where you can pick the car you want and then go on and add paint color, or the wheels and rims and just keep clicking and adding on the layers until you get the model specifications that you want....That's what I'm trying to figure do but cant find enough info on how to do it
Any help would be AWESOME!!
Thanks everyone!

-Chris.

Deactivate Buttons On Lower Layers
Hi all,

In my page I have included a button that plays a movie. In this movie a balk box expands open across most of the page with text and pictures in it. Like a popup in a html web browser. The effect works fine and gives the desired result but any buttons under the popup frame (that is buttons in lower layers that are not visible but are still there) still work. This can cause a little confusion if a user accidentally clicks on them or rolls over them with their mouse. Is there a way to deactivate buttons outside the movie or in lower layers. Thanks for any help.

RG

Buttons, Buttons, And More Buttons...oh And Movie Clips Too
MY QUESTION IS AT THE END and UNTIL THEN IS A BACKGROUND... PLEASE HELP!

moving along...
Ive now made several .fla files for my hour long movie. each .fla file ranges from 2-20mb. not too shabby... Ive done the load movie thing and it ran fine... i havent put any sound yet.. but i'll ask about that question later...

okay.. so the whole thing has about 30 slides... i have 5 .fla files which has 3-5 movie clips in each... each movie clip has about 1-3 slides.

everything is fine so far... (no audio, but im not there yet)

Since i dont have sound cutting software currently... i thought id make movie controls for this video....

originally i put the controls in the original timeline.. not the movie clips.. but my pause didnt work and my play acted like a fast forward... my fast forward would go to the next movie clip(which i anticipated)... but I wanted the fast forward to jump every 12frames..

so here comes the problem....

i copy pasted the buttons in the same exact place in every movie clip.... so it should ,in theory,work like it was on one timeline.. but it wont export.. the file is still the same size.. (insignificantly larger ,less than a mb)..

my question is:

does having buttons on every movie clip ( which frames length range from 400-2000, avg.1000) have a problem with flash...??????????not allowing me to export.. or maybe it's just having so many errors it wont run... in fact... when i close it down (because it wont let me cancel..) it wont let me re open the .fla again.. unless i restart the computer

[F8]Buttons, Buttons, Buttons Dynamic Text?
Hi

I've got a set buttons that are different instances of the same mc. I'd like to make labels for each button but I don't want to have to duplicate all the buttons in the library and add the labels separately.

I think I need to to this with Dynamic text but that as far as I've got with the searches I've done on Google.

Thanks in advance for any help.

Buttons With Multiple "over" Layers
(please see attached) I've created a button so that when a specific area is moused over, its related "over" image is to be displayed. The problem is that I have 3 areas which can be moused over, so therefore one of 3 different "over" images would be displayed. Since they are all on top of each other in different layers, only the top "over" image works. The others aren't viewable since they are below the top layer. I've confirmed that they all work though.

Is there any way to force certain layers to be invisible when certain areas are moused over? Or, will replacing those 3 "over" images as 3 different movie clips solve the problem? Any other thoughts?

Thanks

ActionScript In Buttons To Reference Movie Clips Inside Buttons
I want to reference a movie clip inside a button, to use tell target on the button. Is there a way to use something like:

tellTarget (this.movieclipname) {
}

that way i can use multiple instances of one object, rather then having to make a different action for every single time i want to use it.

Hiding Buttons Or Movie Clips With Buttons With Actionscripting
Greetings,

I really need someone's help. I am trying to hide buttons from screen when certain conditions are set. For example, I have a variable called Amount. Now, I have a textfield that displays the value of Amount. Three buttons are visible. Each button has actionscript so when click each button would subtract some amount from the variable Amount. Button 5 will subtract 5 from Amount and button 10,20 accordingly. Now, when Amount is less than 20. I wanted to make the 20 button disappear from the screen (not using timeline, object oriented actionscripting). Then when Amount is less than 10 the 10 button will disappear.

I tried making the button disappear with "five._visible=false;" However, I was told I could not do that with buttons. So, i created a movie with button inside. It disappears with "moviefive._visible=false;" But the button does not work when visible. I can see the little hand when I place the mouse over the button, but it does not work. It does not subtract from the variable Amount.

When someone clicks the five button, five button has code that will subtract 5 from Amount and if statements that will "twenty._visible=false;" if the Amount is now less than 20.


Could someone please help me. Thank you very much. I really appreciate any assistance you could provide.

Thanks again

Multiple Buttons Loading MC Buttons On Single Stage
Hello,
I need three buttons , working independent of each other, to "turn on" the MC in three seperate boxes, all on the same timeline- further, I want these MCs once "turned on" to actually be buttons that can then send the user to a different page. I can make this work if it's only one button, using two frames (by "hiding" the already launch MC over the top of it- then sending the link to frame two etc) but I need ALL three buttons visible, in whatever order the viewer clicks them! (Think of a wall with three windows and the MCs are the window images!) SO: the viewer clicks a button (any or all three) that turns on the movie clip and the movie clip can then be clicked to launch to a new page. Is this even possible?
-sorry for the long explanation- thanks for any help!
ras.

Dynamic Text For Multiple Buttons W/ Scroll Buttons/bar
HELP! I know a similar question to this has appeared multiple times before, but here is my situation:

i have four buttons, each of which will load a a separate text file into a dynamic text field (ie: button A to textfield 1, button B to textfield 1).

The other trick is, this also has a custom scroll bar. (I would rather just use an up and down arrow, but if i have to use a bar as well, I will not be too distraught.)

Is there a way that I can have all the text files loads in a dynamic text field PLUS have a scroll bar to aid with scrolling.

Any help would be greatly appriciated. I have been trying to figure this out for about a week now, and am still no where.

peter /slqu.net

ps: i am a designer, and for some reason, programming, even of the most simple nature, still eludes me. so please take pity me

Avoiding Paypal Shopping Cart Buttons - Need A Way Around Buttons
Hi - I'm on MX; my client wants a VERY minimal site. I'm using his Paypal business account to sell merch, and the process is pretty easy to set up...EXCEPT that he wants to avoid the buttons provided by Paypal. They provide the HTML to paste in for said buttons; I'm using dynamic scrolling text, pulling from an external .txt file. I know how to HTML format for links, etc. - is there a way to bypass the use of an actual button, and just use text links for the "add to cart" and "view cart" buttons? I know that if I upgraded to MX 2004, I would be able to place images (buttons) in my dynamic text - but that is a moot point, as he wants to avoid buttons altogether. I'm copying the HTML code Paypal offers for the add to cart button below:

------------------------
form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but22.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
input type="hidden" name="add" value="1">
input type="hidden" name="cmd" value="_cart">
input type="hidden" name="business" value="willyt14@aol.com">
input type="hidden" name="item_name" value="Hilarity and Despair">
input type="hidden" name="item_number" value="001">
input type="hidden" name="amount" value="10.00">
input type="hidden" name="no_note" value="1">
input type="hidden" name="currency_code" value="USD">
input type="hidden" name="lc" value="US">
input type="hidden" name="bn" value="PP-ShopCartBF">
/form>
-------------------------

Thanks so much!

Targetting 'Hit' State On Buttons/immediately Disabling Buttons
Hi,

I have a button which, when clicked on, is set to disable itself. However, when it's clicked, the mouse is obviously still over the button and so the 'Over' state is shown - which implies that the button is still active. I don't want this - I want the button to be completely disabled as soon as it is clicked. If I move the mouse away from the button then it becomes completely disabled.

See here:

http://www.russellgillman.co.uk/testmenu.swf

When you hover over the buttons the text becomes yellow. When I click on a button, the green block moves to the selected button and the button is disabled, and yet the text remains yellow. I want it to become white immediately.

Code on the button:


Code:
on (release) {
services_btn.enabled = false;
getURL("www.site.com", "mainFrame");
slider.xMove = services_btn._x;
about_btn.enabled = true;
rates_btn.enabled = true;
rental_btn.enabled = true;
sales_btn.enabled = true;
coverage_btn.enabled = true;
contact_btn.enabled = true;
}
What I'd like to do is to target a specific frame in the button - eg:

services_btn.gotoAndStop("Hit");

but this doesn't work.

Can some help please!? Thanks...

Buttons Whos Actions Depend On States Of Other Buttons -HOW?
Hi,

I’ve made a 3D animation as a background to my homepage, and have imported it into Flash CS3 as a series of still TIFF images (one image on each frame).

Now I am looking to control this animation using a series of 9 buttons. At the moment each button does the following:

Button1: Play frames 01 – 20. Stop.
Button2: Play frames 21 – 30. Stop.
Button3: Play frames 31 – 40. Stop.
…etc.

However, I want to make each button’s action dependant on the states of the other buttons:

When the user presses any of the 8 buttons other than the one that is currently engaged, I want the animation relating to the button that is currently engaged to be played in reverse, and then the animation belonging to the button that has just been pressed to be played!

For example, if Button 1 has been pressed, then the user presses Button 2, I want frames 20 – 01 and then frames 21 – 30 to be played. Another example; Button 3 is engaged, user presses Button 1 – frames 40 – 31 should be played and then frames 01 – 20.

If anyone could help me with the ActionScript to perform this (ideally AS3 but AS2 is fine) then I would be extremely, extremely grateful.

Thanks in advance for any comments.
Ben.

Buttons Whos Actions Depend On States Of Other Buttons -HOW?
Hi,

I’ve made a 3D animation as a background to my homepage, and have imported it into Flash CS3 as a series of still TIFF images (one image on each frame).

Now I am looking to control this animation using a series of 9 buttons. At the moment each button does the following:

Button1: Play frames 01 – 20. Stop.
Button2: Play frames 21 – 30. Stop.
Button3: Play frames 31 – 40. Stop.
…etc.

However, I want to make each button’s action dependant on the states of the other buttons:

When the user presses any of the 8 buttons other than the one that is currently engaged, I want the animation relating to the button that is currently engaged to be played in reverse, and then the animation belonging to the button that has just been pressed to be played!

For example, if Button 1 has been pressed, then the user presses Button 2, I want frames 20 – 01 and then frames 21 – 30 to be played. Another example; Button 3 is engaged, user presses Button 1 – frames 40 – 31 should be played and then frames 01 – 20.

If anyone could help me with the ActionScript to perform this (ideally AS3 but AS2 is fine) then I would be extremely, extremely grateful.

Thanks in advance for any comments.
Ben.

Replacing Dedicated Gallery Buttons For Next/prev Buttons
Hey all, I could use some help with this. It's probably something simple but it beyond my current abilities - any assistance would be aprreciated.

Well I'm using the code from one of the XML gallery tutorials. Currently the code has dedicated buttons for each individual gallery, however I'd like to change it so it only uses next/prev buttons and perhaps use an XML file to establish how many galleries there are, that way it would be easier to add additional galleries later on without cluttering the screen with a whole bunch of buttons.

here's the code...


PHP Code:



function loadXML(loaded) { if (loaded) {  xmlNode = this.firstChild;  image = [];  description = [];  thumbnails = [];   total = xmlNode.childNodes.length;  for (i=0; i<total; i++) {   image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;   description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;   thumbnails[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;    thumbnails_fn(i);  }  firstImage(); } else {  content = "file not loaded!"; }}xmlData = new XML();xmlData.ignoreWhite = true;xmlData.onLoad = loadXML;xmlData.load("images1.xml");gallery_txt.text = "Gallery 1";// gallery buttonsbtngal1. onRelease = function(){ xmlData.onLoad = loadXML; xmlData.load("images1.xml"); gallery_txt.text = "Gallery 1"; thumbnail_mc.unloadMovie(); p = 0; thumbnail_mc._x = +1;}btngal2. onRelease = function(){ xmlData.onLoad = loadXML; xmlData.load("images2.xml"); gallery_txt.text = "Gallery 2"; thumbnail_mc.unloadMovie(); p = 0; thumbnail_mc._x = +1;}btngal3. onRelease = function(){ xmlData.onLoad = loadXML; xmlData.load("images3.xml"); gallery_txt.text = "Gallery 3"; thumbnail_mc.unloadMovie(); p = 0; thumbnail_mc._x = +1;}///////////////////////////////////// listen = new Object();listen.onKeyDown = function() { if (Key.getCode() == Key.LEFT) {  prevImage(); } else if (Key.getCode() == Key.RIGHT) {  nextImage(); }};Key.addListener(listen);previous_btn.onRelease = function() { prevImage();};next_btn.onRelease = function() { nextImage();};///////////////////////////////////// p = 0;this.onEnterFrame = function() { filesize = picture.getBytesTotal(); loaded = picture.getBytesLoaded(); preloader._visible = true; if (loaded != filesize) {  preloader.preload_bar._xscale = 100*loaded/filesize;  preloader.loadText = Math.round(100*loaded/filesize)+"%"; } else {  preloader._visible = false;  if (picture._alpha<100) {   picture._alpha += 10;  } }};function nextImage() { if (p<(total-1)) {  p++;  if (loaded == filesize) {   picture._alpha = 0;   picture.loadMovie(image[p], 1);   desc_txt.text = description[p];   picture_num();  } }}function prevImage() { if (p>0) {  p--;  picture._alpha = 0;  picture.loadMovie(image[p], 1);  desc_txt.text = description[p];  picture_num(); }}function firstImage() { if (loaded == filesize) {  picture._alpha = 0;  picture.loadMovie(image[0], 1);  desc_txt.text = description[0];  picture_num(); }}function picture_num() { current_pos = p+1; pos_txt.text = current_pos+" of "+total;}function thumbNailScroller() { // thumbnail code! this.createEmptyMovieClip("tscroller", 1000); scroll_speed = 30; tscroller.onEnterFrame = function() { if ((this._ymouse>=thumbnail_mc._y) && (this._ymouse<=thumbnail_mc._y+thumbnail_mc._height)) { if ((this._xmouse>=(hit_right._x-3)) && (thumbnail_mc.hitTest(hit_right))) { thumbnail_mc._x -= scroll_speed; } else if ((this._xmouse<=30) && (thumbnail_mc.hitTest(hit_left))) { thumbnail_mc._x += scroll_speed; } } else { delete tscroller.onEnterFrame; } }; } function thumbnails_fn(k) { thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth()); tlistener = new Object(); tlistener.onLoadInit = function(target_mc) { target_mc._x = hit_left._x+(eval("thumbnail_mc.t"+k)._width+5)*k; target_mc.pictureValue = k; target_mc.onRelease = function() { p = this.pictureValue-1; nextImage(); };target_mc._alpha = 50;target_mc.onRollOver = function() { this._alpha = 200; thumbNailScroller(); }; target_mc.onRollOut = function() { this._alpha = 50; };}; image_mcl = new MovieClipLoader(); image_mcl.addListener(tlistener); image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k); } stop(); 






Thanks

Creating Animated Buttons Tut-Linking The Buttons To Content
I followed Lee's excellent tut on creating buttons using movies clips.

I am rather confused as to how the buttons can be linked to content -

ie Portfolio button to portfolio page - Contact button to contact page.

Im rather new to flash 8 however from my understanding of MX2004 I know
how to create a behaviour on a button symbol to play a certain page. After playing about with Flash this evening I was unable to get any button created using the tut to link to another page.

Can someone point me in the right direction, code or otherwise.

Thanks

Chris

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