• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Comment faire changer une variable a partir d'une animation en HTML5 ?

Community Beginner ,
Jun 18, 2018 Jun 18, 2018

Copy link to clipboard

Copied

Bonjour a tous et a toutes , j'ai fait une petite animation avec animate CC en html5 et je voudrais faire interagir cette animation avec mon site , en faisant changer une variable php dans la page quand QQn clique sur l'animation.

Une fois j'ai reeussit a ouvrir une page a partir de animate mais c'est tout

Je voudrais que dans animate CC une action sur un objet ou autre fasse changer ma variable dans ma page , la variable "achanger

" et lui donne par exemple la valeur 1 , qqn a une idée ??  merci !

<?php

//achanger c'est la variable qui doit passer à 1 si on clique sur un bouton de l'animation

$achanger = 0;

<div id="logo">

        <object id="EdgeID" type="text/html" width="257" height="170" data-dw-widget="Edge" data="animation_assets/logobis3/Assets/logobis.html">

        </object>

</div>

?>

Views

1.6K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Jun 21, 2018 Jun 21, 2018

I tried that and no joy.

the OAM file is actually a zipped file. It is inserted as this:

<object id="EdgeID" type="text/html" width="570" height="420" data-dw-widget="Edge" data="animation_assets/brouillon/Assets/brouillon.html">

So we need to target the ANCC file through the object I suppose orthe opposition rather. hum...

Votes

Translate

Translate
LEGEND ,
Jun 21, 2018 Jun 21, 2018

Copy link to clipboard

Copied

I don't use DreawMeaver, so that doesn't tell me much. Since accessing the global variable isn't working, I'm going to guess it's in some kind of nested context. In that case, prefixing the variable reference with parent. in Animate might work.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 21, 2018 Jun 21, 2018

Copy link to clipboard

Copied

LATEST

I tried that and no joy.

the OAM file is actually a zipped file. It is inserted as this:

<object id="EdgeID" type="text/html" width="570" height="420" data-dw-widget="Edge" data="animation_assets/brouillon/Assets/brouillon.html">

So we need to target the ANCC file through the object I suppose orthe opposition rather. hum...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines