View Full Version : embedPano.swf fullscreen???
popunonkok
09-09-2007, 01:28 PM
Is there a way to embed a pano in another swf so that it fills upp the entire swf. So that I can link to the embedPano.swf and the embedded pano shows over the enrire explorer window like it would if I link to pano.swf???
Please tell me that its possible... =) I want to make some layer ontop on the pano, meny and other stuff...
MVH Peter F
GThanos
09-09-2007, 01:50 PM
I have exactly the same questions. In a few words: can we use the FPP as a placeholder and add swf files in order to make a site? for example to "fill" any of the cubes with a site category (left=about, front=menu, right=page1, top=page2 etc) and thus make a cubical web site?
cheers
George
testure
09-09-2007, 03:38 PM
Hi, are you using hotspots together with embed ?
popunonkok
09-09-2007, 06:36 PM
Well no, not at this moment but that souldent make any difference, would it???
I hope not...
beamer
10-10-2007, 04:59 AM
Is there a way to embed a pano in another swf so that it fills upp the entire swf. So that I can link to the embedPano.swf and the embedded pano shows over the enrire explorer window like it would if I link to pano.swf???
Please tell me that its possible... =) I want to make some layer ontop on the pano, meny and other stuff...
MVH Peter F
Hi There,
Just want to add a note of interest to the same topic.
I would love to see the embedPano.swf work so that you can scale it freely & jump into fullscreen mode with the embeded panorama resizing to fullscreen as well.
Hope to hear from sombody.
Amazing job, by the way, Denis!
Thanks. Ciao.
zaroundus
12-04-2007, 10:59 PM
I'm having a problem with fullscreen display in a standalone .swf. I have embedded the FPP into my own Flash application that runs standalone. (Not in a browser.) When I click the fullscreen button (calling: fullscreen(-)) my entire Flash application goes fullscreen instead of the pano player itself. Anyone have any ideas?
jaaaab
01-23-2008, 02:33 PM
Hi,
I got the same problem as zaroundus: how to embed a pano with FS button that makes only the pano goes FS and not the whole swf?
Hope someone can help...
Thanks!
zleifr
01-23-2008, 03:13 PM
Hi jaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab, and everyone else.
(sorry about all those a's jaaaab, I just couldn't resist). This should work to solve your problem:
stage.addEventListener(Event.FULLSCREEN, fshandler);
function fshandler (event:Event) {
panorama.setArea(0,0,stage.stageWidth,stage.stageH eight);
}
So all that is doing is catching when the .swf goes fullscreen mode, and enlarging the area the pano is displaying into to the size of the stage. Obviously with that code you will need to handle when the display state goes back to normal. I don't know if that event listener will catch the return to normal or not, but a quick look around in the flash docs should yield the answer. And the only other thing you might have to worry about is, when you enlarge the pano, other things you had on the stage might display over it, so you might need to change their visibility, or adjust the location of the pano in the displaylist.
Zephyr
jaaaab
01-23-2008, 03:37 PM
hi Z ;)
thanks for tip.
i tried it but doesn't seemto work, nothing happens on FSbutton clic:
here's the code, any idea?
var panorama:MovieClip;
var loader:Loader = new Loader();
loader.load(new URLRequest("fichiers/pano.swf"));
addChild(loader);
loader.contentLoaderInfo.addEventListener(Event.CO MPLETE, loadComplete);
function loadComplete (e:Event) {
swapChildren(loader, border);
panorama = loader.content;
panorama.setArea(50,50,700,400);
panorama.loadPanorama("pano.swf?xml_file=panorama.xml");
stage.addEventListener(Event.FULLSCREEN, myfshandler);
}
function myfshandler (event:Event) {
panorama.setArea(0,0,stage.stageWidth,stage.stageH eight);
}
jaaaab
01-23-2008, 03:41 PM
Ups, sorry that's working out of Flash environnement ;)
BUT, the panorama is way to large :/ seems that stageWidth and stageHeight are not corresponding....
Strange!
jaaaab
01-25-2008, 03:00 PM
Here is the solution provided by Denis:
embedPano example with FS support for only the embeded panorama :)
++
cheathamlane
04-30-2008, 09:37 PM
Here is the solution provided by Denis:
embedPano example with FS support for only the embeded panorama :)
Hmmm... using this example as provided by Denis, I'm experiencing crashing in IE when going to fullscreen and loading the new panorama. Can anyone else confirm this (or is it just me)?
Thanks in advance for taking a look...
http://www.cheathamlane.net/tests/manifesto/
Cheers,
Patrick
[edit: I'm using the example as provided by Denis, to take _just_ the pano fullscreen. What I am also doing is loading a hi-res version of the same panorama, at the same time as going fullscreen. I imagine this is what's causing issues... but only in IE?]
Trausti Hraunfjord
05-01-2008, 12:08 AM
No crashing on this end.
cheathamlane
05-01-2008, 12:30 AM
Thanks Tuddi:
* did you see the load progress indicator? you should have, as it was loading a new pano
* what version OS and IE & Flash are you using?
Cheers,
Trausti Hraunfjord
05-01-2008, 12:49 AM
Yes, the default loader was visible (made me wonder what was coming :) )
Flash version 9,0,124,0
IE version 7.0.5730.13
Windows XP Home Edition with SP3, v.3311
cheathamlane
05-01-2008, 01:42 AM
Yes, the default loader was visible (made me wonder what was coming :) )
:cool:
Ha, nothing more than a better resolution for fullscreen... The initial ones, most are around <800KB, and one is ~300KB. I'll need to recompress all the small ones so they clock in around 300KB.
Now that my tests are done, I'll also need to go back and shoot some nicer ones at dusk.
Flash version 9,0,124,0
IE version 7.0.5730.13
Windows XP Home Edition with SP3, v.3311
Strange -- except for XP Pro, this is the same setup as me.
Thanks for checking!
Trausti Hraunfjord
05-01-2008, 03:37 PM
I was actually half-expecting a crash that would require a reboot or something along those lines, since I checked with the laptop, which is not geared up for anything more than checking forum postings and reading email (exaggerating a little here, but often feels like that), and it's also the only puter I have without XP Pro.
cheathamlane
05-01-2008, 05:31 PM
Oh, you have one of those laptops too? ;)
http://www.cheathamlane.net/tests/manifesto/
I've updated it a little bit, and it is running more smoothly. Now it won't always reload the large panorama when going fullscreen (if you've already loaded it and it is "current").
Also, you can zoom-view some photo thumbnails when in fullscreen. I used FPP/XML functions to handle the photo display, but am thinking it would have been just as efficient to handle them from Flash, since it's already in embedPano mode.
sharadmahajan
10-20-2008, 05:27 AM
Thanks Friends for the solution of embedded swf fullscreen.
andrew22222
10-28-2008, 02:59 AM
Something I thought would be easy turned out not to be :-(
Normally I use FPP with an external xml sheet holding the data for the plugins, dropdown list, hotspots etc. Now I've set up a flash file with a design and would like to load the FPP viewer into a specific area. Reading this thread, it seems to be what others are doing with the embedPanoWithFullscreen.zip
I've opened the zipped FLA and looked at the workings. Mine would be similar with the 'Border' area to load the panorama but I have no need for any buttons on the stage as they are already loaded within FPP as hotspots. One of these loaded hotspot buttons is required to make just the panorama go full screen.
Could anyone please advise me how to link to the external XML file so I don't have to work with all the actionscript 3 in the demo FLA? I noticed a note saying // you can store XML's for panoramas directly in code: but I obviously would like the external option. My xml file holds the data to load 4 panoramas via the dropdown list.
The folder structure in relation to my newly created swf would be
'data.xml' The XML file is in the same folder as the new swf and then the paths below
../file_images (for hotspot button png's)
../file_images (for glassMeter.swf and all the other plugins.
Can't beleive I actually thought it was going to be easy.
Thanks,
Andrew
cheathamlane
10-28-2008, 01:38 PM
Hi Andrew:
If I read you correctly, you just want to:
* Embed your FPP presentation in a 'container' SWF so you can position it within your SWF's design, and
* Continue to use external XML for your FPP presentation, as usual
?
If so, then the tutorial linked here (http://flashpanos.com/tutorials/patrick/embedding-fpp-panoramas-another-flash-container) is going to be a bit of overkill -- but, look at the "loadComplete" function, which shows loading a pano with its own XML. For your purposes, just ignore all the code for the buttons inside the container SWF.
Cheers,
Patrick
andrew22222
10-29-2008, 02:09 AM
Thanks Patrick,
There's certainly no shortage of info at that link! I'll have a good look through as see what I can create from it.
I purchased one of your plugins the other day. (Extensible Load Meter) Made things a lot easier for me ;-)
Andrew
Godomac37
11-04-2008, 09:11 PM
Hi Patrick,
I am not very familiar with xml and flash coding as well. Would you mind putting together some kind of "simple" example on how to embed the FPP in a container SWF? You have written in your tutorial that it's possible to use xml inside the SWF as well. I would love to see a simple tutorial on that if possible as well. Really just a simple one :-) One to start learning from.
I would really aprechiate your help.
Thanks in advance, Guido
cheathamlane
11-04-2008, 09:52 PM
Hi Guido:
With your FPP files, you should have Denis's original embedPano.fla file... In there he has the exact way to use XML inside the SWF. That will be the simplest way to see how it works!
Cheers,
Patrick
cheathamlane
11-04-2008, 09:58 PM
Hey there:
I've had a report that the embed pano 101 (files and post at flashpanos.com (http://flashpanos.com/tutorials/patrick/embedding-fpp-panoramas-another-flash-container)) doesn't work with the new FPP v2.3.
I'm on a couple different projects, so won't have any time in the foreseeable future to find out what is new in FPP v2.3 that is causing the embed pano style presentation to not work.
If there's an enterprising soul out here who wants to take a look, be my guest! Keep us posted!
Cheers,
Patrick
here's the errors getting returned:
CubePanorama v2.3 loaded.
Load XML: blah/blah.xml
Load layer 1: files/hotspots.swf
Load layer 5: files/glassMeter.swf
Load layer 10: files/autorotator.swf
ReferenceError: Error #1065: Variable ContextMenuClipboardItems is not defined.
at flash.ui::ContextMenu/initLinkAndClipboardProperties()
at flash.ui::ContextMenu()
at PanoController/createContextMenu()
at PanoController/initHandler()
at PanoController/initFlash10()
Autorotator v2.2 successfully loaded.
Hotspots v2.2 successfully loaded.
GlassMeter v1.1 successfully loaded.
Load 0: blah/blah_f.jpg
Load 1: blah/blah_r.jpg
Load 2: blah/blah_b.jpg
Load 3: blah/blah_l.jpg
Load 4: blah/blah_u.jpg
Load 5: blah/blah_d.jpg
TypeError: Error #1006: value is not a function.
at CubePanorama/redraw()
at CubePanorama/loadImages()
at PanoController/loadImages()
at PanoController/loadComplete()
PANO bytesLoaded?: 1413418
PANO bytesTotal?: 1413418
PANO percentLoaded?: 100
TypeError: Error #1006: value is not a function.
at CubePanorama/redraw()
at CubePanorama/loadContent()
at CubePanorama/loadComplete()
TypeError: Error #1006: value is not a function.
at CubePanorama/redraw()
at CubePanorama/loadContent()
at CubePanorama/loadComplete()
TypeError: Error #1006: value is not a function.
at CubePanorama/redraw()
at CubePanorama/loadContent()
at CubePanorama/loadComplete()
TypeError: Error #1006: value is not a function.
at CubePanorama/redraw()
at CubePanorama/loadContent()
at CubePanorama/loadComplete()
TypeError: Error #1006: value is not a function.
at CubePanorama/redraw()
at CubePanorama/loadContent()
at CubePanorama/loadComplete()
TypeError: Error #1006: value is not a function.
at CubePanorama/redraw()
at CubePanorama/loadContent()
at CubePanorama/loadComplete()
nidrig
11-05-2008, 05:31 AM
hi,
According to Denis, you need two things to make embeded v2.3 working:
- flash cs4
- give more time to fpp to initialize.
His original post from his google group:
You can avoid these problems using 2 tricks.
Add additional pause before panorama calls (the player needs more time
for initialization in Flash 10):
loader.contentLoaderInfo.addEventListener(Event.CO MPLETE,
loadComplete);
function loadComplete (e:Event) {
var t:Timer = new Timer(500,1);
t.addEventListener(TimerEvent.TIMER, initComplete);
t.start()
}
function initComplete (e:Event) {
...
}
And set Flash setting to "Flash Player 10" (you need Flash CS4).
New embedPano.fla uploaded to "Files".
If I will find the way how to use embedded player 2.3 in Flash CS3, I
will publish it.
Thanks,
Denis.
As I have no plan to upgrade to cs4 in the near future, I'm using a regx editor to change the version on the player manually.
Mostly, it works.
Yet, I'm still having a lot of mistakes in the debugger, from time to time. It doesn't prevent the pano from playing correctly, though.
It would be interesting to have the feedback from someone using flash cs4.
cu
Royercas
11-05-2008, 06:15 PM
Hey Patrick / Denis
Works perfect now. The panos run much smooter, great!!!!!!
For those who wants to apply this update to patrick's embedpano, just follow and apply the "2 tricks solution" posted.
Thank you very much guys!
guysmiley
07-23-2010, 06:57 PM
hi zleifr
you are a legend
thank you so much
vBulletin® v3.7.1, Copyright ©2000-2010, Jelsoft Enterprises Ltd.