Sie sind nicht angemeldet.

1

Dienstag, 9. Dezember 2014, 16:38

Problems with image

Hello everyone, I have a problem with image management with textfield, especially in Flash when they are full width of the textfield..

Concretely, an example force in HTML5, where there are no problems:
http://www.consult-me.eu/ftp/ProjetsEnCo…indexHtml5.html

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<krpano>
	<plugin name="htmltext" url="%SWFPATH%/plugins/textfield.swf" align="center" width="520" autoresize="true" x="0" y="0" visible="true" html="data:html1" alpha="1"/>

	<data name="html1">
		<p align="center">
			<font face="times" size="16px" style="font-family:times; font-size:16px;">
				<b>Hello from Textfield HTML</b>
			</font>
		</p>
		<img src="image.jpg" style="padding:8px; float:left"/>
		<p align="left">
			123456789abcedfghijklmnopqrstuvwxyz<br/>
			left align test left align test left align test left align test left align test<br/>
			left align testleft align testleft align test<br/>
		</p>
	</data>
</krpano>


The same code, but forcing in Flash:
http://www.consult-me.eu/ftp/ProjetsEnCo…indexFlash.html

We see that it misses the beginning of the text. You can cheat by putting <br/> between image and text to make it back. But we see the spaces in HTML5 ...

Last example, which is probably associated problem, if the data ends with an image, it disappears by putting in the textfield autoresize (still in Flash, and no problem in HTML5)
http://www.consult-me.eu/ftp/ProjetsEnCo…exFlashImg.html


Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<krpano>
   
 <plugin name="htmltext" url="%SWFPATH%/plugins/textfield.swf" 
align="center" width="520" autoresize="true" x="0" y="0" visible="true" 
html="data:html1" alpha="1"/>

	<data name="html1">
		<p align="center">
			<font face="times" size="16px" style="font-family:times; font-size:16px;">
				<b>Hello from Textfield HTML</b>
			</font>
		</p>
		<img src="image.jpg" style="padding:8px; float:left"/>
	</data>
</krpano>


I tested many different parameters to give the height of the image textfield, but without success in Flash ... *unsure*

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Riphur« (9. Dezember 2014, 17:28)


2

Dienstag, 9. Dezember 2014, 23:44

Didn't investigated to much but can it be that autoresize attribute used in your code is not valid attribute:
I see there are only autowidth and autoheight: http://krpano.com/plugins/textfield/#autowidth

3

Mittwoch, 10. Dezember 2014, 10:04

thank you for your answer, but unfortunately it does not work better ...

4

Montag, 15. Dezember 2014, 18:23

Up *huh*

5

Dienstag, 23. Dezember 2014, 09:32

Hi,

the Flashplayer Textfield doesn't support a 'style' attribute.

Please see here and the links there for more details:
http://krpano.com/plugins/textfield/#html

Best regards,
Klaus