Noob questions
I used AS2 in a basic way for many years and I was able to do everything I needed. Now I've started using animate and I'm struggling with things that used to be easy and also finding solutions to them.
One that's bugging me now is referencing movieclips or buttons that are not present constantly on my timeline.
If I have buttonA on frame 1 and buttonB on frame 2, I assumed that I could put my actionscript for buttonA on frame 1 and for buttonB on frame 2 but this gives errors straight away as "access of undefined property buttonB and buttonA as they are not present throughout the timeline.
How do I resolve this? There must be a way of adding actionscript to elements that are not present on every single frame of the timeline.