You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

publicitarios360

Intermediate

  • "publicitarios360" started this thread

Posts: 328

Location: Habana, Cuba

Occupation: Architect, Photographer.

  • Send private message

1

Sunday, October 29th 2017, 2:44pm

How to create Scrollarea plugin dinamically? [SOLVED]

I need to make this:

Source code

1
2
3
4
5
6
<action name="testing">
addlayer(scrollarea);
set(layer[scrollarea].url,plugins/scrollarea.swf);
set(layer[scrollarea].alturl,plugins/scrollarea.xml);
set(layer[scrollarea].align,center);
</action>


but never works (WARNING: plugin[scrollarea] skipped flash file: scrollarea.swf)

The only way is:

Source code

1
2
3
4
5
<layer name="scrollarea"
 url="plugins/scrollarea.swf" 
alturl="plugins/scrollarea.js" 
align="center" 
/>


Please, What is wrong?

Thanks,

Fdo.

This post has been edited 1 times, last edit by "publicitarios360" (Oct 29th 2017, 8:29pm) with the following reason: Add the {solved] label...


spacerywirtualne

Professional

Posts: 1,115

Location: Poland, Europe

Occupation: krpano developer : virtual tours : the cms4vr owner

  • Send private message

2

Sunday, October 29th 2017, 4:45pm

set(layer[scrollarea].alturl,plugins/scrollarea.xml);
try

Source code

1
set(layer[scrollarea].alturl,plugins/scrollarea.js);


No XML but JS

Piotr

Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

publicitarios360

Intermediate

  • "publicitarios360" started this thread

Posts: 328

Location: Habana, Cuba

Occupation: Architect, Photographer.

  • Send private message

3

Sunday, October 29th 2017, 6:02pm

Thanks, Piotr, the .xml was my mistake when typed, but with .js no works.

Note that url="plugins/scrollarea.swf was well typed in flash, but there is the error: WARNING: plugin[scrollarea] skipped flash file: scrollarea.swf

I think that the scrollarea plugin isnot dynamic. Are yo have any example working it dinamically?

Thanks very much for your help, I wait your answer.

Greets,

Fdo

4

Sunday, October 29th 2017, 7:35pm

no it is dynamic,
i think it is also loaded that way in vtourskin.xml.

are you doing this in js or swf?
i would forget about alturl and try to load the correct file in url (either swf or js)

spacerywirtualne

Professional

Posts: 1,115

Location: Poland, Europe

Occupation: krpano developer : virtual tours : the cms4vr owner

  • Send private message

5

Sunday, October 29th 2017, 8:18pm

Hi

I do not use 'alturl'. My solution (when I used the flash) :

Source code

1
2
3
4
5
if(device.flash,	
  set(layer[scrollarea].url,plugins/scrollarea.swf);
,	
  set(layer[scrollarea].url,plugins/scrollarea.js);
);



try this code

Piotr
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

publicitarios360

Intermediate

  • "publicitarios360" started this thread

Posts: 328

Location: Habana, Cuba

Occupation: Architect, Photographer.

  • Send private message

6

Sunday, October 29th 2017, 8:20pm

[solved] Thanks to Piotr and indexofrefraction

Thanks very much!!!,

I tried with the correct url, (no alturl) and PERFECT!!! run fine de code.

Grateful,

Fernando

spacerywirtualne

Professional

Posts: 1,115

Location: Poland, Europe

Occupation: krpano developer : virtual tours : the cms4vr owner

  • Send private message

7

Sunday, October 29th 2017, 9:28pm

Thanks very much!!!,

I tried with the correct url, (no alturl) and PERFECT!!! run fine de code.

Grateful,

Fernando
*thumbsup* *thumbup*


Piotr
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*