| Author |
Please help me out! Problem with masked buttons!
|
|
| ikbensjef webforumsuser@macromedia.com 2003-11-27, 6:02 pm |
| Hi there,
Can someone help me with the following problem?
I made a navigation with 4 buttons. Each button has a logo in it. When the cursor moves over the button, a transition starts "from logo to short text".
Please take a look at it right here:
http://www.publiccontrolling.nl
This is exactly how it's suppost to work, except that I can't seem to make the button WORK like a button.
Q: Who can help me out, making the button work? I want all 4 buttons to go to 4 individual URLs when clicked on.
THANKS VERY MUCH in advance!
grtz
Jeff
| |
| Vega webforumsuser@macromedia.com 2003-11-27, 6:02 pm |
| you can try this:
// give your buttons instances names then on your actions layer assign it this function with what ever you need
myButtonOne_btn.onRelease = function() {
getURL("http://www.someurl.com", "_self");
};
| |
| ikbensjef webforumsuser@macromedia.com 2003-11-27, 6:02 pm |
| Thanks for your answer..
I've tried it the way you explaned but it won't work.
Probably because I did something wrong.
Would somebody, with the knowlegde of actionscript, be so kind to implement this code in the Flash file? I'm a designer.. not a scripter.. :-S
Thanks!
Jeff@introspective-media.nl
| |
| Laiverd.COM 2003-11-27, 6:02 pm |
| Show us some code u're using. This shouldn't be hard. You may also want to
upload a zipped fla file, so we can have a look.
John
--
----------------------------------------------------------------------------
-----------------------------------------
RESOURCES
http://groups.google.com/advanced_g...s_ugroup=*flash
----------------------------------------------------------------------------
-----------------------------------------
TUTORIALS
Flash & PHP Emailform:
http://home.hccnet.nl/john.mulder/f...hp_mailform.zip
----------------------------------------------------------------------------
-----------------------------------------
| |
|
|
| Laiverd.COM 2003-11-30, 12:42 pm |
| Jeff,
Had a look at your fla file, and the main problem is the way you set up
things. You have buttons inside buttons and then inside a button symbol
actions attached to them. That is bound to go wrong somewhere along the
line. You might wanna check the aprt on creating button in general from the
manual again. The main 'mistake' is that you add actions inside the button
symbol; that is not the idea ;-) You have to assign actions to the instance
of the button you're using. And basically all you have to have for an action
is
on(release)
getURL("yourwebsite.com","_blank") // or whatever target
}
IF you build you button somewhere along these line. The masked animation is
simply going to end up as a movieclip in the OVER state of the button symbol
(take out the stop(); in the first frame of that movieclip, otherwise it
won't play). Then simply draw the NORMAL and DOWN state (you can use that
same movieclip again, but use it this time as a graphic instance (check the
manual, or have a close look at the properties panel. And don't forget to
define a proper hitstate. If you do it like this, then the animation will
auto play when you mouse over the button.
Place the button on stage and assign the above action and it should work.
Once again; fi I where you I'd have another look at that manual, also the
part on using symbols and instances ;-)
Hope it works out for you. I normally prefer responding here instead of
private email by the way.
Cheers,
John
--
----------------------------------------------------------------------------
-----------------------------------------
RESOURCES
http://groups.google.com/advanced_g...s_ugroup=*flash
----------------------------------------------------------------------------
-----------------------------------------
TUTORIALS
Flash & PHP Emailform:
http://home.hccnet.nl/john.mulder/f...hp_mailform.zip
----------------------------------------------------------------------------
-----------------------------------------
|
|
|
|
| Copyright 2003 - 2009 forum4designers.com Software forum Computer Hardware reviews |