Shade
Content Creator
- Joined
- Jun 19, 2011
So I'm currently in the process of learning Action Script 3 (Via Google), and I've run into an issue I'm not sure how to overcome. I've learned how to make basic buttons, change viability, etc, and I've discovered how to path to difference Instances within the project, but only going 'forward', so child instances of a parent instance. I'm wondering if it's possible to path to an instance on the main stage, outside of the instance the code is placed in. Basically, something like.
________________________________________
________________________________________
I'm looking to have the code block change the visibility of the Chest Instance (Which I know how to do), and the visibility of the Bottom Instance, (Which I know the code for, but not how to path/reference to it via the main stage.); I'm also not sure if it's possible. I've read that the main stage is referred to as main and/or Stage for pathing/referencing, but doing that doesn't seem to work. I also tried to put the code I want to use on the main stage, but keep getting a compile error, which basically says event mouse click isn't a compile option.
Any ideas? Hope my pretty (shitty) picture helps.
Edit:
Clarified my post a bit because apparently reading past half asleep typos is hard.
________________________________________
Main Stage
Instance 'Top' Instance 'Bottom'
Instance 'Chest' + Code Block Instance 'RightLeg'
Instance 'Design' Instance 'Design'
Instance 'Top' Instance 'Bottom'
Instance 'Chest' + Code Block Instance 'RightLeg'
Instance 'Design' Instance 'Design'
________________________________________
I'm looking to have the code block change the visibility of the Chest Instance (Which I know how to do), and the visibility of the Bottom Instance, (Which I know the code for, but not how to path/reference to it via the main stage.); I'm also not sure if it's possible. I've read that the main stage is referred to as main and/or Stage for pathing/referencing, but doing that doesn't seem to work. I also tried to put the code I want to use on the main stage, but keep getting a compile error, which basically says event mouse click isn't a compile option.
Any ideas? Hope my pretty (shitty) picture helps.
Edit:
Clarified my post a bit because apparently reading past half asleep typos is hard.