List navigation problems

Post December 7th, 2007, 9:50 pm

I have got this to work on the main timeline, but using nested target paths nullify it…

I have two levels in question:

Main timeline-->contentArea

There is a list component instance-named: media_lb

My goal is to take the selected item’s data(a frame label) and have it navigate to the frame which is also in the contentArea’s timeline, here is the code I have.

var myListener:Object = new Object(); _root.contentArea.media_lb.addEventListener(“change”,myListener);

myListener.change = function(){ gotoAndPlay(_root.contentArea.media_lb.selectedItem.value); } *I tried data also with and w/o selectedItem

This exact same code worked on another project with the list box on the first frame in the main timeline, however this is not the case ion this timeline. I have tried every target I could think of the above is the absolute version I have quit at for now….

Any ideas, I hope I clarified the questioned correctly.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post December 7th, 2007, 9:50 pm

  • krismeister
  • Graduate
  • Graduate
  • No Avatar
  • Joined: Oct 21, 2006
  • Posts: 202
  • Status: Offline

Post December 8th, 2007, 11:16 pm

try
Code: [ Download ] [ Select ]
[size=18]_root[/size].gotoAndPlay(_root.contentArea.media_lb.selectedItem.value);

Post December 9th, 2007, 2:06 pm

I gave it a try still nothing. I think there is someting funny going on with my listener. I tried implementing a trace command to see if the listener/execute function was working and...nothing..?

Quote:
var myListener:Object = new Object();


_root.content_mc.media_lb.addEventListener("change",myListener);

myListener.change = function() {
_root.content_mc.gotoAndPlay(_root.content_mc.media_lb.selectedItem.value);
trace("working")
}


Could this be because the list component isn't instantiated in the first frame? Don't see how that could hurt, but I remember reading it somewhere.

*funny enough I set the style of this LB and would deduce that my target path his correct....

Post December 20th, 2007, 5:20 pm

Not to be totally rude but WTF!? I don't think I have ever had one person answer a single question of mine on this site. Do we pride ourselves in ignoring difficult questions, because I know this wasn't an Einstein theorem.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 116 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2010 Unmelted, LLC. Driven by phpBB © 2010 phpBB Group.