Beginner Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherBeginner Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old April 16th, 2001, 12:43 AM
katsfat katsfat is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Location: Australia
Posts: 6 katsfat User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to katsfat
Question

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

Reply With Quote
  #2  
Old April 16th, 2001, 04:38 AM
oskar oskar is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Location: Copenhagen, DK
Posts: 222 oskar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 50 m 40 sec
Reputation Power: 8
Send a message via ICQ to oskar
Just make a new movieclip in the "overframe" for the button.

Oskar

Reply With Quote
  #3  
Old April 19th, 2001, 07:44 AM
wcwils wcwils is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Location: Washington, DC
Posts: 4 wcwils User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy button rollovers/_droptarget

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!

Reply With Quote
  #4  
Old April 19th, 2001, 08:57 AM
oskar oskar is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Location: Copenhagen, DK
Posts: 222 oskar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 50 m 40 sec
Reputation Power: 8
Send a message via ICQ to oskar
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.

Reply With Quote
  #5  
Old April 19th, 2001, 11:03 AM
wcwils wcwils is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Location: Washington, DC
Posts: 4 wcwils User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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?

Reply With Quote
  #6  
Old April 19th, 2001, 03:30 PM
oskar oskar is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Location: Copenhagen, DK
Posts: 222 oskar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 50 m 40 sec
Reputation Power: 8
Send a message via ICQ to oskar
"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

Reply With Quote
  #7  
Old April 19th, 2001, 03:35 PM
oskar oskar is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Location: Copenhagen, DK
Posts: 222 oskar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 50 m 40 sec
Reputation Power: 8
Send a message via ICQ to oskar
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherBeginner Programming > Macromedia Flash Button help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway