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.

Yomas

Intermediate

  • "Yomas" started this thread

Posts: 190

Location: Anglet, France

  • Send private message

1

Thursday, June 9th 2011, 1:56am

Drag and drop plugin ?

Hi all ^^
I'm just asking me the question if I could be possible to make a drag and drop plugin
without AS3 coding...
That would be very usefull but as I can easily think of a onclick move plugin the drag and drop
stuff seems not to be possible without AS3 :'(
Maybe making a light AS3 swf drag and drop button, and attach to it another plugin by x and y coordinates
would be more customizable and flexible ?
If someone has an idea or has arleady make it, that would be great to share ^^
Thanks in advance.
Regards.
My website: www.eboovisite.com, See me also on www.Viewat.com, Facebook and Twitter

Yomas

Intermediate

  • "Yomas" started this thread

Posts: 190

Location: Anglet, France

  • Send private message

2

Thursday, June 9th 2011, 2:08am

Maybe making a light AS3 swf drag and drop button, and attach to it another plugin by x and y coordinates
would be more customizable and flexible ?


Ok that was stupid cause we need to declare a container for the swf button wich is not possible to just add it on krpano stage ^^
Exept if we overlay the pano 100% with a transparent mask containing the button, but this way it looses it sense ^^
Ideas are welcomed !!
My website: www.eboovisite.com, See me also on www.Viewat.com, Facebook and Twitter

Zephyr

Professional

Posts: 969

Location: Netherlands

Occupation: Web developer

  • Send private message

3

Thursday, June 9th 2011, 1:17pm

I've made something like this, but with a hotspot, moving a plugin should even be simpler.

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
<plugin 
ondown="set(dragging,true); dragplugin();"
onup="set(dragging,false);"
onhover="showtext(click and hold to drag the plugin)"
/>
<action name="dragplugin">
  if(dragging, 
		set(x, get(mouse.x));
                set(y, get(mouse.y));
		<!-- loop it -->
		delayedcall(0,draghotspot(%1));
	);
</action>
3d childrens game using krpano Game
Minify your xml with my krpano XML Compressor
Krpano XML Parsing Error Checklist
Available for hire (krpano xml, javascript, actionscript, flash, php and ipad plugins).

4

Thursday, June 9th 2011, 1:38pm

Hi,

for dragable plugin or hotspot elements see also here:
Dragable plugins/hotspots

best regards,
Klaus

Yomas

Intermediate

  • "Yomas" started this thread

Posts: 190

Location: Anglet, France

  • Send private message

5

Friday, June 17th 2011, 2:21am

Hi both !!
Thanks for reply ^^
That is so cool, and will be very usefull !! *thumbsup*
I've was thinking of it, and Krpano made it ;-)
Thank you infinitly !!
Regards.
My website: www.eboovisite.com, See me also on www.Viewat.com, Facebook and Twitter

Yomas

Intermediate

  • "Yomas" started this thread

Posts: 190

Location: Anglet, France

  • Send private message

6

Friday, June 17th 2011, 2:24am

PS: I'm trying to help on this thread, could you give a look please ?
I've tried many ways and can't get it working *cursing*
Thanks again !!
My website: www.eboovisite.com, See me also on www.Viewat.com, Facebook and Twitter

Posts: 146

Location: London

Occupation: Photographer

  • Send private message

7

Friday, June 17th 2011, 12:16pm

hey Yomas,

Thanks soooo much for asking about my thread - its so bizaare and fustrating I have been trying so many things, but have not got there, which is why i have not got in touch sooner. I am going to ask a developer perhaps if it is posisble with a flash plugin, anyway I will contact you off list so you can see the project it is for which will be released hopefully one day soon, but you deserve to see now for all your hard efforts.

Mnay thanks again,

tom