How can I use package variables in the original SWF? AS3?

lonesomefolly

New member
Hi. This is my first time using packages to script on AS3 and I think I'm way over my head.

I made an inventory system on a separate .as file, and everything's working fine and dandy. But (this is part of the package too) I made it so when you click an inventory item it sets a the "activeItem" variable as the name of the inventory item you clicked.

So then back in the original swf I made a door. And made it so that if the activeItem == key1 when clicking it then the door opens. But when running it it says activeItem is an undefined property.

How can I read the package's variables in order to make them interact with the original swf's movieclips?
 
Back
Top