Skip to main content
Participant
June 12, 2010
Question

combobox won't function

  • June 12, 2010
  • 1 reply
  • 895 views

okay..here is the setup:

i am working on a project that has separate swf files serving as  different sections (students, faculty, etc). for each section, on the  first frame i have a combobox that lists the different values within  that particular section. when a user clicks on the value, it takes them  to the specific frame within that swf.

there are two problems:

1. when the user selects a value, everything functions correctly but an  error is thrown that says:  

TypeError: Error #1009: Cannot access a property or method of a null  object reference.
at fl.containers::BaseScrollPane/drawBackground()
at fl.controls::List/draw()
at fl.core::UIComponent/drawNow()
at fl.controls::List/scrollToIndex()
at fl.controls::SelectableList/scrollToSelected()
at fl.controls::ComboBox/open()
at fl.controls::ComboBox/onToggleListVisibility()

2. when i click on a button that links to each section from the cover  swf, i am directed to the desired page but when i click on the combobox,  the same error is thrown and the combobox does not function at all..

any ideas??

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
June 12, 2010

you're trying to reference something that doesn't exist when your code executes.

click file/publish settings/flash and tick "permit debugging".  retest.  the line number with the error will be in the error message.

Participant
June 12, 2010

thanks for the response. however, when doing that, i received the same error message.

everything works fine if it is referenced from a swf other than the cover.swf. i dont understand

how everything functions as it should unless it is referenced from the initial swf. each swf has

a different combobox with different code.

PLEASE HELP lol..

kglad
Community Expert
Community Expert
June 13, 2010

are you loading a the problematic swf?  if so, the loading swf should have a combobox in its library.