|
Post by JLS_RBL on Jun 11, 2015 11:20:31 GMT
There doesn't appear to be a way to assign a script id to objects inserted onto a timeline object, how would you access anything to modify it programmatically if none of the objects have script id's? My example being changing text in a textbox object. The only easy way I have found is to have different textbox objects inserted onto the timeline that are visible on different frames of the timeline and then setting the appropriate frame programmatically.
|
|
|
Post by Hippani on Jun 11, 2015 13:45:00 GMT
This is a feature we hope to add soon. It's very tricky. e.g. What happens if you duplicate the timeline object?
|
|
|
Post by leorod on Jun 11, 2015 15:23:22 GMT
To reference the inner object we need to link together both parent and child "Script IDs". For example, let's suppose we identify the Timeline object with ScriptID = "Card1" and an inner TextBox with ScriptID = "Title". For scripting the TextBox we would have to use "Card.Title". If we duplicate the Timeline object with ScriptID "Card2" the TextBox full real SciprtID would be "Card2.Title".
|
|
|
Post by Hippani on Jun 11, 2015 15:28:20 GMT
Yep, that's exactly the plan.
|
|
|
Post by leorod on Jun 11, 2015 16:31:13 GMT
Great. By the way, I have a question: Will it be possible to access an object from Javascript using document.getElemetnById("ScirptID")?
|
|
|
Post by Hippani on Jun 11, 2015 21:07:58 GMT
Not any time soon. The element id different from the node id. I'll add DOM manipulation to our suggestion, however, the player doesn't really have a DOM.
|
|
|
Post by leorod on Jun 12, 2015 12:27:46 GMT
It would be enough to have a function that take a "ScriptID" and return the appropiate "DOM id". Then we can use getElementById with that DOM id. I know that what we do manipulating the DOM will not work in the Player but having that capability give us a tool to do many interesting things that we can not do otherwise. This would be a great feature for advanced users and, I guess, is not too hard to implement.
|
|
|
Post by Reza on Mar 7, 2016 10:50:09 GMT
Hi, I want to use TimelineSetSpeed() but it is not working! I have a timeline inside another timeline and I want to change the speed of the inner timeline. My parent timeline ScriptID is "frame1" and my inner timeline ScriptID is "ghalbha" but when I code something like this: TimelineSetSpeed("frame1.ghalbha",3); there is no error but it won't work too!
is there anyway to change the speed of inner timeline? it will be okay if there is something like "this" object or "current" object that I can use inside the inner timeline. then I can write TimelineSetSpeed(this,3); or TimelineSetSpeed(current,3); I specially need to manage the speed of the timeline by itself! can you please guide me?
thanks Reza
|
|
|
Post by leorod on Mar 7, 2016 13:44:41 GMT
Hi Reza, I made a simple movie to test you issue. setspeed.hani (857 B). As you said, TimelineSetSpeed is not working in the Player for a nested Timeline, but is working fine on the exported HTML. This problem must be fixed by the Hippani team. Meanwhile, use the HTML instead the Player to test your movie, it's not comfortable but is a workaround.
|
|
reza
Junior Member
Keep the real world alive..! leave this virtual world alone!
Posts: 34
|
Post by reza on Mar 7, 2016 14:51:30 GMT
Yes, You are right. Thanks for your quick reply.
I will test my project on HTML.
thanks
|
|
|
Post by Hippani on Mar 8, 2016 9:16:12 GMT
We'll check out the speed issue.
|
|
|
Post by Hippani on Mar 8, 2016 22:52:27 GMT
A fix for this is now in the latest update.
|
|
|
Post by leorod on Mar 9, 2016 16:47:08 GMT
Thanks Gordon, it's works perfect now.
|
|