Forums  

Go Back   Forums > Talk > General FPP Discussion

Reply
 
Thread Tools Display Modes
  #1  
Old 11-19-2007, 08:35 PM
chrismale chrismale is offline
Junior Member
 
Join Date: Nov 2007
Posts: 1
Downloads: 0
Uploads: 0
Default control panorama when loaded into other .swf

Hey out there. After reading dozens of source files from other users and performing a lot of forum searches, i got no other possibility then starting a new thread. I dearly need to know about some parameters to make a presentation possible, which is about:

I got 20 panoramas of a walk, each one taken another meter along that walk, so that we could blend them and gain a kind of 3d-walk-experience. Problem is, the panorama-thing is documented in great detail, except when it comes to intern parameters.

* I found out about how to get current tilt and pan, which is essential to go to the next panorama. I could not find out how to:

* steer the panorama (assign tild and pan and zoom) via code (like: myPanorama.pano.tilt = 10 ???)

* how to get a feedback over the loadingstatus, like a listener or something (myPanorama.pano.addListener(loadingDone) or myPanorama.pano.getProcess())

ANYBODY HELP ME, PLEASE!
Reply With Quote
  #2  
Old 11-19-2007, 10:12 PM
zleifr's Avatar
zleifr zleifr is offline
Senior Member
 
Join Date: May 2007
Posts: 609
Downloads: 0
Uploads: 0
Default

Steer the panorama: I assume you know how to get to the hotspots object in a plugin (if not check the plugin api cheatsheet). Use hotspots.execute(command)
where the command can be any single command, like pano.pan=... or it can be a function as defined in the xml

Feedback of loading status: look at glassMeter.fla. It will give you all the info you need to get loading status. I assume again that you know how to get the pano object (see api cheatsheet thread if not): These would be the relevant properties:
pano.bytesLoaded
pano.bytesTotal
pano.percentLoaded
pano.parsed
pano.loaderState

Also you can use trace( describeType(obj) ); to get the public properties and methods thereof output to the flashlog.txt file, which can be very, very helpful when trying to work with the undocumented api.

Zephyr
Reply With Quote
  #3  
Old 11-20-2007, 01:58 AM
neither neither is offline
Member
 
Join Date: Oct 2007
Posts: 31
Downloads: 0
Uploads: 0
Exclamation pano is the world,show it !!



thanks!

Last edited by neither; 11-20-2007 at 02:00 AM.
Reply With Quote
  #4  
Old 11-20-2007, 10:52 AM
deadevolution deadevolution is offline
Junior Member
 
Join Date: Nov 2007
Posts: 9
Downloads: 0
Uploads: 0
Default

thanks zleifr,

is it possible to load more than one external interface?, if it is; how can i declare it in global attiribute?

i tried these but they dint work

<global ExternalInterfaceID="external1" ExternalInterfaceID="external2">

and

<global ExternalInterfaceID="external1, external2">
Reply With Quote
  #5  
Old 11-20-2007, 01:55 PM
zleifr's Avatar
zleifr zleifr is offline
Senior Member
 
Join Date: May 2007
Posts: 609
Downloads: 0
Uploads: 0
Default

deadevolution: that's kinda sorta of topic. have no fear of starting a new post. it will help other users find answers, as they won't be looking in here for anything related to externalInterface. But, anyway... to answer the question: I don't know for certain, but I am going to guess that the answer is no. Two reasons: 1). ID usually refers to something of which there is only one, and if there are two identical things with the same id problems ensue (USUALLY) 2). and more importantly, I can't think of why you would actually need two externalInterfaces. You will have to write the javascript in the html that will be talking to fpp, and so there is no reason I can see to NEED two different IDs.

So, the question really is why would you want that, and if there is a good reason, I'm sure some way can be found to make it work, OR, better yet, just try it and let us know what happens.
Reply With Quote
  #6  
Old 11-20-2007, 11:00 PM
viking0 viking0 is offline
Junior Member
 
Join Date: Oct 2007
Posts: 24
Downloads: 0
Uploads: 0
Default

hi try this for "loadingdone"

Code:
function displayprogress(e:Event=null) {
  trace(panorama.pano.loadersState[0])	 
  if (panorama.pano.loadersState[0]=="100%") {
     this.removeEventListener(Event.ENTER_FRAME, displayprogress);	 
  }		  
}
this.addEventListener(Event.ENTER_FRAME, displayprogress);
Reply With Quote
  #7  
Old 12-07-2007, 12:13 PM
deadevolution deadevolution is offline
Junior Member
 
Join Date: Nov 2007
Posts: 9
Downloads: 0
Uploads: 0
Default

zleifr, thnx again for your response but i'm a lil late to reply.

infact my questions can look like a little weird that's because i dont have much time to really go deep in fpp and find more clever solutions. when i have the time i will try to find and share them with you all.

p.s : btw i dont want to use js much because i cant use them in stand-alone panoramas
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 04:43 PM.


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