sprout-tourbuzz-bundle 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. data/Rakefile +51 -0
  2. data/lib/sprout/generators/project/project_generator.rb +42 -0
  3. data/lib/sprout/generators/project/templates/DefaultSkin.mxml +38 -0
  4. data/lib/sprout/generators/project/templates/Rakefile +40 -0
  5. data/lib/sprout/generators/project/templates/TourInfo.xml +114 -0
  6. data/lib/sprout/generators/project/templates/TourbuzzCore.swc +0 -0
  7. data/lib/sprout/generators/project/templates/html-template/Panorama.swf +0 -0
  8. data/lib/sprout/generators/project/templates/html-template/index.html +91 -0
  9. data/lib/sprout/generators/project/templates/html-template/www/db_images/customer/60/loadingImage.jpg +0 -0
  10. data/lib/sprout/generators/project/templates/html-template/www/db_images/customer/60/logo.jpg +0 -0
  11. data/lib/sprout/generators/project/templates/html-template/www/db_images/customer/60/photo.jpg +0 -0
  12. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/media.mp3 +0 -0
  13. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/photo_30737-100x75.jpg +0 -0
  14. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/photo_30737-1500x1000.jpg +0 -0
  15. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/photo_30737-220x165.jpg +0 -0
  16. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/photo_30737-666x500.jpg +0 -0
  17. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/photo_30738-100x75.jpg +0 -0
  18. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/photo_30738-1500x1000.jpg +0 -0
  19. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/photo_30738-220x165.jpg +0 -0
  20. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/photo_30738-666x500.jpg +0 -0
  21. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/photo_30739-100x75.jpg +0 -0
  22. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/photo_30739-1500x1000.jpg +0 -0
  23. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/photo_30739-220x165.jpg +0 -0
  24. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/photo_30739-666x500.jpg +0 -0
  25. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/photo_30740-100x75.jpg +0 -0
  26. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/photo_30740-1500x1000.jpg +0 -0
  27. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/photo_30740-220x165.jpg +0 -0
  28. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/photo_30740-666x500.jpg +0 -0
  29. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/photo_30741-100x75.jpg +0 -0
  30. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/photo_30741-1500x1000.jpg +0 -0
  31. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/photo_30741-220x165.jpg +0 -0
  32. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/photo_30741-666x500.jpg +0 -0
  33. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/photo_30742-100x75.jpg +0 -0
  34. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/photo_30742-1500x1000.jpg +0 -0
  35. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/photo_30742-220x165.jpg +0 -0
  36. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/photo_30742-666x500.jpg +0 -0
  37. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/photo_90525-100x75.jpg +0 -0
  38. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/photo_90525-1500x1000.jpg +0 -0
  39. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/photo_90525-220x165.jpg +0 -0
  40. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/photo_90525-666x500.jpg +0 -0
  41. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/siteplan.jpg +0 -0
  42. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/tour.mp3 +0 -0
  43. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/virtual_tour_11146-large.jpg +0 -0
  44. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/virtual_tour_11146-large_flash-0.jpg +0 -0
  45. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/virtual_tour_11146-large_flash-1.jpg +0 -0
  46. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/virtual_tour_11146-large_flash-2.jpg +0 -0
  47. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/virtual_tour_11146-preview.jpg +0 -0
  48. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/virtual_tour_11146-small.jpg +0 -0
  49. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/virtual_tour_11146-thumb.jpg +0 -0
  50. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/virtual_tour_11146-thumblarge.jpg +0 -0
  51. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/virtual_tour_11147-large.jpg +0 -0
  52. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/virtual_tour_11147-large_flash-0.jpg +0 -0
  53. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/virtual_tour_11147-large_flash-1.jpg +0 -0
  54. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/virtual_tour_11147-large_flash-2.jpg +0 -0
  55. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/virtual_tour_11147-preview.jpg +0 -0
  56. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/virtual_tour_11147-small.jpg +0 -0
  57. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/virtual_tour_11147-thumb.jpg +0 -0
  58. data/lib/sprout/generators/project/templates/html-template/www/db_images/tour/2166/virtual_tour_11147-thumblarge.jpg +0 -0
  59. data/lib/sprout/generators/project/templates/html-template/www/player-assets/hotspotIcons/arrow/normal.png +0 -0
  60. data/lib/sprout/generators/project/templates/html-template/www/player-assets/hotspotIcons/arrow/over.png +0 -0
  61. data/lib/sprout/generators/project/templates/html-template/www/player-assets/hotspotIcons/arrow/selected.png +0 -0
  62. data/lib/sprout/generators/project/templates/html-template/www/player-assets/hotspotIcons/stillCamera/normal.png +0 -0
  63. data/lib/sprout/generators/project/templates/html-template/www/player-assets/hotspotIcons/stillCamera/over.png +0 -0
  64. data/lib/sprout/generators/project/templates/html-template/www/player-assets/hotspotIcons/stillCamera/selected.png +0 -0
  65. data/lib/sprout/generators/project/templates/html-template/www/prototype-min.js +1 -0
  66. data/lib/sprout/generators/project/templates/html-template/www/swfmacmousewheel2.js +12 -0
  67. data/lib/sprout/generators/project/templates/html-template/www/swfobject.js +5 -0
  68. data/lib/sprout/generators/project/templates/linker_report.xml +6621 -0
  69. metadata +142 -0
