View Full Version : Controlling image and hotspot loading in actionscript
jsimpson
06-08-2009, 07:44 AM
I'm having trouble looking through the documentation to find a method of changing an image or hotspot at runtime. What I'm looking to do is load the pano.swf into another flash file, and then load all nodes and hotspots and bypass the loading function in the panorama player.
Attempting to do something like the following: (Is there an AS tag here?)
var panoPlayer:LoaderInfo = loader.loaderInfo;
panoPlayer.image_r = node01_r; // already loaded image
panoPlayer.image_f = node01_f; // already loaded image
I'm not sure if I am just overlooking the files, but are we not given the source for the panorama player? If not is there a way to request it, I was under the impression that is what we were purchasing, not a pre-compiled swf.
Thanks for any thoughts or input.
Trausti Hraunfjord
06-08-2009, 03:16 PM
All the plugins in FPP are available as .fla except for the following:
pano.swf
hotspots.swf
movDecoder.swf
cylConverter.swf
The source for those is not and will not become available for us, according to Denis. Reason being that these are the corner stones of FPP, and giving those free, would enable people to know the inner workings, and they could create a product similar to FPP, so it is of course not something Denis will do.
jsimpson
06-08-2009, 03:55 PM
After I posted I had gone back through the documentation and found one line in the faq that mentioned the downloadables were .swf files but it's still kind of disappointing. Most of the packages I've purchased such as TweenLite by Jack Doyle and specific galleries through flashden have all had sourcecode. There's nothing wrong with not wanting to post your source and it makes sense, it's primarily my fault because I assumed... and you know what they say about assuming something.
If we can't see the source, more documentation on what the public variables and methods of each class are would be helpful for extending the classes. I'm currently having to use MonsterDebugger to track down variables, but then they're not explained. I guess for future release I'd love to see some ASDocs that explain more of what is happening under the hood, it would allow developers to generate a wider range of pluggins and utilities that would benefit FPP overall and extend the range of the consumer base.
Just a note, my first two posts here have been critical, but I'm not unhappy with FPP it's just a bit different than I expected.
Trausti Hraunfjord
06-08-2009, 04:27 PM
I agree ... and I'm sure everyone else agrees too... that better documentation of what's under the hood would be very appreciated.
You can always contact Denis by email if you have specific questions for functionality, and to the best of my knowledge, he responds to every mail he gets.
LepLep
06-08-2009, 06:10 PM
trying to modify source code is against your sale agreement with Denis,
but you can try open source panosalado
where you are at driver seat,
instead of trying to look inside the car thru (dark) glass
jsimpson
06-08-2009, 08:02 PM
LepLep, I would agree with you if I was having to alter the provided files in order to find out information I'm gathering through the debugger. I'm not attempting to decompile or alter his original source, using the debugger simply gives a list of variables that are available. I still don't have the ability to extend his files other than attempting to change variables and I don't consider that a breech of the agreement.
If the variables are cast as public than by using them I am not, in any way, modifying his code. Also the specific debugger I mentioned gets its information through functions built into the free Flex framework that amounts to little more than a deep trace of each object and it's properties.
Edit: The only things I'm trying to do is control image loading and the order in which that happens
vBulletin® v3.7.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.