yea didn't see it but thanks to both of you for the comments it worked out awsome.
On 4/14/06, Keith Reinfeld <[EMAIL PROTECTED]> wrote: > > > Flash guru uses gmail too. Maybe he hasn't seen it either. > > -Keith > http://home.mn.rr.com/keithreinfeld > > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of elibol > Sent: Friday, April 14, 2006 5:38 AM > To: Flashcoders mailing list > Subject: Re: [Flashcoders] crazy spacing issue -- was (no subject) > > I didn't even see this reply, gmail didn't associate it due to the RE; > seems > I replied for no reason! > > On 4/13/06, Keith Reinfeld <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > The 'crazy spacing issue' is due to how you are setting the movePos > > variable > > in the checkState function. > > > > var movePos = menu["clip"+j]._x + (cliptoMove._width/2); > > > > The problem here (when you scrub the mouse) is that you are grabbing the > > clip's _x in mid-animation. > > > > I suggest that you store an 'original X' property and a 'destination X' > > property in each clip and use them instead. > > > > Add this to your init function: > > > > mitems._x = i * menuSpacing;// you already have this > line > > mitems.origX = mitems._x; > > mitems.destX = mitems.origX; > > > > Add this to your checkState function: > > > > var movePos = menu["clip"+j].destX + > > (cliptoMove._width/2); > > cliptoMove.destX = movePos; > > > > And add this to to your moveBack function: > > > > var origPos = cliptoMove.origX;//j * menuSpacing; > > cliptoMove.destX = origPos; > > > > Flash seems to miss some onRollOut events with fast mouse movement so > you > > may want to incorporate a moveBack routine for items that are to the > left > > of > > whichever item the cursor is over. > > > > Also, this line: > > > > delete menu["clip"+j].onRollOver; > > > > as it stands, will never execute. But I don't see why you would ever > want > > it > > to anyway. > > > > And finally, you should be sure to delete the clip.onEnterFrame when the > > animation is complete. > > > > HTH > > > > -Keith > > http://home.mn.rr.com/keithreinfeld > > > > > > > > > > _______________________________________________ > > Flashcoders@chattyfig.figleaf.com > > To change your subscription options or search the archive: > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > Brought to you by Fig Leaf Software > > Premier Authorized Adobe Consulting and Training > > http://www.figleaf.com > > http://training.figleaf.com > > > _______________________________________________ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > > _______________________________________________ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com