SunQuest
           Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

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:
  #1  
Old July 31st, 2003, 11:44 AM
mej mej is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 17 mej User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
moving button problem

Im trying to make a moving button, one that is constantly moving slowly around until mouseover, where the animation stops, and something happens.

My problems are these:

I can get the button to stop the animation, but the way im doing it means that i have to do an action for every frame of animation. Surely theres a way of just saying 'for all instances of this button, do this'

problem two is very similar. Once the animation stops, i want the button to kind of expand to explain what its subheadings are etc, i assume that should all be done within the button animation [ie insert frames into 'mouse over' section. Again though, i can currently only apply this per instance.

Anyone able to help?

Reply With Quote
  #2  
Old August 1st, 2003, 09:39 AM
jamieB jamieB is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Nov 2002
Posts: 592 jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 1 h 56 m 16 sec
Reputation Power: 17
as long as all instances of your button are named you only need to do this once, from the main timeline:

Code:
moving_btn.onRollOver = function() {
this.stop();
}
moving_btn.onRollOut = function() {
this.play();
}

then to implement to tolltips on mouseover you need another mc on the first frame of moving_btn, with nothing but a stop() action on it's first frame....then name the next frame "display" or something and change your code to:

Code:
moving_btn.onRollOver = function() {
this.stop();
this.tooltip.gotoAndStop("display");
}
moving_btn.onRollOut = function() {
this.play();
this.tooltip.gotoAndStop(1);
}

Reply With Quote
  #3  
Old August 4th, 2003, 04:28 PM
mej mej is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 17 mej User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
i couldnt get that to work, i got an error, but i found this:

http://www.webwasp.co.uk/flash-samp...utton/index.htm

so problem is solved. Thanks anyway mate!


ps error was:

Scene=Scene 1, Layer=Layer 1, Frame=1: Line 1: Statement must appear within on handler
moving_btn.onRollOver = function() {

Scene=Scene 1, Layer=Layer 1, Frame=1: Line 5: Statement must appear within on handler
moving_btn.onRollOut = function() {

unfortunately im new to this flash game so i couldnt really figure out what it meant. Doh.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > moving button problem


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 4 hosted by Hostway