Forum Replies Created
-
It is already there. It is in the properties pane for each stage object. The code is in one of the action script examples (Javascript > Examples) if one wants to code it yourself.
in reply to: Drag and DropI just saw this. It is an easy fix. There is a loop parameter that can be added to the audio tag — https://www.w3schools.com/tags/tag_audio.asp
in reply to: Loop AudioI see the problem in the exported Html (line “);”). I will fix it for the next release.
in reply to: Spin BugHere are some links that are relevant:
The issue is from what point is the scaling performed. The regX and regY properties are used to define that offset position.
Email me the Hippani code examples and we will see how to proceed.
in reply to: ActionScript Samplse Location?These links describes this movie clip method:
One problem with your code is the case issue (javascript is case sensitive). Naming in CreateJS follows the same naming and naming conventions of Flash.
The method can take a number argument or a string argument.
The number argument is the number of tween frames from the start of the movie (or movie clip). Tween frames are not the same as key frames (unless the number of tweens between key frames is zero). The string argument is the name of the key frame if it has been given a name (click on key frame in list of key frames and edit the name).
in reply to: Go To and Stop/PlayI 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).
in reply to: ActionScript Samplse Location?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.
in reply to: ActionScript Samplse Location?In the javascript editor, pressing the + icon and selecting display object/properties/methods should provide object property syntax but I see ‘visible’ is missing. There are some others which also need to be added.
in reply to: Help with JavascriptHtml5 export is based on CreateJS animation framework which is written in javascript.There is a layer of javascript on top of that which I added but basic object manipulation comes from CreateJS.
To turn visibility off:
S1.visible = false;
S1 should probably be defined as a global variable (set Is programmable to yes in S1’s property panel).
see https://www.createjs.com/docs/easeljs/classes/DisplayProps.html
in reply to: Help with JavascriptThat 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.
in reply to: ActionScript Samplse Location?