Sie sind nicht angemeldet.

101

Montag, 16. Juli 2012, 13:53

RE: RE: how to hide hotspots in different scenes with swfaddress

Hi all,
I have the tour of several panoramas connected by hotspots for going from one place to another. NOw, this is no problem to do with <scene>,
as for each scene I can define unique hotspots - but how to do it when using swfaddress plugin? How can I define, that some hotspots are visible ONLY with specific panorama ???

Can somebody help? Thanx!
Igor

Hi, take a look at this point in the documentation. You can use this event to call any set of actions for specified pano. You can find the usage of this event in the example.


Aha, ok thanx a lot... I didn´t notice this function works like this: " It is similar to onxmlcomplete attrbiute of events tag, but called only for linked panorama."
Best regards,
Igor Socha

102

Sonntag, 5. August 2012, 14:48

unshortened Urls ...

Hi Alexandr!

I have a project where i must have unshortened Urls.
Could you explain how to use your plugin without Bitly??

Greetz

Mil

103

Montag, 13. August 2012, 16:55

Hi,

You should find some URL Shortening service (like goo.gl) and write your own plugin, which will make it possible to use this service.

zzzone

Schüler

Beiträge: 64

Wohnort: Bristol

Beruf: Photographer

  • Nachricht senden

104

Mittwoch, 22. August 2012, 09:34

Hi

I'm wanting to purchase your plugin or the jAddress one but it has to work for on an iPad.

It looks like it nearly works when I tried your demo on one.

Appreciate your feedback please. I have just written something similar on the jAddress thread because that is sold as working on an iPad and it doesn't quite.

I am not sure which plug in is best for the purpose but for me I most definitely need one that works on an iPad.

Any help or guidance would be appreciated.

105

Mittwoch, 22. August 2012, 21:06

Hi

I'm wanting to purchase your plugin or the jAddress one but it has to work for on an iPad.

It looks like it nearly works when I tried your demo on one.

Appreciate your feedback please. I have just written something similar on the jAddress thread because that is sold as working on an iPad and it doesn't quite.

I am not sure which plug in is best for the purpose but for me I most definitely need one that works on an iPad.

Any help or guidance would be appreciated.


Use SWFAddress, because despite the name, it comes with sa.js which is html5 compatible. No purchase required.

106

Mittwoch, 22. August 2012, 21:58

I too am only using the iPad for this tour an need to use this, but I don't really understand how. Is there a guide on how to use it with html5/javascript only?

I also noticed something a bit strange in the demo in swfaddress.xml:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
	<!-- Plugins -->
	<plugin name="swfaddress" 
			url="plugins/sa.swf"
			alturl="plugins/sa.js"
			keep="true"
			preload="true"
			
			mode="auto"
			randomroot="false"
			parsepaths="true"
			titlePrefix="Virtual tour: "
			titlePostfix=""
			
			onurlchange="activatepano(%PANOID, %TYPE);"
			onpathchange=""
			onparamschange="paramschangeaction();"
			oninvalidaddress="showlog(); trace(Invalid address);"
			>
		<pano name="pano1"
			  xmlurl="%SWFPATH%/pano/0.xml"
			  pageurl="/crane/"
			  pagetitle="Olympic Stadium. View from the crane."
			  onxmlcomplete="trace(First pano loaded);"
			  />
		<pano name="pano2"
			  xmlurl="%SWFPATH%/pano/1.xml"
			  pageurl="/ring/"
			  pagetitle="Olympic Stadium. Ring."
			  onxmlcomplete="trace(Second pano loaded);"
			  />
	</plugin>
	
	<plugin name="bitly"
			url="plugins/bitly.swf"
			alturl="plugins/bitly.js"
			keep="true"
			preload="true"
			
			apikey="R_48b308ba7da245ddbc0d6f7744f872ca"
			login="jaydeee"
			onerror="showlog(); trace(The URL cannot be shortened);"
			/>


There's an ending tag for plugin but also a < which looks like it was put there to terminate the beginning tag. The next plugin tag has no ending tag and instead a />

