Skip to main content
August 18, 2008
Question

"Access" Issues

  • August 18, 2008
  • 3 replies
  • 535 views
"1120: Access of undefined property button."

I'm having issues with the forum, very sorry. Please ignore the second post. With AS3, I said I was having issues with listeners. I'll add an event listener and it'll tell me that it's "access of undefined property"

For example:
"1120: Access of undefined property boarder_mc.
This topic has been closed for replies.

3 replies

Known Participant
August 18, 2008
Yes, you have to call it by it's instance name and not the name of the movie clip. Assign an instance name to the movie clip and change

boarder_mc.addEventListener(MouseEvent.CLICK, onClick);

TO

say you called instance name of the movie clip boarder_mc to george

george.addEventListener(MouseEvent.CLICK, onClick);


Then it should work, if not reply back and we will see what else is going on.
August 18, 2008
Yep, he's onstage. and he shows up when I go to "test movie"
Damon Edwards
Inspiring
August 18, 2008
If you click it on stage and its instance name is boarder_mc, then zip the file up and post a link to it.
August 18, 2008
well, it didn't attach the text I threw there too... Anyway, I said I was having issues with listeners. I'll add an event listener and it'll tell me that it's "access of undefined property"

For example:
"1120: Access of undefined property boarder_mc.
Damon Edwards
Inspiring
August 18, 2008
Its telling you it can't find boarder_mc, make sure that it is on stage when this script executes.