List Box navigation within a movie clip

  • Travis Coats
  • Graduate
  • Graduate
  • Travis Coats
  • Posts: 107

Post 3+ Months Ago

Here's the situation. I have an Accordion on my main timeline, which has three nested symbols. One of these symbols has a Listbox in it and is intended to be used to getURL's i.e. external photo albums made in fireworks.

I have made an event listener:
var myListener:Object = new Object();

this.my_acc.Photos.my_lb.addEventListener("change",myListener);

myListener.change = function() {
getURL(this.my_acc.Photos.my_lb.selectedItem.data, "_blank");
trace(this.my_acc.Photos.my_lb.selectedItem.data)
}

You can see the hierarchy's structure here a little. Used the trace(_target.this) command to get the proper dot syntax target. I know it is working in that respects because the listener reacts and opens a browser window. The problem is that I am getting undefined as my data.

This shouldn't be, since I have assigned my_lb with a label and a data. This exact code works fine when the list-box is on the main timeline....

The data is http://www.targetsite.com/ and should react from the getURL function.

Got any ideas? :x
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 7 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.