-
Hi.
I downloaded the demo version of KoolMoves and am immediately struggling with docmentation, specifically the location of ActionScript samples for Button states that appear in the .pdf file you are directed to download. I cannot find these scripts anywhere in what appears to be the newer version of KM as opposed to the older version of KM that appears in the pdf?
Please help?
Many thanks.DK
This issue is probably the most important to me as I am not a JavaScript program and rely on snippets or samples to help me along. I can’t seem to locate the examples in the latest version that your pdf file shows. All i get5 when I right click the actions are a couple examples of script like start stop animation etc.
D.K
If you are using the word “action script”, you are referring to Flash export which KoolMoves can export but which is not currently supported by web browsers. I presume the only advantage to creating a Flash animation in KoolMoves at this point in time is to convert it into a video format. The Flash export has special effects and filters which cannot be easily created in Html5. Also, Flash export contains all the font characters used in the animation which Html5 export doesn’t (instead they are downloaded from Google fonts or pulled from the users machine).
From your other question regarding animation size reflecting screen size, I assume you are interested in Html5 export. There is no action script per se for Html5 export. The scripting is done in javascript. Under the Javascript menu bar (Html5 advanced mode), you will find a menu item pointing to scripting examples.
Coming from using Hippani, it uses a hybrid Javascript and has quite a few examples that you can refer to and adjust to suit your project. I’ll have another look.
Many thanks for the helpful response.
D.K
EDIT: oh yes…html5 export is what I am interested in 🙂- This reply was modified 2 years, 7 months ago by DK.
I had a look at the JavaScript examples specifically interested in the Button JavaScript that changes the text object…when I click on “View JavaScript” for this option there is nothing there?
Apologies coming from a software that has a butchered version of JavaScript I am trying to get to know the proper coding required to make buttons function in KoolMoves.D.K
That javascript for that example didn’t fall into the five categories on the View Javascript page.
It is custom javascript added as a button action (Actions property in properties panel for the button, Actions, +, custom javascript), in particular,
T1.text = “clicked!”;
where T1 is the text whose display text is changed on pressing a button.
Make sure T1 is globally defined (set Is programmable property to yes in its property panel).
I will modify the key frame javascript category to include button javascript.
I can email you the .fun file if you like.
When I was about to address this issue, I saw that the description section at the top of the View Javascript page contains details on how to create the action. I think this is the best I can do at the moment. I can also add this example to the Help > Examples section so the .fun file is accessible for download.
Hi Bob.
I hope I am not frustrating you too much being a complete beginner.
Yes I see the view java script examples. But from a non programmers perspective I can’t seem to find examples there of what I need to get me going. I tried following your JS prompt and made this piece of code S1.scaleX = 1; which I assumed would change the size of a circle, (I had to add the last part =1;) I can’t get it to work???
Basic strings of button code like changing an object color, size, position, opacity, visibility, I’ve spent 2 days on it now and it’s starting to get a little frustrating but I will stick with it as it will be an extremely useful tool when I get to know it.
D.KI welcome the opportunity to see where users have difficulties.
scaleX = 1; won’t do anything because that is the default scale size.
I can easily add more examples to the example set.
Unless it is letter perfect, javascript will throw an error and unless you are running in debug mode you won’t know. If you run the animation in FireFox for example, pressing F12 will put you in a debug mode and selecting console will display any error messages (which are often cryptic but at least you will know there is a syntax issue).
I would check out some of the other non-button scripting examples because they deal with changing position, for example.
There may be CreateJS demos that do what you are trying to do (the syntax will be the same).
I got scaleX to work 🙂 but why did it move the shape as well as scale the object on the X axis? I also tried scale= 1.5; but nothing happened.
Would it be possible for me to send you a small selection of Hippani codes that I need to work with and get them converted to something I can work with in KM? I am more than happy to pay you to help me and happy to share the examples I create with you to use as example beginner tutorial files. These would be a set of files that cover basic code for new users.
D.K
You must be logged in to reply to this topic.