Sie sind nicht angemeldet.

viewinz

Fortgeschrittener

  • »viewinz« ist der Autor dieses Themas

Beiträge: 145

Wohnort: Wellington, New Zealand

Beruf: Trying to build an entire walkthrough of NZ for tourists

  • Nachricht senden

1

Dienstag, 16. Februar 2010, 00:06

email form

Hi,

I've made an email form plugin that sends an email via php. Nothing is happening when you click the button, it works perfectly outside of krpano. Any ideas how to set this up for within krpano?

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
This loads the plugin:

'import krpano_as3_interface
krpano = krpano_as3_interface.getInstance();

if (krpano.get == null)
{
	// run plugin swf standalone - add dummy functions
	function dummy_get(v:String):String 
 	{ 
		//trace("get(" + v + ");");
		return("");
	}
	function dummy_set(v:String,val:String):void 
	{
		//trace("set("+v+","+val+");");
 	}
	
	function dummy_call(action:String):void 
	{
		//trace("call("+action+");");
	}
	function dummy_trace(Mode:Number, str:String):void 
	{
		trace("trace("+Mode+", "+ str + ");");
 	}
	krpano.get  = dummy_get;
	krpano.set  = dummy_set;
	krpano.call = dummy_call;
	krpano.trace = dummy_trace;
}
'

This is the button for sending email action:

"true_btn.addEventListener(MouseEvent.CLICK, ClickFunction)
 
function ClickFunction(evt:Event):void
{
krpano.set("email.php", "POST",0) //your click action
}"


This is the back btn action:

true_btn.addEventListener(MouseEvent.CLICK, ClickFunction)
 
function ClickFunction(evt:Event):void
{
krpano.set("prevFrame",0) //your click action
}

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

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

  • Nachricht senden

2

Dienstag, 16. Februar 2010, 11:04

hi,

should it not be:

Quellcode

1
2
3
4
import krpano_as3_interface;


var krpano:krpano_as3_interface = krpano_as3_interface.getInstance();


??

cheers

Tuur *thumbsup*