Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / General Flash Topics / July 2008



Tip: Looking for answers? Try searching our database.

movie clip button control

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dtodab - 17 Jul 2008 14:13 GMT
just wondering if anyone can provide some insight to a current issue i have
with my movie clip buttons. i have created the button to appear in its over
state while viewing an entire section within the site (just to let the viewer
know where they are). now, when moving to a new section, the mouse needs to
rollover that previous button to reset it back to its original position - i
would like this part to occur automatically to eliminate any confusion as to
what section the viewer is in.
i've attached the code + here's the link to the site to further explain.
http://www.davidbagosy.com/cgi-bin/test/

b1.onRollOver = over;
b1.onRollOut = over;
b1.buttText.buttonText.text = "ADVERTISING"

b2.onRollOver = over;
b2.onRollOut = out;
b2.onRelease = function () {
    gotoAndStop("Flavour");
};
b2.buttText.buttonText.text = "FLAVOUR"

b3.onRollOver = over;
b3.onRollOut = out;
b3.onRelease = function () {
    gotoAndStop("Architecture");
};
b3.buttText.buttonText.text = "ARCHITECTURE"

b4.onRollOver = over;
b4.onRollOut = out;
b4.onRelease = function () {
    gotoAndStop("Product");
};
b4.buttText.buttonText.text = "PRODUCT"
whodeee05 - 17 Jul 2008 22:49 GMT
should this:
b1.onRollOut = over;

be this:
b1.onRollOut = out;

in your second line of code?
whodeee05 - 17 Jul 2008 22:53 GMT
what I would do is create a function that sets the buttons back to their
original spots and then run the clicked function.  Make sense??  

Also did you ever get the color of your images correct?  The architecture
image looks right  :-)
dtodab - 18 Jul 2008 00:09 GMT
regarding colour, the sRGB colour space seems to suffice - it's not 100% but
then again, being a photographer, i'm probably overly picky!

the reason the second line of code uses the "over" state for both RollOver and
Roll Out is to keep the "over" look apparent while the user remains in that
section of the site. and so the issue is returning it back to its home state
when moving into a new section. (it remains in its over state until you roll
over it and then it clears)

i like the idea of the function, just not quite sure how to set it up.
is there a function for "original state" or something along those lines?

not sure if my link worked last time, so here it is again:
http://www.davidbagosy.com/cgi-bin/test
whodeee05 - 18 Jul 2008 15:51 GMT
what I would do is set up a third stage or frame of your buttons for the
clicked or activated stage.  Then when the button is click have it go to that
frame and disable the button for the one that was clicked.  When you click
another button reactivate the other one and send it to the normal state.  Does
that make sense?
dtodab - 18 Jul 2008 17:55 GMT
that makes sense, thanks.
i've actually already fixed it by manually removing the button on that frame,
and putting in static text - a little tedious but seems to have done the job!

i'll keep your suggestion in mind when i do my next update.

thank again.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.