why are you creating more nav's when you mouseover or click an instance of nav? 
that seems unnecessary and quite possibly the source of the problem. i might be 
wrong but are you using it to try and change the color of the button? if so 
this should be done a different way.
so i notice with this that when you first create the menu you pass 
"Contact.html" but in the rollover and click functions you only pass "Contact". 
as you are also passing the same myX value (782) that the new instance of nav 
will overlay the old one. so when you rollover a new instance with only 
"Contact" is created and then when you click it instead clicks the new instance 
without the ".html" bit and so that is why you are having to add it into the 
Navigate.to . 
i would remove all the conditionals and all the code adding nav's. just have a 
simple trace for the mouseover and not worry about changing the button color. 
you can add that once opening links works properly. i don't think you need to 
iterate through them in the mouseover or click behaviours but for iterating 
through a list of buttons you could store them in an array and loop through 
that using a 'for' loop or add them as children to a container sprite/movieclip 
and loop through its children again with a 'for' loop.
hope i've helped!
david

> Date: Sat, 13 Mar 2010 12:14:13 -0400
> Subject: Re: [Flashcoders] Passing Call To Child
> From: suzieprogram...@gmail.com
> To: flashcoders@chattyfig.figleaf.com
> 
> On Sat, Mar 13, 2010 at 11:31 AM, David Hunter 
> <davehunte...@hotmail.com>wrote:
> 
> >
> > why are you removing the click handler when you roll over surely when you
> > click it won't work?
> 
> 
> I was just testing. It doesn't work with or without that line, so it's a
> mute point.
> 
> 
> >  and why are you testing for "Home"?
> 
> 
> Right now I've hard coded the nav elts since I don't yet know how to iterate
> through them. That's next ;)
> 
> 
> > what is Navigation doing?
> 
> 
> It's a script that writes the url. It works fine.
> 
> 
> > how are you generating the item you are clicking and how are you assigning
> > the eventlisteners to it?we won't know what's causing the problem. can you
> > make a really stripped down program that can be pasted straight into an FLA
> > and tested. put it on pastebin.org
> 
> 
> Hey, that pastebin's pretty cool!
> http://pastebin.org/111743
> BTW, any suggestions as to how to iterate through what I've hard coded on
> the event handler functions would be appreciated too ;)
> TIA,
> Susan
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
                                          
_________________________________________________________________
Got a cool Hotmail story? Tell us now
http://clk.atdmt.com/UKM/go/195013117/direct/01/_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to