107

Mittwoch, 22. August 2012, 22:29

Anyways, that said, it looks I have it working now =)

zzzone

Schüler

Beiträge: 64

Wohnort: Bristol

Beruf: Photographer

  • Nachricht senden

108

Donnerstag, 23. August 2012, 00:12

Anyways, that said, it looks I have it working now =)


I thought you meant that the online demo is now working correctly. I think you mean the personal work you are doing is now working.

Either way I would appreciate knowing whether this plugin will work with an iPad. Many thanks.

bulp

Fortgeschrittener

Beiträge: 390

Wohnort: Malaysia

  • Nachricht senden

109

Samstag, 25. August 2012, 22:09

Anyways, that said, it looks I have it working now =)


I thought you meant that the online demo is now working correctly. I think you mean the personal work you are doing is now working.

Either way I would appreciate knowing whether this plugin will work with an iPad. Many thanks.


zzzone, id test this swfaddress plugin for html5 and its works.... you can try it here http://hide.my/floria2009 *thumbsup*

now my biggest problem is ... its didnt works in Flash.. :( .. maybe id didnt set it properly..

zzzone

Schüler

Beiträge: 64

Wohnort: Bristol

Beruf: Photographer

  • Nachricht senden

110

Montag, 27. August 2012, 02:16



zzzone, id test this swfaddress plugin for html5 and its works.... you can try it here http://hide.my/floria2009 *thumbsup*

now my biggest problem is ... its didnt works in Flash.. :( .. maybe id didnt set it properly..


Is the problem you need <script src="swfkrpano.js"></script> in the index file? I'm no expert but the instruction state you need that.

I have only just started looking at your code trying to work out the easiest way to implement this now that I have purchased the plugin.

I'm looking for the simplest way to integrate this into the MAKE VTOUR output. Am I being a bit optimistic for a beginner!!

zzzone

Schüler

Beiträge: 64

Wohnort: Bristol

Beruf: Photographer

  • Nachricht senden

111

Montag, 27. August 2012, 03:40

I have given up try to make this work *confused*

I am looking for the most straightforward way to integrate this into the droplet output makevtour.

Help really appreciated.

112

Freitag, 31. August 2012, 20:36

Hi,

Q1: is it possible to merge actions getlinktothisview+plugin[swfaddress].copylink Into one single action?
Tried to call copylink right after get link but doesnt work

Q2: is there a chance copylink() get the bitly shortened link to clipboard?

Regards

113

Samstag, 1. September 2012, 00:23

Q3: i cannot reproduce this example with last verion of swfaddress plugin:

http://www.krpano.com/plugins/userplugin…xamples/params/

it seems pano reloads every two clicks on "getlinktothisview" with last version

could you update the example?

thanks a lot

114

Sonntag, 2. September 2012, 07:45

Hi,

Q1: is it possible to merge actions getlinktothisview+plugin[swfaddress].copylink Into one single action?
Tried to call copylink right after get link but doesnt work

Q2: is there a chance copylink() get the bitly shortened link to clipboard?

Regards


Q1: of course, just create the new action, add getlinktothisview and copylink action in it, and call it whenever it necessary.

Q2: Sure, just check the latest examples. You can call copylink() action right after bit.ly shortened your link and copy it to clipboard.

Q3: i cannot reproduce this example with last verion of swfaddress plugin:

http://www.krpano.com/plugins/userplugin…xamples/params/

it seems pano reloads every two clicks on "getlinktothisview" with last version

could you update the example?

thanks a lot


Q3: You use the outdated example. Please, use the latest codebase and examples.

115

Sonntag, 2. September 2012, 13:07

Hi

i tried the latest examples but it doesn't feature the params capture (precise ath/atv/fov)

and the link isn't copied to clipboard but into a krpanovariable.

is there a newest params example? how to add the params capture to this new example?

i assure you i tried everything with the latest codebase but i was not able to reproduce this previous params example. (if i call getlinktothiosview+plugin[swfaddress].copylink the tour crashes).

Thanks a lot

116

Sonntag, 2. September 2012, 18:00

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
ok here's my code:

      <action name="shareView">
		prepareurl();
     </action>

    <action name="prepareurl">
		getlinktothisview();
		copy_url();
	</action>

     <action name="getlinktothisview">
     	plugin[swfaddress].setparams(ath=view.hlookat, atv=view.vlookat, fov=r(view.fov));
    </action>
 
    
    <action name="copy_url">
		plugin[swfaddress].copylink();
	</action>


turns out that each time i call "shareview" action, the url that is copied into clipboard is built with the previous view settings.

tried to put a delayed call on "copy_url" action but that doesn't work.

please i need help on this!

thanks a lot

117

Montag, 3. September 2012, 01:43

it seems that after calling this:

plugin[swfaddress].setparams(ath=view.hlookat, atv=view.vlookat, fov=r(view.fov));

plugin[swfaddress].value is directly set to the address bar params value, but plugin[swfaddress].fullurl is not changed until call of plugin[swfaddress].copylink

plugin[swfaddress].copylink copy to the clipboard the same value as plugin[swfaddress].fullurl, that is to say the previous values of params

i would like it to copy plugin[swfaddress].value which is correct after plugin[swfaddress].setparams(ath=view.hlookat, atv=view.vlookat, fov=r(view.fov));

thanks

118

Montag, 3. September 2012, 12:45

Hi,

I bet you are using Safari on Mac :) You shouldn't rely on setparams function, because in some browsers JS executing asynchronously (especially in Safari on OS X). So, if you call setparams function, you should expect to have these parameters in address bar only after some time.
That is why I haven't used it in the current version of the example. And that is also why you see that fullurl and other attributes are not updated. They are updated actually, but some time after you checking them in the console.
I will try to find a time and prepare a code example for you today a little bit later.

119

Montag, 3. September 2012, 13:03

ok thanks

in fact i'm using Firefox on mac, but i tested with several browser it's the same.

the problem is not the url in the address bar, it is updated immediatly, the problem is the content of the copied value with copylink() function which is not up to date (it copy "fullurl" value not "value" value)

one thing i don't get : i the newest example you use a variable data[viewurl].content to set the url, ok, but how can this value be copied with copylink() ? it doesn't work.

for the moment the best workaround for me is to not use bitly, use setparam, and tell user to manually copy the link in adresse bar, as copylink don't work with params.

regards

120

Montag, 3. September 2012, 13:17

Okay, I recommend you to use Clipboard plugin from Aldo Hoeben (Thanks, Aldo) to copy any text to clipboard, because SWFAddress plugin now copies the URL in address bar to clipboard. I will add functionality to copy any text to clipboard using SWFAddress plugin in the next version.
Here is the code:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<plugin name="clipboard"
		url="plugins/clipboard.swf"
		keep="true"
		/>

<plugin name="copy1_button"
		url="images/copy1.png"
		align="bottomleft"
		x="10"
		y="10"
		altonloaded="if(isphone, mul(x,2); mul(y,2); mul(scale,2));"
		onhover="showtext(Copy direct link to clipboard);"
		onclick="copy_direct_link();"
		/>

<action name="copy_direct_link">
	getlinktothisview();
	set(plugin[clipboard].text,get(data[viewurl].content));
</action>


It's impossible to copy bit.ly link to clipboard imediately after shortening, because it will cause the following error:

Zitat

Error #2176: Certain actions, such as those that display a pop-up window, may only be invoked upon user interaction, for example by a mouse click or button press.

Flash Player Security doesn't allow you to copy something in clipboard without user interaction.

You can try to implement the following:
  1. User clicks on the "Get link to this view" button
  2. You call the URL shortening action
  3. You open the popup which contains two textfields and two copy buttons. The first textfield contains direct link. The shortened link should appear in the second textfield right after the shortening.
  4. User chose which link he wants to copy and press the desired copy button

Thanks for your feedback.

Ähnliche Themen