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 August 12th, 2003, 01:04 PM
do me a favour do me a favour is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 5 do me a favour User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question if statement in flash?????

Hello

I have a button (called 'drawer') which is in a movie called 'btm1' when it is rolled over it plays the 'btm1' movie to frame 15 where it stops, when the button is rolled out of it plays calls a movie clip (called 'control') which is a simple 3frame loop telling the btm1 movie to play the previous frame over and over, like a rewind. this is all fine.

I now have 2 buttons - a sub menu (they are called 'his' and 'pro') that appears within the hit area of the 'btm1' movie.

I do not want the btm1 movie to follow through with its rollout event when the sub menu buttons are rolled over. I assume this requires an if statement but i have never used these before in A.Script can somebody help pls?

the chain (using instance name {symbol type}):
scene1 > btm1 {movie} > drawer {button} > pro {button}
scene1 > btm1 {movie} > drawer {button} > his {button}
scene1 > btm1 {movie} > control {movie}

It may be neccesary to jump the 'pro' and 'his' out of the drawer button and place them in the btm1 movie.

my code so far:
Code:
on (rollOver) { 
    _root.btm1.control.gotoAndStop(1); 
    _root.btm1.gotoAndPlay(2); 
} 
on (rollOut) { 
    _root.btm1.control.gotoAndPlay(2); 
} 


all references to 'control' are the rewind loop,
_root.btm1.prevFrame();


my guess at the if statement would be:
Code:
on (rollOver) { 
    _root.btm1.control.gotoAndStop(1); 
    _root.btm1.gotoAndPlay(2); 
} 


if rollover is not _root.btm1.drawer.his 'his' or '_root.btm1.drawer.pro' then 

on (rollOut) { 
    _root.btm1.control.gotoAndPlay(2); 
} 

end if 



cheers
P

Last edited by do me a favour : August 12th, 2003 at 01:19 PM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > if statement in flash?????


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