![]() |
|
#1
|
|||
|
|||
|
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! |
|
#2
|
||||
|
||||
|
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 |
|
#3
|
|||
|
|||
![]() thanks! Last edited by neither; 11-20-2007 at 02:00 AM. |
|
#4
|
|||
|
|||
|
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"> |
|
#5
|
||||
|
||||
|
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. |
|
#6
|
|||
|
|||
|
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);
|
|
#7
|
|||
|
|||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | |
|
|