  | |  | If and statement | If and statement 2005-10-03 - By Becky Kinney
Back && is correct. The problem is somewhere else. You say you have this statement in a 'listener movie'. I'm not sure what you mean by that, but I suspect that this code is never getting called, or getting called just once. What is the movie listening to? How did you set it up as a listener? Are you sure the event it is listening to is firing? Are you sure that when the event fires it is really listening? Throw a trace into this code somewhere and see if it appears in the output window when you think it should be. I'd try this:
trace(varhit1 + "," + varhit2 ...) just so you can also check to be sure this movie has the properties you think it has.
Becky
-- -- Original Message -- -- From: "Juji" <juji@(protected)> To: <pro_flash@(protected)> Sent: Monday, October 03, 2005 6:45 AM Subject: Re: [Pro Flash Users] If and statement
> Try using 'and' instead of '&&'.... > > Ann Zumwinkle wrote: > >> Hello folks, >> I've got this script in a listener movie: >> >> if ((varhit1 > 0) && (varhit2 > 0) && (varhit3 > 0) && (varhit4 > 0) && >> (varhit5 > 0)) >> { >> _level0.gotoAndStop("whatever"); >> }else{ >> gotoAndPlay("listenstart") >> >> >> I want 5 conditions to be met before it jumps to the "whatever" frame. But >> the movie doesn't jumps to that frame, even when all the variables are >> set to 1 by default! >> >> Is there a problem with this statement's syntax? Thanks! >> >> >> -- >> -- >> ann zum(winkle) > > > > > -- > Email.it, the professional e-mail, gratis per te: http://www.email.it/f > > Sponsor: > Dai pi? energia al tuo sport! Rigenera il tuo corpo in maniera naturale > * Grazie agli integratori sport che trovi solo su Erboristeria.com > Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2379&d=3-10 > > > > ========================= > Pro_Flash: Professional Web Developers Using Macromedia Flash > To subscribe: mailto:pro_flash-subscribe@(protected) > To UNSUBSCRIBE: mailto:pro_flash-unsubscribe@(protected) > > Yahoo! Groups Links > > > > > >
-- ---- ---- ---- ------ Yahoo! Groups Sponsor -- ---- ---- ---- --~--> Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/IHFolB/TM -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -----~->
========================= Pro_Flash: Professional Web Developers Using Macromedia Flash To subscribe: mailto:pro_flash-subscribe@(protected) To UNSUBSCRIBE: mailto:pro_flash-unsubscribe@(protected) Yahoo! Groups Links
<*> To visit your group on the web, go to: http://groups.yahoo.com/group/pro_flash/
<*> To unsubscribe from this group, send an email to: pro_flash-unsubscribe@(protected)
<*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Earn $52 per hosting referral at Lunarpages.
|
|
 |