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 January 16th, 2004, 11:31 AM
civic3x98 civic3x98 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Houston, Tx
Posts: 22 civic3x98 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to civic3x98 Send a message via Yahoo to civic3x98
Flash If Statement

Hello, Ok this is a bit hard to explain so I am going to give a description of what I have.

I made a Flash Menu. The rollovers are animations. The way the time line works is there are separate sections, 1 for each menu button. Frame 1 has a STOP on it and shows all the main buttons, the you would move the cursor over one of the buttons and there is a onRollover GoToAndPlay(frame whatever). The particular button has an animation that lowers the sub buttons down then there is a STOP. When the cursor is moved off the particular button or the sub menu area (using an invisible buttons around the parameter) the animation is aloud to continue (GoToAndPlay the next frame to finish the animation) letting the sub menu retract back up. Then on the last frame of that particular button there is a GoToAndPlay(1st frame of the movie), which put everything back the way it was.

Ok now you have some background and hopefully an understanding of what I made here and how it works.

Here is where my problem lies.

The menu does lower and contract back up. Where its messing up is when the cursor is taken off one button and placed on another... the 1st menu does retract (which after retracting the frame command tells it to go back to the 1st frame). But I have to place the cursor back over the next button twice to make the next button do its thing. I know why its doing it, just not sure how to correct it.

I cant upload an image .

Can I do this.... On the last frame of the animation. Have an IF statement that would say something like.. If (on(RollOver) 'A') { GoToAndPlay('A')
ElseIf
(on(RollOver) 'B') { GoToAndPlay('B').... and so on.

Something like this possible?

Thanks.

Reply With Quote
  #2  
Old January 16th, 2004, 05:29 PM
Tann San Tann San is offline
Gotta get to the next screen..
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Nov 2003
Location: Legion of Dynamic Discord
Posts: 4,716 Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 11326 Folding Title: Novice Folder
Time spent in forums: 3 Weeks 1 Day 12 h 25 m 15 sec
Reputation Power: 580
Facebook MySpace
Hi, you could set a variable with the onRollOver method for each..i.e.

var whichOne;

myButt.onRollOver = function()
{
whichOne == _name;
}

then check value of whichOne i.e

if(whichOne == "butt1")
{
//do something
}

Thats pretty ruff but it should give you the general idea. Cant you use the onRollOut function?...
__________________
-Tann

-Vote for your favorite ActionScript editor here.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Flash If Statement


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 5 hosted by Hostway
Stay green...Green IT