View Full Version : You wanna talk to the pano viewer?
allSaints
04-26-2009, 11:22 AM
Hi,
I'm not sure whether there are lots of plugins like this, but I thought it might be useful to be able to display a simple dialog box, where you can prompt the user with a question and get an answer back.
http://wirestam.com/img/dialog.jpg
You can of course set the following properties:
text message
button texts
button commands
color
font...
You are welcome to check it out and download it from my plugin page (http://wirestam.com/panos/Flash/plugins/).
In my test page I display a dialog box at pano start and when you do a mouseover on the two buttons on the upper left.
Regards,
Tommy
LepLep
04-26-2009, 11:44 AM
next good plugin!
i think Denis should give you at least part-time job ;)
christophe
04-26-2009, 02:02 PM
Tommy, i am far from my home but i connected from a friend's house to thank you for this new plugin. I will try it asap.
Congratulation for your imagination and realisation.
Regards
Christophe
birdseye
04-26-2009, 06:16 PM
Wow Tommy, another great plugin. Thank you for all your effort!
Trausti Hraunfjord
04-26-2009, 07:00 PM
Thanks Tommy! Another wide open door leading to new possibilities.
Thanks again!
allSaints
05-03-2009, 09:17 PM
I have made an update to this plugin.
I have added the missing keyboard support for the Enter and Escape keys. Of course it doesn't work when going fullscreen, but I guess there is nothing to do about that.
In Flash Player 10 you can at least capture Tab, Spacebar, and the (up, down, left, right) arrow keys.
Tommy
christophe
05-03-2009, 09:19 PM
;) thank you Tommy !
Astroman
05-05-2009, 03:29 PM
Thanks Tommy!!! :D
www.bodensee360.de
05-07-2009, 10:27 AM
i dont know if it is depending on my less sleep or somthing else,
but i donts see what im doing wrong.
http://www.zooming.de/demo/siemens/demo-1/Projekt_2009_05_07_v02.htm
I want the "Yes" Button on the left and the right one should be a "No".
But it doesnt show it...also textBold=1 does nothing.
<global onStart="hide_lageplan_gruppe();promptFull();"
promptFull="
external.dialog.button1=YES-TEST;
external.dialog.button2=NO-TEST;
external.dialog.text=Do you want to go fullscreen? It really looks wonderful! You can get back with "ESC" Button or toggle the view inside the navigation;
external.dialog.command2=pano.fullscreen(-);
external.dialog.maxWidth=350;
external.dialog.bgColor=#FFFFFF;
external.dialog.visible=1;
external.dialog.textBold=1;
"
I dont have a <dialog> or <saved> section in my code...
Do i need it ?
Is possible to set the default button to the left side ?
thanks
Michael
allSaints
05-07-2009, 12:50 PM
Hi Michael,
well, maybe we both need some sleep...
1. You have to make all settings for the dialog box before you make it visible. That's why it doesn't show bold text. It will, however, show the text in bold the next time you display the box.
2. It seems like setting the button texts on the fly doesn't work as intended any more. It does work when you set it up inside the <dialog> tag. I will fix that - and I'm glad I have skilled people like you out there for testing my plugins :).
3. I think you have a valid point in that the left button ought to be the default button. I will either change it or include a choice.
4. No, you don't need the <dialog> tag. Everything is initialized with default values, but the text is empty so the autosizing algoritm makes it look rather silly. The <saved> tag is just a tag I use to save commands in - it is ignored by FPP.
I'll be back!
Tommy
allSaints
05-07-2009, 06:35 PM
OK then,
I have uploaded a new version of the plugin with the following changes:
Bug in dynamic setting of button labels fixed.
Default button changed from right to left button.
Button width more flexible.
Thanks Michael for trying it out - hopefully it works a little bit better now...
Tommy
www.bodensee360.de
05-08-2009, 10:39 AM
Hello Tommy,
it works good now...as expected.
Just one last Idea, i dont need it now, but could be useful for future uses.
A line-break in Text like /n
or the possibility to add HTML Code, so that we can integrade Images.
With this we could build assistents (like the thousends in Vista "would you really like to..." lol)
What i really miss in FPP: the possibility to use conditions like
"If...else...end if"
or
select case
case xxx
do this
case yyy
do that
end select
I thought when i see dialog.swf, ummmh...a "IF" Stucture, great.
Or i really should start programming AS.
In my tour, biggest problem was to determine "in which panoram i am" and then to show a spot or not.
BTW: can i use the clock.swf ?
Michael
allSaints
05-08-2009, 01:13 PM
Michael,
I have a vague memory of reading about the newline character in TextFields and that I for some reason have skipped supporting them, but I have to get back on that one.
Of course we all miss the if-else-endif and other kind of logic in the XML files, but somewhere on this forum I read a post about that, and that Denis had stated he will never implement that. And I can understand that. I have myself developed a template language that we have used for years at the company where I work, and I can assure you - it's not a trivial undertaking.
Sure you can use the clock swf. I have downloaded it myself as a public file. I know how to make these clock plugins, but I didn't have a usable image of our own wall clock.
Tommy
www.bodensee360.de
05-08-2009, 03:27 PM
Hello Thommy,
thanks for support.
newline character could be good when its not very difficult to implement.
I'm very happy with that what you have done already.
(Next time i will check out that Google Map Plugin)
Too bad its not easy to implement conditions.
But i can imagine that this would be a hard thing.
Trevlig Helg - Have a nice weekend
Michael
allSaints
05-08-2009, 06:09 PM
Michael,
I'm here to please... :)
And I have uploaded a new version that supports newlines (\r or \n) in the promp text.
You can also specify text alignment: left, center or right.
You are welcome to try it here (http://wirestam.com/panos/Flash/plugins/).
Tommy
AxeCrazy
05-12-2009, 10:24 PM
Haven't been here for a while and al sorts of cool plugins popup :D
great work.
Did something simular, but a had a lot of drifting of the hotspot, since i loaded a external transparent png to visualize inside the pano. This image had to be center aligned, so the position of the image in the pano drifted, since it was configured topleft aligned or so i guess. i'll look at you code to see if i can learn where the action is :D
allSaints
05-12-2009, 10:28 PM
You are welcome AxeCrazy! :)
Tommy
vBulletin® v3.7.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.