Est-il possible qu'un utilisateur puisse faire tourner une image à l'intérieur d'un module de formation ? En utilisant du javascript ? Si oui, quel code utilisé ?
I have no idea what the original post says, sorry, so here's and answer to your response.
There is a couple ways to do this that i can think of.
if only using SL:
1. The trigger would show layer, this layer would have the rotated image on it. There wont be a "rotating" animation, but the image will be rotated after the users clicks.
2. This one is a little trickier, and wont work on more complicated projects. You would have to set the exit animation of the image to rotate, then time it so the timeline ends where you want the image to appear to stop rotating, then, show layer with the rotated image.
If you can go outside SL:
This can easily be accomplished in flash with a few lines of AS3, if you are familiar with that. Then just import the SWF.
Hi, Bob Bob -- As you mentioned potentially using JavaScript in your reply to Leslie, I thought I'd stop in to note in case you were not aware that we are unable to provide support for JS. If that is the route you decided to go here or on other projects, your fellow community members would need to assist you further there. :)
9 Replies
Hi Bob!
I'm not aware of a way for a user to rotate an image within a published course.
Not sure if someone in the community will have a suggestion for you on this topic.
Thank you Leslie for your answer.
With javascript, is it not possible ?
If my picture's name is "map", can i create a button with a script as :
"if click on button, then rotate "map" " ?
Thanks
I have no idea what the original post says, sorry, so here's and answer to your response.
There is a couple ways to do this that i can think of.
if only using SL:
1. The trigger would show layer, this layer would have the rotated image on it. There wont be a "rotating" animation, but the image will be rotated after the users clicks.
2. This one is a little trickier, and wont work on more complicated projects. You would have to set the exit animation of the image to rotate, then time it so the timeline ends where you want the image to appear to stop rotating, then, show layer with the rotated image.
If you can go outside SL:
This can easily be accomplished in flash with a few lines of AS3, if you are familiar with that. Then just import the SWF.
Here is a rough example,
Demo: https://goo.gl/uw7BY0
.story attached
Here is some info on rotating objects.
Thanks David and Michael.
If only my english was better !!! I'm going to try !!!
Je suis désolé, if only my French was better :-)
hank you very much, i will try !
Hi, Bob Bob -- As you mentioned potentially using JavaScript in your reply to Leslie, I thought I'd stop in to note in case you were not aware that we are unable to provide support for JS. If that is the route you decided to go here or on other projects, your fellow community members would need to assist you further there. :)
This discussion is closed. You can start a new discussion or contact Articulate Support.