|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
|
|
#1
|
|||
|
|||
|
I want to make a button, that when i mnouseover it, it will play an animation...
ie the over state of the button is a small animation thanks |
|
#2
|
|||
|
|||
|
Just make a new movieclip in the "overframe" for the button.
Oskar |
|
#3
|
|||
|
|||
|
I want to make a button that changes color when rolled-over (which I have) but can also be dragged-and-dropped with a _droptarget command. I do not have a button imbedded in a movie clip, but only a button, so I think I can get one or the other effects, but not both. What I have w/ Actionscript now drags the whole movie. Do I need to start over and create movie clips first? Help!
|
|
#4
|
|||
|
|||
|
Instead of making the button first, you make a movieclip, (don't forget to give a name ->Instance-name), and make that into a button. Then you can drag your button.
I guess it will be enough changing the behavior of the button into a movieclip! And start over with actions. |
|
#5
|
|||
|
|||
|
I can't get my ActionScript to work to make the button disappear and reset itself. Here's what I have (the movie clip button is referred to as < this > and the destination clip is called < spidertext >):
on (press) { startDrag(this) } on (release) { stopDrag (); if (this._droptarget=="/spidertext") { setProperty (this, _visible, false); } } Is this wrong? Why won't it disappear? The movie clip itself is larger than the destination movie clip, but isn't it the size of the button that counts, or does that matter at all as long as the button is dropped over the destination? |
|
#6
|
|||
|
|||
|
"disappear and reset itself" ?
Do you want it to reset the x and y coordinates or do you want the movie to disappear? Your script only "says" disappear: on (press) { startDrag(this) } on (release) { stopDrag (); if (this._droptarget=="/spidertext") { setProperty (this, _visible, false); } } I almost doesn't know flash 5, (the actionscripts looks different), but in flash 4 the code will look like: On (Press) Start Drag ("/this") End On On (Release) Stop Drag If (GetProperty ("/this",_droptarget) eq "/movie2") Set Property ("/this", Visibility) = "0" End If End On I have made a small example you can see and download: http://www.****hudt.dk/devshed/invisible.swf For some links to flash helpsites, go to: http://www.whitehat.dk/****it/ Sometimes, they do have trouble with their DNS-server at whitehat, so if you can't load the page, try again later. Oskar |
|
#7
|
|||
|
|||
|
Ahh, no nasty words in this forum!
The first four missing characters in the lkink is: d and i and c and k for the next, it's f and u and c and k that should do it |
![]() |
| Viewing: Dev Shed Forums > Other > Beginner Programming > Macromedia Flash Button help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|