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, 23. Februar 2010, 02:36

email form continue: Help!

I need help getting this plugin to work. Loading it in to KRpano is easy. getting it to work in krpano is not. Here follows the code I have sofar:


////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

// - should be in the same folder or in the class path
import krpano_as3_interface;

var krpano:krpano_as3_interface = 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;
}

/////////////////////////////////////////////////////////////////////////////////

// Send btn button

this.true_btn.addEventListener(MouseEvent.CLICK, btn_clicked);
this.true_btn.useHandCursor = true;


function btn_clicked(mouseevent:MouseEvent):void
{
form.loadVariables("email.php", "POST");
}


I know the button code is wrong, Can anybody point me in the right direction?

Please help! Anyone....

Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »viewinz« (23. Februar 2010, 03:06)


2

Dienstag, 23. Februar 2010, 13:14

Just use a seperate SWF contact form - I suggest

This one

this one

this one


Other things I have got working in KRpano are -

Thumbnail scroller

Stats Counter

Video player

bulp

Fortgeschrittener

Beiträge: 390

Wohnort: Malaysia

  • Nachricht senden

3

Mittwoch, 24. Februar 2010, 13:55

JB.. i wonder the script for active den that you purchase is hiden writen ( cant edit / .as ) or can freely edit or embed krpano script?

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

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

  • Nachricht senden

4

Mittwoch, 24. Februar 2010, 18:28

well this should work but that is not what you want i think..

instead of this:

form.loadVariables("email.php", "POST");

write:

krpano.call("openurl(mailto:virtualtuur@gmail.com,_self)");

...
that should work doesn't it?

but you want that form...
*confused*



Tuur

milotimbol

Fortgeschrittener

Beiträge: 242

Wohnort: Philippines

Beruf: Software Developer

  • Nachricht senden

5

Samstag, 27. Februar 2010, 00:09

JB,

Do you have samples of those plugins in action? I'd love to see them if you have them available online.

thanks,
Milo

Zephyr

Profi

Beiträge: 1 003

Wohnort: Netherlands

Beruf: Web developer

  • Nachricht senden

6

Sonntag, 28. Februar 2010, 17:32

Here is an awesome emailform :)
http://www.scotflash.co.uk/blog/?tag=email-form-as3

Remember: Input fields don't work if krpano is in fullscreen mode. A security feature of flash 9 (or was it 10) disabled keyboard input when in Fullscreen mode. The only work around is a onscreen keyboard (where the user basicly clicks the letters).

The only thing you need to add is a button that closes this app. It can be in this flash file, or you make an image plugin that closes the email form (just put the zorder 1 above the other and add onclick="removeplugin(emailform)")

7

Dienstag, 16. März 2010, 09:45


Zephyr

Profi

Beiträge: 1 003

Wohnort: Netherlands

Beruf: Web developer

  • Nachricht senden

8

Donnerstag, 18. März 2010, 16:03

Glad it worked for you :)