Forums  

Go Back   Forums > Talk > General FPP Discussion

Reply
 
Thread Tools Display Modes
  #1  
Old 06-20-2011, 07:59 AM
JaRo JaRo is offline
Junior Member
 
Join Date: Sep 2009
Location: Głog?w
Posts: 22
Downloads: 0
Uploads: 0
Default Custom swf & loadPano

Hi there,

I would like to know how can I call loadPano from custom swf.

Do I have to include something?
Reply With Quote
  #2  
Old 07-21-2011, 08:05 PM
Scott Witte's Avatar
Scott Witte Scott Witte is offline
Senior Member
 
Join Date: Sep 2007
Location: Milwaukee, WI USA
Posts: 593
Downloads: 0
Uploads: 0
Default

Search the forum for "API Cheatsheet" (no quotes) for this and many other secrets about the Flash API.

Briefly:

Code:
var newPano:String = [assemble the panoName and parameters into this string]

hotspots.execute("loadPano(panoName="+newPano+"); ");
__________________
Scott
Tour de Force 360VR
Scott Witte Photography
----------------------
Auto Quality Plugin: Guarantee the best FPP experience possible for every viewer on every computer.
Motion Zoom Transition Plugin: Move from Node to Node
Reply With Quote
  #3  
Old 12-09-2011, 08:38 AM
JaRo JaRo is offline
Junior Member
 
Join Date: Sep 2009
Location: Głog?w
Posts: 22
Downloads: 0
Uploads: 0
Default

Hi, can someone post a complete AS3 code (or .fla) of simple button that loads panorama after click?

I would be very grateful.

Thanks.
Reply With Quote
  #4  
Old 12-09-2011, 09:43 PM
Scott Witte's Avatar
Scott Witte Scott Witte is offline
Senior Member
 
Join Date: Sep 2007
Location: Milwaukee, WI USA
Posts: 593
Downloads: 0
Uploads: 0
Default

JaRo,

I'm not sure how experienced you are with AS3 programming. It is more than just the code for a button, of course. Take a look at Zephyr's API Cheatsheet to begin with. That is the framework for any plugin you might create. A couple messages in Zephyr gave the code for a "smart hotspot" vs. a plugin.

Take a look at Tommy's plugin site. Among the wealth of excellent plugins you are bound to find several that incorporate something similar to what you want. Most likely Tommy will have the source code available for download. You can use that as a guide, including creating a button that will load a pano.
__________________
Scott
Tour de Force 360VR
Scott Witte Photography
----------------------
Auto Quality Plugin: Guarantee the best FPP experience possible for every viewer on every computer.
Motion Zoom Transition Plugin: Move from Node to Node
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 06:02 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.