263 posts
  • Antarctica
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • Sold between 100 and 1 000 dollars
x360c says

This is the listener (AS3) I am trying to call from inside a package that is throwing a null object error:

stage.addEventListener (MouseEvent.MOUSE_UP,video02_scrubBar_hitarea_onRelease);

What is wrong?

563 posts
  • Bought between 1 and 9 items
  • Brazil
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 1 and 9 users
  • Sold between 100 and 1 000 dollars
LuizZak says

Check the name of the function ‘video02_scrubBar_hitarea_onRelease’, it must be it.

263 posts
  • Antarctica
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • Sold between 100 and 1 000 dollars
x360c says

If I remove the word ‘stage.’ it works. Why?

5541 posts
  • Exclusive Author
  • Author had a File in an Envato Bundle
  • Elite Author
  • Has been a member for 5-6 years
  • Sold between 100 000 and 250 000 dollars
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • India
+3 more
VF says
If I remove the word ‘stage.’ it works. Why?

This shows that “stage” is not considered as a target name for root.

trace(stage.name); will ouptput null
5541 posts
  • Exclusive Author
  • Author had a File in an Envato Bundle
  • Elite Author
  • Has been a member for 5-6 years
  • Sold between 100 000 and 250 000 dollars
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • India
+3 more
VF says
If I remove the word ‘stage.’ it works. Why?

Oops, it works even if I use “stage”. It seems we need to mouseUp over an object on stage to trigger the function. If there is no object in the stage to hit, it doesn’t calls the function.

900 posts
  • Beta Tester
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 7-8 years
  • Netherlands
  • Referred between 50 and 99 users
  • Sold between 10 000 and 50 000 dollars
michelsteege says

the stage is only avaible on the root, you can send it from there though

3058 posts
  • Community Superstar
  • Has been a member for 6-7 years
  • Won a Competition
  • Sold between 50 000 and 100 000 dollars
  • Bought between 10 and 49 items
  • Referred between 50 and 99 users
  • Exclusive Author
+1 more
wickedpixel says
call the stage like this:
 this.stage.addEventListener(...)
 .. or...
 some_clip.stage.addEventListener(...
263 posts
  • Antarctica
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • Sold between 100 and 1 000 dollars
x360c says

Still no luck. Remember that it’s in a package.

by
by
by
by
by
by