You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Saturday, December 18th 2010, 3:22pm

Plugin text-machine

Hi all,

I give you this plugin text, it work like textmachine

You can see it here

xml code :

Source code

1
2
3
4
5
6
7
8
9
10
<plugin name="text"
		url="text.swf" keep="true"
		scale="1" 
		alpha="1" 
		align="center" x="0" y="0" 
		width="800"
		height="200"  
		zorder="99"
		enabled="true" handcursor="true"
		onclick="set(visible, false);" />


and put the source code
text.zip

This post has been edited 1 times, last edit by "Job.1" (Dec 18th 2010, 3:38pm)


Tuur

Sage

Posts: 3,825

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

2

Saturday, December 18th 2010, 3:29pm

He JOB1,

Merci!! tres jolie!!

Thanx

Tuur *thumbsup*

VN2009

Professional

Posts: 1,336

Location: Duluth MN

  • Send private message

3

Saturday, December 18th 2010, 8:47pm

JOB1 that is great !!! thanks for sharing!

4

Saturday, December 18th 2010, 9:05pm

It's just a little return *thumbsup*

I get many things here

Thank's to all *thumbup*

VN2009

Professional

Posts: 1,336

Location: Duluth MN

  • Send private message

5

Sunday, December 19th 2010, 2:49am

this is great but i am running into issue already :(

there is no way to control the timing of the text it always starts soon as the plugin is loaded. I need the text to run 20 sec after the tour starts. so I tried to add the plugin like this but it will not show up with the addplugin command.

addplugin(text);
set(plugin[text].url, plugins/text.swf);
set(plugin[text].zorder, 200);
set(plugin[text].width, 500);
set(plugin[text].height, 525);
set(plugin[text].align, center);
set(plugin[text].edge, center);
set(plugin[text].alpha, 1);
set(plugin[text].scale, 1);
set(plugin[text].onhover, showtext(test));
set(plugin[text].visible, true);
set(plugin[text].x, 0);
set(plugin[text].y, 0);

if just set the text.swf visible, false and make it true when i need itall the typing is already done as it was sitting hidden for the first 20 seconds. can we get this to react to the addplugin command? or make is so it does not start to type until it is set visible?

6

Sunday, December 19th 2010, 5:56am

I don't see a way to input text. Must it be done in Flash???

7

Sunday, December 19th 2010, 10:39am

You get the source, you can make what you want with it ;-)

VN2009

Professional

Posts: 1,336

Location: Duluth MN

  • Send private message

8

Sunday, December 19th 2010, 5:04pm

I don't see a way to input text. Must it be done in Flash???


yeah i found where to change that. i still stand with my other issues and i dont know enough about flash to figure out much more. it can still be used great for any intro text. maybe someone who knows a little more can at least make it work with the addplugin command then it would be usable alot more.

Job I wish i could do more with it. maybe someday i can try to learn more flash.

9

Monday, December 20th 2010, 7:00am

VN2009,

I did this and it works. Use whatever event you wish to get it started.
<events>
onxmlcomplete="wait(15); addtext()"

</events>

<action name="addtext">
addplugin(text);
set(plugin[text].url, plugins/text.swf);
set(plugin[text].keep, true);
set(plugin[text].width, 500);
set(plugin[text].height, 525);
set(plugin[text].align, center);
set(plugin[text].edge, center);
set(plugin[text].alpha, 1);
set(plugin[text].scale, 1);
set(plugin[text].onhover, showtext(test));
set(plugin[text].visible, true);
set(plugin[text].x, 0);
set(plugin[text].y, 0);

</action>

If someone with flash knowledge can make it work (such as entering data in xml ) for flash ignorant users like myself, that would be cool.

Tuur

Sage

Posts: 3,825

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

10

Monday, December 20th 2010, 10:22am

i think triying something like, in flash

String = String(krpano.get("$text_1"));

and then in xml..

set($text_1, I love krpano, and i wish everybody here a peacefull christmas and all the best for 2011);

something like that should work... isn't it?

didn't test or tried it yet with this plugin..

Cheers

Tuur *thumbsup*

Yomas

Intermediate

Posts: 190

Location: Anglet, France

  • Send private message

11

Wednesday, January 5th 2011, 12:35pm

Merci ^^
Super idée !!!
Beaucoup plus dynamique ;-)
Décidément on arrêtes pas le progrès ^^
My website: www.eboovisite.com, See me also on www.Viewat.com, Facebook and Twitter

Tuur

Sage

Posts: 3,825

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

12

Tuesday, February 8th 2011, 11:57pm

Hi

i just made / changed this plugin that the text is changeable in xml.

onstart="text();"


and

Source code

1
2
3
4
5
6
<plugin name="text" url="text2.swf"  keep="true" align="lefttop" x="10" y="10" scale="1"  zorder="100"/>

<action name="text">
		set($text_1, I Looooooove krpano... you too?);

	</action>



hope it helps

Tuur ;-)
Tuur has attached the following file:
  • text2.zip (10.97 kB - 113 times downloaded - latest: Sep 17th 2023, 2:56pm)

Tuur

Sage

Posts: 3,825

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

13

Wednesday, February 9th 2011, 12:55am

One question..


strange behaviour fade out

This works

Source code

1
2
3
4
5
<events onxmlcomplete="closetext();" />

<action name="closetext">
delayedcall(20, removeplugin(text););
	</action>



this not:

Source code

1
2
3
4
5
<events onxmlcomplete="closetext();" />

<action name="closetext">
delayedcall(20, tween(plugin[text].alpha,0,1););
	</action>


like to tween the pluhg alpha 0 before remove but tween doesn't work
*confused*

Tuur *thumbsup*

14

Wednesday, February 9th 2011, 5:17pm

Hi,

the Flashplayer can't change the alpha of a text by default,

but there is a trick:

the setting - blendmode="layer"

will force the flashplayer to convert the text internally to a bitmap,
and there the alpha can be applied,

best regards,
Klaus

Tuur

Sage

Posts: 3,825

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

16

Thursday, February 10th 2011, 1:36pm

GREATS Tuur ! ! !

Thank's a lot *thumbsup* *thumbsup*

17

Tuesday, March 1st 2011, 1:56pm

I knew how to change the text in flash *g* , acturally, I don't know how to use flash *rolleyes*

open the source fla file, focus on the time-line panel, chose the layer1 or layer2, then open pree F9 to open the "action panel", now u can see the action script. But I dont know how change the font

now u know how to do,just change the text as you want
"I have a dream, I wish have a peace world!" *love*

Tuur

Sage

Posts: 3,825

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

18

Tuesday, March 1st 2011, 5:04pm

just click on the text area on the stage..

then you can see in the panel what th efont is and change that.

Tuur *thumbsup*

19

Wednesday, March 2nd 2011, 5:25am

Thanks, Tuur
I got it from your suggestion *thumbsup*

Tuur

Sage

Posts: 3,825

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

20

Wednesday, March 30th 2011, 2:24pm

Hi,
Is there an , XML , way to make à textmachine ?
That works on iPhone / pad..
So that THE NeXT syllable is coming like 0.15 seconds after THE previous one.
And Also get that with variables in textfield on mobile devices??

Thanx
Tuur *thumbsup*