Sie sind nicht angemeldet.

bulp

Fortgeschrittener

  • »bulp« ist der Autor dieses Themas

Beiträge: 390

Wohnort: Malaysia

  • Nachricht senden

1

Dienstag, 17. November 2009, 04:18

html custom code link

hye Klaus..



i do notice you do this html link

http://krpano.com/krpano.html?pano=panos…view.vlookat=24

to set some effect without alteration of the original files..




this is my only embed(kprotect) xml named(Panorama Start.xml)...

<krpano version="1.0.8" onstart="action(setuptour);" >

<include url="Google Maps.xml" />

<include url="Add Tour.xml" />

<include url="Add Scene.xml" />

<include url="Add Scene01.xml" />

<include url="Add Scene02.xml" />

<include url="Add Scene03.xml" />

<include url="Add Scene04.xml" />

<include url="Add Scene05.xml" />

<include url="Add Command.xml" />

<include url="Add New.xml" />

</krpano>


google maps run first with it showed all the point/node for each scene..


the "action(setuptour);" are inside 'Add Tour.xml' and the command just like this,

<action name="setuptour">
action(scene01,true);
plugin[maps].pantospot(scene01);
plugin[maps].activatespot(scene01);
set(currentpano,1);
action(loadpanos);
</action>


i do have 70++ scenes right now (and more soon) inside 'Add Scene.xml' file

<action name="scene01">
loadpano(./xmlfiles/01_bulatanpersiaranpekeliling.xml, null, KEEPPLUGIN, BLEND(1));
plugin[maps].pantospot(scene01);
plugin[maps].activatespot(scene01);
</action>


other plugins or actions i put it inside 'Add Command.xml' file

my question is how to make a html shortcut link same as yours based on my xml structure?.....



regards..

bulp

2

Dienstag, 17. November 2009, 16:39

Hi,

to get this working with kprotect the "External Parameters" must be enabled,
at the moment this is only possible with a Domain Limited SWF,

then use a Javascript Code like in the krpano.html here to pass to the parameters
on the HTML file to the Flash file,

than you can overwrite the XML tags with your parameters,
e.g. overwrite the default "onstart" event with a other one that loads a other scene...

Quellcode

1
pano.html?onstart=loadscene(....);


best regards,
Klaus

bulp

Fortgeschrittener

  • »bulp« ist der Autor dieses Themas

Beiträge: 390

Wohnort: Malaysia

  • Nachricht senden

3

Mittwoch, 18. November 2009, 06:51

i do limit few domains.... thanks klaus... will try it later..