Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
<action name="preloadimage"> <!-- 1. parameter = internal ID, 2. parameter = url --> addplugin(pre_%1); set(plugin[pre_%1].visible, false); set(plugin[pre_%1].onloaded, trace(preload %2 done);removeplugin(pre_%1) ); set(plugin[pre_%1].url, %2); trace(starting preloading %2); </action> <action name="preloadpano1"> preloadimage(pano1_l, pano1/cube_l.jpg); preloadimage(pano1_f, pano1/cube_f.jpg); preloadimage(pano1_r, pano1/cube_r.jpg); preloadimage(pano1_b, pano1/cube_b.jpg); preloadimage(pano1_u, pano1/cube_u.jpg); preloadimage(pano1_d, pano1/cube_d.jpg); </action> <events onloadcomplete="preloadpano1();" /> |
Thanks for the info Klaus, and especially for the suggested example. I'm afraid my stupidity seems to have caught up with me again - I implemented this like so:the only thing you could do at the moment is to 'preload' the image manually ,
either via javascript or via krpano actions
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
<action name="preloadimage"> <!-- 1. parameter = internal ID, 2. parameter = url --> addplugin(pre_%1); set(plugin[pre_%1].visible, false); set(plugin[pre_%1].onloaded, trace(preload %2 done);removeplugin(pre_%1) ); set(plugin[pre_%1].url, %2); trace(starting preloading %2); </action> <action name="preloadpano1"> preloadimage(pano1_l, five/five_l.jpg); preloadimage(pano1_f, five/five_f.jpg); preloadimage(pano1_r, five/five_r.jpg); preloadimage(pano1_b, five/five_b.jpg); preloadimage(pano1_u, five/five_u.jpg); preloadimage(pano1_d, five/five_d.jpg); </action> <events onloadcomplete="preloadpano1();" /> |
|
|
Quellcode |
10 11 12 13 14 15 16 17 |
<action name="preloadpano1"> preloadimage(pano1_l, %SWFPATH%/five/five_l.jpg); preloadimage(pano1_f, %SWFPATH%/five/five_f.jpg); preloadimage(pano1_r, %SWFPATH%/five/five_r.jpg); preloadimage(pano1_b, %SWFPATH%/five/five_b.jpg); preloadimage(pano1_u, %SWFPATH%/five/five_u.jpg); preloadimage(pano1_d, %SWFPATH%/five/five_d.jpg); </action> |
Hi Michel,Perhaps a path issue...
|
|
Quellcode |
1 2 3 4 5 |
INFO: krpano 1.0.8 beta 6 (build 2009027) INFO: Flashplayer WIN 10,0,42,34 PlugIn INFO: registered to: Keith Martin INFO: unknown action command: preloadpano1 INFO: unknown action command: preloadpano1 |
|
|
Quellcode |
1 |
<events onloadcomplete="action(preloadpano1);" /> |
SAlut.user defined actions <action> can now be called "direct"
e.g. instead of:
![]()
Quellcode
1 action(actionname, parameters...);
now also just:
![]()
Quellcode
1 actionname(parameters...);
is possible
... The preloadpano1() action works correctly and your cube face images are cached as expected...
...|
|
Quellcode |
1 |
<krpano version="1.0.8" onstart="set(doturnview,no); preloadpano1();..... |
|
|
Quellcode |
1 |
<events onloadcomplete="preloadpano1();" /> |
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »michel« (10. Februar 2010, 03:43)
Michel, you're right! Thanks, I think I managed to juggle things back to a working state without realising! Too much reloading must have fried my perceptions...Your code is working properly now... The preloadpano1() action works correctly and your cube face images are cached as expected...
with 1.17 pre-release? is something changed?not automaticallycan we do the same with multiresolution images?
you would need to set all wanted tiles manually...