AS3. Inventory function can't be called in a Scene
Old user from yayo_99
You are trying to execute a function of a none existing object in as. In Flash CC you can start a debug session with ctrl+shift+enter, when this error occurs it should stop at that line of the code, either in the AS file or on the actions tab for a particular frame.
Worked on titles: CMR:DiRT2, DiRT 3, DiRT: Showdown, GRID 2, theHunter, theHunter: Primal, Mad Max, Watch Dogs: Legion
Old user from yayo_99
Hello guys.
I found the solution! It was there the whole time!
What happened is that the inventory inside the stage didn't have an instance name (duh!), I put "inventory" and now the function can be read properly.
About the function, I have to optimize it because it was appear only the first object. I post here the result of the function in case someone else needs it:
Old user from yayo_99
Generally this means that you have no stage object for that frame to call the function on, make sure the inventory object exists when you take the last room thing were you are having an issue.
Worked on titles: CMR:DiRT2, DiRT 3, DiRT: Showdown, GRID 2, theHunter, theHunter: Primal, Mad Max, Watch Dogs: Legion
That is totally correct. I bypass the name of the object in the stage. When I wrote its name (inventory) everything ran excellent.
Thanks for your contribution!
Old user from yayo_99