Déclencher un swf quand on clique sur un bouton  

Partagez vos trucs et astuces ici ou demandez de l'aide sur Panotour / Panotour Pro !
Pas de rapport de bug (de quelque sorte) dans ce forum !
no avatar
Viet77
New member
 
Topic author
Posts: 8
Likes: 0 post
Liked in: 0 post
Joined: Thu May 05, 2011 3:09 pm
Info

Déclencher un swf quand on clique sur un bouton

by Viet77 » Fri Jun 24, 2011 4:32 pm

bonjour,

j'aimerai déclencher un swf quand on clique sur un bouton
en fait, mon animation se lance à  la seconde où le panorama commence... et j'aimerai juste qu'il se lance quand je clique sur un bouton précis.

aidez moi svp, j'ai déjà  essayé changer pas mal de choses dans mon xml mais sans succès...

no avatar
mediavets
Moderator
 
Posts: 16413
Likes: 2 posts
Liked in: 130 posts
Joined: Wed Nov 14, 2007 2:12 pm
Location: Isleham, Cambridgeshire, UK.
Info

by mediavets » Fri Jun 24, 2011 7:08 pm

Do you mean you wish to have a hotspot action launch a SWF aninmation within a tour?
Andrew Stephens
Many different Nodal Ninja and Agnos pano heads. Merlin/Panogear mount with Papywizard on Nokia Internet tablets.
Nikon D5100 and D40, Sigma 8mm f3.5 FE, Nikon 10.5mm FE, 35mm, 50mm, 18-55mm, 70-210mm. Promote control.

no avatar
Viet77
New member
 
Topic author
Posts: 8
Likes: 0 post
Liked in: 0 post
Joined: Thu May 05, 2011 3:09 pm
Info

by Viet77 » Mon Jun 27, 2011 9:01 am

I've put in a swf file (a video) and I would like this swf plays when I click on a button.
So I have 2 problems, when the tour starts, the video plays from the start.
and when i click on the link "close window", the window is just hidden (i can hear the "sound" still playing, even if the window has disapeared).
I would like the video stop playing when i click on the link "close window"

no avatar
mediavets
Moderator
 
Posts: 16413
Likes: 2 posts
Liked in: 130 posts
Joined: Wed Nov 14, 2007 2:12 pm
Location: Isleham, Cambridgeshire, UK.
Info

by mediavets » Mon Jun 27, 2011 12:29 pm

Viet77 wrote:I've put in a swf file (a video) and I would like this swf plays when I click on a button.
So I have 2 problems, when the tour starts, the video plays from the start.
and when i click on the link "close window", the window is just hidden (i can hear the "sound" still playing, even if the window has disapeared).
I would like the video stop playing when i click on the link "close window"

There are two ways of associating a SWF file with a hotspot.

You can either specify the SWF as a Link/Object (screenshot 1) or as a Display/Object (screenshot 2) ; the resulting effect varies depending on the type of hotspot.

Which type of hotspot and which sort of association are you attempting to use?

Could you convert your SWF file to one of the supported video formats instead? .flv, .mp4, .m4v




Last edited by mediavets on Mon Jun 27, 2011 12:40 pm, edited 1 time in total.
Andrew Stephens
Many different Nodal Ninja and Agnos pano heads. Merlin/Panogear mount with Papywizard on Nokia Internet tablets.
Nikon D5100 and D40, Sigma 8mm f3.5 FE, Nikon 10.5mm FE, 35mm, 50mm, 18-55mm, 70-210mm. Promote control.

no avatar
Viet77
New member
 
Topic author
Posts: 8
Likes: 0 post
Liked in: 0 post
Joined: Thu May 05, 2011 3:09 pm
Info

by Viet77 » Mon Jun 27, 2011 1:05 pm

So I have the 1.5.3 version, I can't use the display solution...

I have a swf file. Inside, it's a flv video with a player of flash (because Flash has players with own buttons and the Kaus' one is just a black screen).

So when the tour starts, the swf file also starts and We can hear the sound of the swf file...

no avatar
mediavets
Moderator
 
Posts: 16413
Likes: 2 posts
Liked in: 130 posts
Joined: Wed Nov 14, 2007 2:12 pm
Location: Isleham, Cambridgeshire, UK.
Info

by mediavets » Mon Jun 27, 2011 5:19 pm

Viet77 wrote:So I have the 1.5.3 version, I can't use the display solution...

I recommend you update to 1.6 RC1:
http://www.kolor.com/download-autopano-panotour-panorama-virtual-tour-software.html

I have a swf file. Inside, it's a flv video with a player of flash (because Flash has players with own buttons and the Kaus' one is just a black screen).

Ah, you didn't mention that before. That's not going to work I think, you seem to be wanting to embed a Flash player (for the video) inside the krpano Flash player for the panos and I don't think you can do that. You will just have to accept the krpano videoplayer plug-in with it's lack of user controls. Does your video really require that the user is offered user controls anyway?

But if you can make that SWF file available for downlaod I'll see what happens when I try using it.

So when the tour starts, the swf file also starts and we can hear the sound of the swf file...

I still don't understnd that if you have the SWF linked as a Link/Object for a hotspot.
Andrew Stephens
Many different Nodal Ninja and Agnos pano heads. Merlin/Panogear mount with Papywizard on Nokia Internet tablets.
Nikon D5100 and D40, Sigma 8mm f3.5 FE, Nikon 10.5mm FE, 35mm, 50mm, 18-55mm, 70-210mm. Promote control.

no avatar
bidou
New member
 
Posts: 1
Likes: 0 post
Liked in: 0 post
Joined: Wed Jun 29, 2011 4:59 pm
Info

by bidou » Wed Jun 29, 2011 5:21 pm

je relance le sujet.

Nous avons décidé de tout gérer en flash (bouton click et conteneur vidéo), tout fonctionne (plus de problème de chargement/déchargement de la vidéo) jusqu'à  ce qu'on remarque que si on bouge dans le swf pano généré par pano tour pro: notre clip bouton, que nous avons gérer en appel hotspot dans le xml pour pouvoir lui attribuer des valeurs en latitude et longitude fixes, charge le clip vidéo mais le charge à  l'endroit où se trouve le bouton (ce qui est logique au final mais fortement incommodant).

Si on met le clip vidéo dans un plugin vidéo et qu'on gère le click depuis le xml, le clip vidéo ne se charge qu'une fois (si nous quittons le clip, il ne peut être relancer au click, pano tour n'interprétant pas l'état "fin de onclick").

Si nous pouvions coder dans le xml qu'au click sur notre clip bouton: le swf pano reprend ses valeurs de départ en x et y mais je ne sais pas si c'est faisable?

Pour le lien exemple du soucis, me demander en MP.

Version En google:

I raise the subject.

We decided to manage everything in flash (and video container button click) while
works (no problem loading / unloading of the video) until
we note that if you move the swf generated by pano pano pro tour: our video
button, which we manage on appeal hotspot in order to assign xml
values ​​in latitude and longitude fixed load the video but the load
the location of the button (which makes sense in the end but strongly
uncomfortable).

If you put the video clip in a plugin that manages the video and click from the xml,
the video does not load once (if we leave the clip, it can not be
click to restart, turn pano not interpreting the state "end onclick").

If we could encode the xml that clip click on our button: swf pano
takes its values ​​starting in x and y but I do not know if it feasible?

For example concerns the link, ask me in MP.
Last edited by bidou on Wed Jun 29, 2011 8:03 pm, edited 1 time in total.


Who is online

Users browsing this forum: No registered users and 1 guest