|
|
Quellcode |
1 |
altonloaded="if(isphone, mul(scale,2.4)); onloaded();" |
|
|
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 |
<action name="buildthumbs">
if(%1 != NEXT, set(i,0));
if(i LT scene.count, copy(thumb, scene[get(i)].thumburl);
txtadd(thumbname,"thumb_",get(i));
addplugin(get(thumbname));
set(plugin[get(thumbname)].url, get(thumb));
set(plugin[get(thumbname)].keep, true);
set(plugin[get(thumbname)].align, leftbottom);
set(plugin[get(thumbname)].width, 40);
set(plugin[get(thumbname)].height, 40);
set(plugin[get(thumbname)].x, 10);
set(plugin[get(thumbname)].y, 10); mul(plugin[get(thumbname)].x, i,0);
mul(plugin[get(thumbname)].y, i,0);
add(plugin[get(thumbname)].x, 10);
add(plugin[get(thumbname)].y, 10);
copy(plugin[get(thumbname)].xsmall, plugin[get(thumbname)].x);
copy(plugin[get(thumbname)].ysmall, plugin[get(thumbname)].y);
add(plugin[get(thumbname)].zorder, 100, i);
set(plugin[get(thumbname)].effect,glow(0xFFFFFF,1.0,2,10000));
set(plugin[get(thumbname)].alpha,0.8);
set(plugin[get(thumbname)].jsborder,"1px solid #FFFFFF");
copy(plugin[get(thumbname)].thumbpos, i);
set(plugin[get(thumbname)].linkedscene, get(scene[get(i)].name) );
set(plugin[get(thumbname)].onclick, openthumbs() );
copy(plugin[get(thumbname)].scenetitle, scene[get(i)].title);
set(plugin[get(thumbname)].onhover,showtext(get(scenetitle), navistyle) );
inc(i); buildthumbs(NEXT); );
[color=#009900]altonloaded="if(isphone, mul(scale,2.4)); onloaded();"[/color]
</action>
|
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »machart« (9. September 2011, 14:46)
altonloaded="if(isphone, mul(scale,2.4)); onloaded();"
|
|
Quellcode |
1 |
set(plugin[get(thumbname)].altonloaded, if(isphone, mul(scale, 1.6), mul(x, 1.6))); |
|
|
Quellcode |
1 |
onloaded="IF(ishtml5, set(y, 8), set(x, 53)); IF(isphone, mul(scale, 1.6));" |
hello vn, hello hans!
thanks for your hints!
i tried vns idea, it works! but of course the thumbs are overlapping now... i tried this:
![]()
Quellcode
1 set(plugin[get(thumbname)].altonloaded, if(isphone, mul(scale, 1.6), mul(x, 1.6)));
but that doesnt fix the overlap... must be something different...
for the open/close buttons i have this:
![]()
Quellcode
1 onloaded="IF(ishtml5, set(y, 8), set(x, 53)); IF(isphone, mul(scale, 1.6));"
the first part corrects the alignment and works fine, but with the scaling part after it its gone...
here is the screenshot:
index.php?page=Attachment&attachmentID=578
|
|
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 |
<action name="startup">
loadscene(get(scene[0].name), null, MERGE);
buildthumbs();
combobox();
</action>
<plugin name="box"
url="%SWFPATH%/plugins/combobox.swf"
alturl="%SWFPATH%/plugins/combobox.js"
devices="mobile"
preload="true"
keep="true"
zorder="15"
align="lefttop" x="10" y="10" width="120"
blendmode="layer"
onloaded="fillbox();"
onclick="trace(combobox clicked);"
/>
<action name="combobox">
plugin[box].addIdItem(1, 'Von vorne', loadscene(scene_ju1, null, MERGE, BLEND(1)); );
plugin[box].addIdItem(2, 'Rechte Seite', loadscene(scene_ju2, null, MERGE, BLEND(1)); );
plugin[box].addIdItem(3, 'Der Bauch', loadscene(scene_ju3, null, MERGE, BLEND(1); );
plugin[box].addIdItem(4, 'Im Cockpit', loadscene(scene_ju4, null, MERGE, BLEND(1)); );
plugin[box].addIdItem(5, 'Am Heckleitwerk', loadscene(scene_ju5, null, MERGE, BLEND(1)); );
plugin[box].addIdItem(6, 'Am Triebwerk', loadscene(scene_ju6, null, MERGE, BLEND(1); );
plugin[box].addIdItem(7, 'Linke Seite', loadscene(scene_ju7, null, MERGE, BLEND(1)); );
plugin[box].addIdItem(8, 'Der Einstieg', loadscene(scene_ju8, null, MERGE, BLEND(1)); );
</action>
<action name="fillbox">
if(scene.count == 1, set(plugin[box].visible,false));
for(set(i,0), i LT scene.count, inc(i),
set(scenename, get(scene[get(i)].name));
set(titlename, get(scene[get(i)].title));
txtadd(itemaction, 'loadscene(', get(scenename),',null,MERGE,BLEND(1));');
plugin[box].additem(get(titlename), get(itemaction));
);
</action>
|

|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
<scene name="scene_ju1" title="Von Vorne"
onstart="action(start_scene1); "
thumburl="ju12.tiles/thumb.jpg">
<action name="start_scene1">
set(hotspot.visible,false);
action(setlittleplanetcoords,0,140.0);
rotate_off();
plugin[box].selectIdItem(1);"
</action>
<events onloadcomplete="set(control.usercontrol,all);
set(events.onloadcomplete,null);
delayedcall(1.8, normalview1());"/>
|