Sie sind nicht angemeldet.

Zephyr

Profi

  • »Zephyr« ist der Autor dieses Themas

Beiträge: 1 003

Wohnort: Netherlands

Beruf: Web developer

  • Nachricht senden

1

Mittwoch, 2. November 2011, 15:45

bug with loadstyle

this works:

Quellcode

1
add_tester(10);

Quellcode

1
2
3
4
5
6
<style name="menu_style" background="true" url="%SWFPATH%/plugins/textfield.swf" keep="true" height="100" width="100" align="center" html="test" />
    <action name="add_tester">
        set(pname, tester%1);
        addplugin(get(pname));
        plugin[tester%1].loadstyle(menu_style);
    </action>


this doesnt:

Quellcode

1
2
3
4
5
6
    <style name="menu_style" background="true" url="%SWFPATH%/plugins/textfield.swf" keep="true" height="100" width="100" align="center" html="test" />
    <action name="add_tester">
        set(pname, tester%1);
        addplugin(get(pname));
        plugin[get(pname)].loadstyle(menu_style);
    </action>


Only difference is that I have a get(pname) as plugin name calling the loadstyle. the whole plugin breaks when I attempt the plugin[get(pname)].loadstyle(menu_style);
meaning the plugin dissapears. pname validates properly to tester10 and the plugin is successfully created. so the error lies in the loadstyle part.

2

Freitag, 4. November 2011, 16:11

Hi,

are you using the latest krpano version?
normally this should already work...

best regards,
Klaus

Zephyr

Profi

  • »Zephyr« ist der Autor dieses Themas

Beiträge: 1 003

Wohnort: Netherlands

Beruf: Web developer

  • Nachricht senden

3

Freitag, 4. November 2011, 16:31

hmm, I used
INFO: krpano 1.0.8.14 (build 2011-05-20)

I'll get the new update, and post my results

4

Freitag, 4. November 2011, 16:33

that's too old
use the latest final 1.0.8.14

Zephyr

Profi

  • »Zephyr« ist der Autor dieses Themas

Beiträge: 1 003

Wohnort: Netherlands

Beruf: Web developer

  • Nachricht senden

5

Freitag, 4. November 2011, 16:50

Stop developing so fast :(!

btw you should make a droplet: Embed license :P dblicik to merge all licenses it finds (swf and js) with the latest krpano version (perhaps pulled online ;) if internet location is available, using somesort of curl) or from current folder. Atm I just drag 1 pano on MAKE VTIOUR and steal the licences from those folders ;P

I still cant figure out how krprotect works... :(

6

Freitag, 4. November 2011, 16:58

Hi,
btw you should make a droplet: Embed license :P dblicik to merge all licenses it finds (swf and js) with the latest krpano version (perhaps pulled online ;) if internet location is available, using somesort of curl) or from current folder. Atm I just drag 1 pano on MAKE VTIOUR and steal the licences from those folders ;P
I know about that problem and I'm already thinking about a solution - but addtionally also checking an online update is also a good idea!

when you have already swf or js files with embedded license I would recommend using the "krpano Update Tool" - there you just need to select the swf/js to update and the tool will show the current and the new versions and run the update on button press,

best regards,
Klaus