PDA

View Full Version : targeting button on timeline



trafford87
July 14th, 2008, 05:10 AM
Hi,

I'm not that experience with AS3 and i am having a spot of bother.

I have a navigation movie clip with some buttons in, on the main timeline i have added some script to load a movieclip when a button is clicked. This works if the button is on frame 1 of the navigation timeline but i want the buttons to appear on frame 20 for example as the navigation rolls in and out.

When hit the target symbol in the actions palette the buttons on frame 20 appear but are in brackets i.e (services_btn)

Is it possible to target these buttons successfully

Thanks in advance for any help!

Cheers

katmac
July 17th, 2008, 01:25 AM
Whats happening is that if your buttons dont exist on frame 1 then flash doesnt recognise their instance names.

Try including them on frame one but set there visibility to false, then on frame 20 set to true. This way flash will recognise them.

cyan
July 25th, 2008, 06:40 PM
Whats happening is that if your buttons dont exist on frame 1 then flash doesnt recognise their instance names.

Try including them on frame one but set there visibility to false, then on frame 20 set to true. This way flash will recognise them.

I'm having the same problem, where I have an animation and the buttons show up after the animation. I can use this technique, but it seems CRAZY that this is how flash would work, I kind of don't get CS3.