Closed moy closed 11 years ago
Example JSON file where I have the issue (the "disapear" actions are the guilty ones) :
{ "metaData": { "imageWidth": 800, "imageHeight": 600 }, "data": [ { "object": [ { "type": "background", "id": "s4-o0", "img": "img/87b1b49d-f440-4e8c-906f-677f4801df2a.png" }, { "type": "mouse", "id": "mouse-cursor" } ], "action": [ { "type": "move", "target": "mouse-cursor", "trigger": "onClick", "finalAbs": 0.35125, "finalOrd": 0.8016666666666666, "duration": 400 }, { "type": "appear", "target": "s4-o0", "trigger": "afterPrevious", "abs": 0, "ord": 0, "duration": 0 } ] }, { "object": [ { "type": "background", "id": "s5-o0", "img": "img/d48612d8-0a67-41c5-a033-d87198df24f1.png" }, { "type": "background", "id": "s6-o0", "img": "img/9d843db9-c068-48f2-9353-d4925172f0b7.png" }, { "type": "mouse", "id": "mouse-cursor" } ], "action": [ { "type": "appear", "target": "s5-o0", "trigger": "onClick", "abs": 0, "ord": 0, "duration": 0 }, { "type": "appear", "target": "s6-o0", "trigger": "afterPrevious", "abs": 0, "ord": 0, "duration": 0 } ] }, { "object": [ { "type": "tooltip", "id": "s5-tip1", "text": "Ceci est la fenêtre de l'interpréteur Python. On peut entrer du code Python, il est évalué au fur et à mesure", "color": "#FFFFDD" }, { "type": "tooltip", "id": "s5-tip2", "text": "Ceci est l'inspecteur d'objet. Cette fenêtre permet d'afficher rapidement des informations et de la documentation sur les variables.", "color": "#FFFFDD" }, { "type": "tooltip", "id": "s5-tip3", "text": "Et voici l'éditeur de texte. On pourra y entrer des programmes, et les sauvegarder dans des fichiers", "color": "#FFFFDD" }, { "type": "tooltip", "id": "s5-tip4", "text": "Regardons de plus près l'interpréteur ...", "color": "#FFDDDD" } ], "action": [ { "type": "appear", "target": "s5-tip1", "trigger": "onClick", "abs": 0.65, "ord": 0.65, "duration": 400 }, { "type": "appear", "target": "s5-tip2", "trigger": "onClick", "abs": 0.65, "ord": 0.1, "duration": 400 }, { "type": "appear", "target": "s5-tip3", "trigger": "onClick", "abs": 0.15, "ord": 0.2, "duration": 400 }, { "type": "disappear", "trigger": "onClick", "target": "s5-tip1", "duration": 200 }, { "type": "disappear", "trigger": "afterPrevious", "target": "s5-tip2", "duration": 200 }, { "type": "disappear", "trigger": "afterPrevious", "target": "s5-tip3", "duration": 200 }, { "type": "disappear", "trigger": "afterPrevious", "target": "s5-tip3", "duration": 200 } ] }, { "object": [ { "type": "background", "id": "s7-o0", "img": "img/6026e132-583b-4460-ae2f-5c5f43499ce2.png" }, { "type": "mouse", "id": "mouse-cursor" } ], "action": [ { "type": "move", "target": "mouse-cursor", "trigger": "onClick", "finalAbs": 0.67125, "finalOrd": 0.14666666666666667, "duration": 400 }, { "type": "appear", "target": "s7-o0", "trigger": "afterPrevious", "abs": 0, "ord": 0, "duration": 0 } ] }, { "object": [ { "type": "background", "id": "s8-o0", "img": "img/73a34299-a9d9-4b7d-8f6d-3f5246945080.png" }, { "type": "mouse", "id": "mouse-cursor" } ], "action": [ { "type": "move", "target": "mouse-cursor", "trigger": "onClick", "finalAbs": 0.67125, "finalOrd": 0.14666666666666667, "duration": 400 }, { "type": "appear", "target": "s8-o0", "trigger": "afterPrevious", "abs": 0, "ord": 0, "duration": 0 } ] }, { "object": [ { "type": "background", "id": "s9-o0", "img": "img/78820b0c-3da7-4d62-bb78-d4fee9e2df18.png" }, { "type": "mouse", "id": "mouse-cursor" } ], "action": [ { "type": "move", "target": "mouse-cursor", "trigger": "onClick", "finalAbs": 0.0725, "finalOrd": 0.34833333333333333, "duration": 400 }, { "type": "appear", "target": "s9-o0", "trigger": "afterPrevious", "abs": 0, "ord": 0, "duration": 0 } ] }, { "object": [ { "type": "background", "id": "s10-o0", "img": "img/5a7405f7-1147-4fed-987c-309089ea0e72.png" }, { "type": "mouse", "id": "mouse-cursor" } ], "action": [ { "type": "move", "target": "mouse-cursor", "trigger": "onClick", "finalAbs": 0.0725, "finalOrd": 0.34833333333333333, "duration": 400 }, { "type": "appear", "target": "s10-o0", "trigger": "afterPrevious", "abs": 0, "ord": 0, "duration": 0 } ] }, { "object": [ { "type": "background", "id": "s11-o0", "img": "img/7033703a-062d-4913-836f-2866a82a8cfa.png" }, { "type": "mouse", "id": "mouse-cursor" } ], "action": [ { "type": "move", "target": "mouse-cursor", "trigger": "onClick", "finalAbs": 0.0725, "finalOrd": 0.34833333333333333, "duration": 400 }, { "type": "appear", "target": "s11-o0", "trigger": "afterPrevious", "abs": 0, "ord": 0, "duration": 0 } ] }, { "object": [ { "type": "background", "id": "s12-o0", "img": "img/48b5e548-5fa7-4ce0-97c6-576c49623085.png" }, { "type": "mouse", "id": "mouse-cursor" } ], "action": [ { "type": "move", "target": "mouse-cursor", "trigger": "onClick", "finalAbs": 0.0725, "finalOrd": 0.34833333333333333, "duration": 400 }, { "type": "appear", "target": "s12-o0", "trigger": "afterPrevious", "abs": 0, "ord": 0, "duration": 0 } ] }, { "object": [ { "type": "background", "id": "s13-o0", "img": "img/121a1323-2e09-43f4-aeef-fe4565b158f4.png" }, { "type": "mouse", "id": "mouse-cursor" } ], "action": [ { "type": "move", "target": "mouse-cursor", "trigger": "onClick", "finalAbs": 0.0725, "finalOrd": 0.34833333333333333, "duration": 400 }, { "type": "appear", "target": "s13-o0", "trigger": "afterPrevious", "abs": 0, "ord": 0, "duration": 0 } ] } ] }
At least partially fixed by ed7df20a248087e224701fb2474ad16371935669
The viewer does not (always) work when several afterPrevious actions are executed consecutively. The actions are executed, but then the background does not change for the next slides. The mouse moves, but the image does not change.