Skip to main content
danielo33771543
Known Participant
June 18, 2019
Question

Help with CSS code to use on for an axe interractive banner

  • June 18, 2019
  • 1 reply
  • 258 views

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.

This topic has been closed for replies.

1 reply

Community Expert
June 19, 2019

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

headTrix, Inc. | Adobe Certified Training & Consulting