@@ -0,0 +1,51 @@
1
+ # This rakefile is here entirely for the purpose of packaging up a gem
2
+ require 'rake/gempackagetask'
3
+
4
+ # Quick access to the important bits
5
+ NAME = 'sprout-tourbuzz-bundle'
6
+ SUMMARY = 'Tourbuzz skin creation tools'
7
+ GEM_VERSION = '0.2.0'
8
+ AUTHOR = 'Loren Norman'
9
+ EMAIL = 'alan@tourbuzz.net'
10
+ HOMEPAGE = 'http://tourbuzz.net'
11
+ DESCRIPTION = "Project and file generators and tools for creating custom skins for the Tourbuzz virtual tour player"
12
+ RELEASE_TYPES = ["gem"]
13
+
14
+ # Start by including most files...
15
+ PKG_LIST = FileList['[a-zA-Z]*', # all files in the root
16
+ 'lib/**/*' # all files under lib/
17
+ ]
18
+ # ...and exclude the unimportant bits
19
+ PKG_LIST.exclude('.git')
20
+ PKG_LIST.exclude('pkg')
21
+ PKG_LIST.exclude('artifacts')
22
+ # Not sure what this does.. makes the 'package' task require all the files?
23
+ PKG_LIST.each do |file|
24
+ task :package => file
25
+ end
26
+
27
+ desc "Show me what is in the file list"
28
+ task :test_pkg_list do |t|
29
+ puts PKG_LIST
30
+ end
31
+
32
+ spec = Gem::Specification.new do |s|
33
+ s.platform = Gem::Platform::RUBY
34
+ s.summary = SUMMARY
35
+ s.description = DESCRIPTION
36
+ s.name = NAME
37
+ s.version = GEM_VERSION
38
+ s.author = AUTHOR
39
+ s.email = EMAIL
40
+ s.homepage = HOMEPAGE
41
+ s.files = PKG_LIST.to_a
42
+
43
+ s.add_dependency('sprout-as3-bundle', '>= 1.0.36')
44
+ # These are dependencies of the as3 bundle, so they should be implicit
45
+ # s.add_dependency('sprout', '>= 0.7.215')
46
+ # s.add_dependency('sprout-flashplayer-bundle', '>= 10.22.0')
47
+ # s.add_dependency('sprout-asunit3-library', '>= 3.2.6')
48
+ end
49
+
50
+ Rake::GemPackageTask.new(spec) do |p|
51
+ end
@@ -0,0 +1,42 @@
1
+ require 'rake'
2
+
3
+ class ProjectGenerator < Sprout::Generator::NamedBase
4
+ def manifest
5
+ record do |m|
6
+ base = class_name
7
+ m.directory base
8
+ m.directory File.join(base, 'bin')
9
+
10
+ # Tediously create all of the directories we're about to fill up
11
+ m.directory File.join(base, 'html-template')
12
+ m.directory File.join(base, 'html-template', 'www')
13
+ m.directory File.join(base, 'html-template', 'www', 'db_images')
14
+ m.directory File.join(base, 'html-template', 'www', 'db_images', 'customer')
15
+ m.directory File.join(base, 'html-template', 'www', 'db_images', 'customer', '60')
16
+ m.directory File.join(base, 'html-template', 'www', 'db_images', 'tour')
17
+ m.directory File.join(base, 'html-template', 'www', 'db_images', 'tour', '2166')
18
+ m.directory File.join(base, 'html-template', 'www', 'player-assets')
19
+ m.directory File.join(base, 'html-template', 'www', 'player-assets', 'hotspotIcons')
20
+ m.directory File.join(base, 'html-template', 'www', 'player-assets', 'hotspotIcons', 'arrow')
21
+ m.directory File.join(base, 'html-template', 'www', 'player-assets', 'hotspotIcons', 'stillCamera')
22
+
23
+ # Copy all of the files into the directory structure we just created
24
+ abs_path = source_path('html-template') # Get the absolute path so FileList will work
25
+ FileList["#{abs_path}/**/*.*"].map do |absolute_file| # Grab all files (not directories)
26
+ absolute_file.sub("#{abs_path}", 'html-template') # Strip the absolute path back off
27
+ end.each do |file_name|
28
+ m.file file_name, File.join(base, file_name) # Copy each file
29
+ end
30
+ m.template 'TourInfo.xml', File.join(base, 'html-template', 'www', 'TourInfo.xml')
31
+
32
+ m.directory File.join(base, 'lib')
33
+ m.file 'TourBuzzCore.swc', File.join(base, 'lib', 'TourBuzzCore.swc')
34
+ m.file 'linker_report.xml', File.join(base, 'lib', 'linker_report.xml')
35
+
36
+ m.directory File.join(base, 'src')
37
+ m.template 'DefaultSkin.mxml', File.join(base, 'src', "#{project_name}Skin.mxml")
38
+
39
+ m.template 'Rakefile', File.join(base, "Rakefile")
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,38 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <skin:TourSkinClass
3
+ xmlns:mx="http://www.adobe.com/2006/mxml"
4
+ xmlns:skin="com.tourbuzz.skins.*"
5
+ width="100%"
6
+ height="100%"
7
+ >
8
+ <mx:Script><![CDATA[
9
+ // Include everything we need from Core
10
+ //import com.tourbuzz.events.*;
11
+ import com.tourbuzz.media.MediaViewer;
12
+ //import com.tourbuzz.navigation.NavigationCanvasClass;
13
+ //import com.tourbuzz.models.TourModel;
14
+ //import com.tourbuzz.navigation.models.Navigation;
15
+ //import com.tourbuzz.models.SkinModel;
16
+
17
+ public var mediaViewer:MediaViewer;
18
+
19
+ // Add your MediaViewer to the display list
20
+ override public function addMediaViewer(mv:MediaViewer):void
21
+ {
22
+ mediaViewer = mv;
23
+ mediaViewer.setStyle("rounded", true);
24
+ mediaViewerContainer.addChildAt(mediaViewer, 0);
25
+ }
26
+
27
+ ]]></mx:Script>
28
+
29
+ <mx:HBox
30
+ id="mediaViewerContainer"
31
+ horizontalAlign="center"
32
+ minWidth="{mediaViewer.minWidth}"
33
+ maxWidth="{mediaViewer.maxWidth}"
34
+ width="100%"
35
+ height="100%"
36
+ />
37
+
38
+ </skin:TourSkinClass>
@@ -0,0 +1,40 @@
1
+ # Get our Sprout magic and compilation tasks
2
+ require 'sprout'
3
+ sprout 'mxml'
4
+
5
+ # List the generated files to delete on a clobber
6
+ require 'rake/clean'
7
+ CLOBBER.include(FileList['bin/**/*'])
8
+
9
+ # Constants for use throughout the rakefile
10
+ SRC_PATH = 'src'
11
+ SKIN_NAME = "<%= project_name %>Skin"
12
+ SKIN_PATH = "#{SRC_PATH}/#{SKIN_NAME}.mxml"
13
+ HTML_PATH = 'html-template'
14
+ LIB_PATH = 'lib'
15
+ BIN_PATH = 'bin'
16
+
17
+ desc "Prepare #{BIN_PATH}"
18
+ task :prepare => :clobber do |t|
19
+ cp_r "#{HTML_PATH}/.", BIN_PATH
20
+ end
21
+
22
+ debug_output = "bin/www/player-assets/skins/#{SKIN_NAME}.swf"
23
+
24
+ mxmlc debug_output => :prepare do |t|
25
+ t.input = SKIN_PATH
26
+ t.source_path << SRC_PATH
27
+ t.source_path << LIB_PATH
28
+ t.library_path << LIB_PATH
29
+ t.load_externs = "#{LIB_PATH}/linker_report.xml"
30
+ t.use_network = false
31
+ t.debug = true
32
+
33
+ # May not need any of these?
34
+ # t.define_conditional = "CONFIG::debug,true"
35
+ # t.define_conditional << "CONFIG::flashTargetVersion,10"
36
+ # -external-library-path+=lib/pv3d-flash9.swc
37
+ # -external-library-path+=lib/ModestMapsSWC.swc
38
+ end
39
+
40
+ task :default => debug_output
@@ -0,0 +1,114 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Tour
3
+ tourId="192"
4
+ statsRecorderURL="/public/vtour/recordtourevent"
5
+ introImage="www/db_images/customer/60/loadingImage.jpg"
6
+ transition="random3d"
7
+ videoSlideshowMode="true"
8
+ panoSecsPerRevolution="30"
9
+ duration="5"
10
+ kbSnapToFill=".15"
11
+ maxPlayerAspectRatio="2.0"
12
+ minPlayerAspectRatio="0.33"
13
+ initialNavigationMode="show"
14
+ backgroundColor="#ffffff"
15
+ autoplay="false"
16
+ audioLoop="true">
17
+ <!-- Media items, like stills, panos, videos; with hotspots -->
18
+ <MediaCollection>
19
+ <Media id="30741" name="Normal (4:3)" thumbnail="www/db_images/tour/2166/photo_30741-100x75.jpg" duration="5" type="Photo" hires="www/db_images/tour/2166/photo_30741-1500x1000.jpg" width="1333" height="1000">
20
+ <description><![CDATA[
21
+
22
+ ]]></description>
23
+ <Hotspots></Hotspots>
24
+ </Media>
25
+ <Media id="30742" name="Tall" thumbnail="www/db_images/tour/2166/photo_30742-100x75.jpg" duration="5" type="Photo" hires="www/db_images/tour/2166/photo_30742-1500x1000.jpg" width="750" height="1000">
26
+ <description><![CDATA[
27
+
28
+ ]]></description>
29
+ <Hotspots></Hotspots>
30
+ </Media>
31
+ <Media id="90525" name="Wide" thumbnail="www/db_images/tour/2166/photo_90525-100x75.jpg" duration="5" type="Photo" hires="www/db_images/tour/2166/photo_90525-1500x1000.jpg" width="1500" height="703" audioLoop="false">
32
+ <description><![CDATA[
33
+ A description with not many letters.
34
+ ]]></description>
35
+ <Hotspots>
36
+ <Hotspot>
37
+ <HotspotAppearance width="32" height="32" type="icon" iconPath="www/player-assets/hotspotIcons/stillCamera" rotationDegrees="0" centerCoords="0.45645645645645644,0.4527027027027027" />
38
+ <HotspotAction type="media" mediaId="30742" />
39
+ </Hotspot>
40
+ </Hotspots>
41
+ </Media>
42
+ <Media id="11146" name="Cylindrical" thumbnail="www/db_images/tour/2166/virtual_tour_11146-thumb.jpg" duration="15" type="VirtualTour" shape="Cylinder" width="7200" height="910" lowres="www/db_images/tour/2166/virtual_tour_11146-small.jpg" hiresPreview="www/db_images/tour/2166/virtual_tour_11146-preview.jpg" hiresStripes="www/db_images/tour/2166/virtual_tour_11146-large_flash-0.jpg,www/db_images/tour/2166/virtual_tour_11146-large_flash-1.jpg,www/db_images/tour/2166/virtual_tour_11146-large_flash-2.jpg" viewportFOVX="100" minFOVX="12" maxFOVX="165" panoSecsPerRevolution="15">
43
+ <description><![CDATA[
44
+
45
+ ]]></description>
46
+ <Hotspots></Hotspots>
47
+ </Media>
48
+ <Media id="11147" name="Spherical" thumbnail="www/db_images/tour/2166/virtual_tour_11147-thumb.jpg" duration="15" type="VirtualTour" shape="Sphere" width="3996" height="1998" lowres="www/db_images/tour/2166/virtual_tour_11147-small.jpg" hiresPreview="www/db_images/tour/2166/virtual_tour_11147-preview.jpg" hiresStripes="www/db_images/tour/2166/virtual_tour_11147-large_flash-0.jpg,www/db_images/tour/2166/virtual_tour_11147-large_flash-1.jpg,www/db_images/tour/2166/virtual_tour_11147-large_flash-2.jpg" viewportFOVX="100" minFOVX="12" maxFOVX="165" panoSecsPerRevolution="15">
49
+ <description><![CDATA[
50
+
51
+ ]]></description>
52
+ <Hotspots>
53
+ <Hotspot>
54
+ <HotspotAppearance width="32" height="32" type="icon" iconPath="www/player-assets/hotspotIcons/stillCamera" rotationDegrees="0" centerCoords="0.45645645645645644,0.4527027027027027" />
55
+ <HotspotAction type="media" mediaId="30742" />
56
+ </Hotspot>
57
+ </Hotspots>
58
+ </Media>
59
+ <Media id="30737" name="1812x1920" thumbnail="www/db_images/tour/2166/photo_30737-100x75.jpg" duration="5" type="Photo" hires="www/db_images/tour/2166/photo_30737-1500x1000.jpg" width="944" height="1000">
60
+ <description><![CDATA[
61
+
62
+ ]]></description>
63
+ <Hotspots></Hotspots>
64
+ </Media>
65
+ <Media id="30738" name="2560x1920" thumbnail="www/db_images/tour/2166/photo_30738-100x75.jpg" duration="5" type="Photo" hires="www/db_images/tour/2166/photo_30738-1500x1000.jpg" width="1333" height="1000">
66
+ <description><![CDATA[
67
+
68
+ ]]></description>
69
+ <Hotspots></Hotspots>
70
+ </Media>
71
+ <Media id="30739" name="2160x1676" thumbnail="www/db_images/tour/2166/photo_30739-100x75.jpg" duration="5" type="Photo" hires="www/db_images/tour/2166/photo_30739-1500x1000.jpg" width="1289" height="1000">
72
+ <description><![CDATA[
73
+
74
+ ]]></description>
75
+ <Hotspots></Hotspots>
76
+ </Media>
77
+ <Media id="30740" name="2352x1920" thumbnail="www/db_images/tour/2166/photo_30740-100x75.jpg" duration="5" type="Photo" hires="www/db_images/tour/2166/photo_30740-1500x1000.jpg" width="1225" height="1000">
78
+ <description><![CDATA[
79
+
80
+ ]]></description>
81
+ <Hotspots></Hotspots>
82
+ </Media>
83
+ </MediaCollection>
84
+
85
+ <!-- Navigation information, like floorplans and maps; with hotspots -->
86
+ <Navigation name="Camp Map">
87
+ <NavigationLayers>
88
+ <NavigationLayer id="1" name="Main Siteplan">
89
+ <NavigationLayerRenderer type="image" imagePath="www/db_images/tour/2166/siteplan.jpg"/>
90
+ <Hotspots>
91
+ <Hotspot>
92
+ <HotspotAppearance width="32" height="32" type="icon" iconPath="www/player-assets/hotspotIcons/stillCamera" rotationDegrees="0" centerCoords="0.45645645645645644,0.4527027027027027" />
93
+ <HotspotAction type="media" mediaId="90525" />
94
+ </Hotspot>
95
+ <Hotspot>
96
+ <HotspotAppearance width="32" height="32" type="icon" iconPath="www/player-assets/hotspotIcons/arrow" rotationDegrees="180" centerCoords="0.25645645645645644,0.7527027027027027" />
97
+ <HotspotAction type="url" targetURL="http://tourbuzz.net" targetWindow="_self" tooltip="Tourbuzz.net"/>
98
+ </Hotspot>
99
+ </Hotspots>
100
+ </NavigationLayer>
101
+ </NavigationLayers>
102
+ </Navigation>
103
+
104
+ <!-- Skin information: points to external swf, internal config, and tour-specific settings -->
105
+ <Skin skinPath="www/player-assets/skins/<%= project_name %>Skin.swf">
106
+ <Colors>
107
+ <!--Color name="backgroundTopLeft" color="#93bc84"/-->
108
+ </Colors>
109
+ <Metadata>
110
+ <Metadata name="initialNavigationWidthPercent" value="80"/>
111
+ <Metadata name="navigationLocation" value="left"/>
112
+ </Metadata>
113
+ </Skin>
114
+ </Tour>
@@ -0,0 +1,91 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2
+ "http://www.w3.org/TR/html4/strict.dtd">
3
+ <html>
4
+ <head>
5
+ <title>New Player Test Harness</title>
6
+ <meta name="description" content="Virtual Tour for ::address::" />
7
+ <meta name="keywords" content="virtual tour,virtual tours,360 virtual tour,360 virtual tours,real estate virtual tour,virtual tour of,virtual tour of home,virtual tour of homes" />
8
+ <script type="text/javascript" src="www/prototype-min.js" ></script>
9
+ <script type="text/javascript" src="www/swfobject.js"></script>
10
+ <script type="text/javascript" src="www/swfmacmousewheel2.js"></script>
11
+ <style type="text/css">
12
+ object { outline:none; }
13
+ #wrapper {
14
+ margin: auto;
15
+ background-color: #f5f5f5;
16
+ position: relative;
17
+ }
18
+ #tourplayernodisplay, #tourplayer {
19
+ margin:auto;
20
+ width: 100%;
21
+ height: 100%;
22
+ text-align: center;
23
+ position: absolute;
24
+ z-index: 2;
25
+ }
26
+ #tourplayernodisplay {
27
+ border: 1px solid;
28
+ }
29
+ </style>
30
+ </head>
31
+ <body style="margin: 0;" class="yui-skin-sam">
32
+
33
+ <div id="wrapper">
34
+ <div id="tourplayernodisplay">
35
+ FLASH NOT INSTALLED
36
+ </div>
37
+ </div>
38
+
39
+ <script>
40
+ Event.observe(window, 'resize', sizeit);
41
+ document.observe('dom:loaded', sizeit);
42
+
43
+ var fakePlayer = false;
44
+
45
+ function sizeit()
46
+ {
47
+ var vSpacePct = 0.0;
48
+ var hSpacePct = 0.0;
49
+ var playerWidth = parseInt((1-hSpacePct) * document.viewport.getWidth());
50
+ var playerHeight = parseInt((1-vSpacePct) * document.viewport.getHeight());
51
+
52
+ var wrapperEl = $('wrapper');
53
+ wrapperEl.setStyle({ width: document.viewport.getWidth() + 'px',
54
+ height: document.viewport.getHeight() + 'px'
55
+ });
56
+
57
+ if ($('tourplayer') === null)
58
+ {
59
+ var flashvars = {
60
+ tourInfoXML: 'www/TourInfo.xml',
61
+ setBGColors: '{"splitXPercent":65, "splitYTop":200}'
62
+ };
63
+ var params = { allowFullScreen: true };
64
+ params.bgcolor = '#cbe7bf';
65
+ var attributes = {};
66
+ attributes.id = "tourplayer";
67
+ if (swfobject.hasFlashPlayerVersion('10.0.0'))
68
+ {
69
+ swfobject.embedSWF("Panorama.swf", "tourplayernodisplay", playerWidth, playerHeight, "10.0.0", false, flashvars, params, attributes);
70
+ }
71
+ else
72
+ {
73
+ swfobject.embedSWF("panorama.swf.flash9", "tourplayernodisplay", playerWidth, playerHeight, "9.0.28", false, flashvars, params, attributes);
74
+ }
75
+ swfmacmousewheel.registerObject(attributes.id);
76
+ }
77
+
78
+ window.setTimeout(function() {
79
+ var playerEl = $( fakePlayer ? 'tourplayernodisplay' : 'tourplayer' );
80
+ playerEl.setStyle( {
81
+ width: playerWidth + 'px',
82
+ height: playerHeight + 'px',
83
+ left: parseInt((document.viewport.getWidth()-playerWidth)/2) + 'px',
84
+ top: parseInt((document.viewport.getHeight()-playerHeight)/2) + 'px',
85
+ } );
86
+ }, 1);
87
+ }
88
+ </script>
89
+
90
+ </body>
91
+ </html>