Copy link to clipboard
Copied
I have an axe interactive banner but i want help with getting the code whereby the user has to press on the axe an it sprays on the model in the pic.
Copy link to clipboard
Copied
I think you need Actions, and javascript code, not CSS to make it work.
But first you have to create a button out of the Axe so the user can click on it, you have to give that button an instance name so that the event listener can listen for a mouse click. Then you have to create an event listener that calls a function....
and that function will have the instructions of what should happen when the user clicks. When the user clicks it should target a Movieclip, which will have the animation of the axe spraying on the model.
Then your function will target that movieclip and say gotoAndPlay(1) so that the MovieClip plays.
I am sorry I am not able to actually make this for you, but I hope you get the jist of how I laid out and how you can get it to work.
Cheers,
mark