You are not logged in.

to2hov

Trainee

  • "to2hov" started this thread

Posts: 55

Location: Bulgaria

Occupation: Panoramic Photography

  • Send private message

1

Monday, May 25th 2015, 5:48am

Scrollarea

Guys,

Could you please check and let me know where my mystake is 'cuz when I press the arrow buttons they DO NOTHING! *unsure*

Source code

1
2
3
4
5
6
7
8
9
10
11
12
 <layer name="arrow-up" url="../gfx/button-arrow.png" keep="true" align="bottomleft" x="50" y="459" alpha="0.3" onover="tween(alpha,1);" onout="tween(alpha,0.3);" ondown="onover(); asyncloop(pressed, layer[scrollarea].scrollby(+2,0));" onup="onout();"/>
 <layer name="arrow-down" url="../gfx/button-arrow.png" keep="true" align="bottomleft" x="76" y="470" rotate="180" alpha="0.3" onover="tween(alpha,1);" onout="tween(alpha,0.3);" ondown="onover(); asyncloop(pressed, layer[scrollarea].scrollby(-2,0));" onup="onout();"/>
 
	<layer name="boxed-scrollarea" type="container" keep="true" width="348" height="290" handcursor="false" align="bottomleft" x="90" y="185" visible="true" bgcolor="0x331100" bgcapture="true" bgalpha="0">
 
		<layer name="scrollarea" url="../plgns/scrollarea.swf" alturl="../plgns/scrollarea.js" handcursor="false" align="topleft" direction="v" width="348" height="320">
 
			<layer name="info-k-sh-in" url="../plgns/textfield.swf" keep="true" visible="true" align="topleft" width="348" height="auto" x="0" y="0" alpha="1" html="Ut malesuada bibendum accumsan. Sed accumsan ultricies est ut posuere. In mollis hendrerit enim eget lacinia. Aliquam pharetra, urna ac convallis tempor, quam tortor ullamcorper sem, nec placerat augue nisi et sapien. Nullam aliquam odio a tincidunt condimentum. In ultrices scelerisque leo quis interdum. Donec sit amet mi erat.[br][br]Integer imperdiet eu urna eu aliquam. Integer maximus et tellus non porttitor. Vestibulum libero ante, maximus vitae iaculis nec, rhoncus sed nunc. Quisque lacinia augue eget risus venenatis, ac dapibus dui vestibulum. Ut dapibus varius libero, interdum faucibus libero pharetra sodales. Mauris placerat eleifend nibh, in dapibus massa vestibulum a. Praesent fermentum nec nisi vitae interdum. Curabitur tempor malesuada est, eu sodales nulla posuere vel. Donec euismod facilisis ultricies." css="font-family: Tahoma, Geneva, sans-serif; font-size: 12px; color: #ffffff;" borderwidth="0" background="false" selectable="true" autosize="left" />
 
		</layer>
 
	</layer>


Thanks,
N.

spacerywirtualne

Professional

Posts: 919

Location: Poland, Europe

Occupation: krpano developer : virtual tours

  • Send private message

2

Monday, May 25th 2015, 9:20am

Hi

Your plugin directory called "plgns"?
url="../plgns/scrollarea.swf"
Your own online, cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube

cms4vr team *thumbsup*

Umalo

Professional

Posts: 1,048

Location: Osijek, Croatia, EU

  • Send private message

3

Monday, May 25th 2015, 3:14pm

You can name your folders as you like if path is correct. It can be even plgns as you type (if referenced correctly), so this is not the reason why your scroll is not working.

You want to have vertical scroll so you should explore how scrollby is working: http://krpano.com/plugins/scrollarea/#scrollby

Hint: scrollby(+2,0) -> scrollby(0,+2)

to2hov

Trainee

  • "to2hov" started this thread

Posts: 55

Location: Bulgaria

Occupation: Panoramic Photography

  • Send private message

Similar threads