nate51
03-31-2008, 05:45 PM
I am working with a site that has zoomable floor plans, problem is the client wants to change the site from flash to html. The zoomable floor plans are seperate swf files but the controls to zoom and chose other floor plans etc are part of another swf file, that for some reason when I double click it, it does not work the same as it did on the site.
(*note: I have copied all the files from the original site to my server like XML, image files etc and it still will not allow me to open one swf file seperately from the main swf file.)
Below is the code on the swf file that contains the controls for the floor plans but when I try to view does not open the way it does on their server.
Frame 1
function loadimg () {
imgviewer.gotoAndPlay(2);
imgviewer._visible = 1;
}
function closeimg () {
imgviewer._visible = 0;
imgviewer.gotoAndStop(1);
}
Frame 13
if(_root.modelsxml.length > 2){
gotoAndPlay("loadcommunity");
}
Frame 72
loadMovie("_swf/"+_root.sitemap,"canister");
//loadMovie(_root.sitemap,"canister");
if(_root.Cdetail == "Unit Detail"){
_root.backtxt = "Select Another Unit";
}
if(_root.Cdetail == "Model Detail"){
_root.backtxt = "Select Another Model";
}
Frame 84
loadMovie("_swf/"+_root.sitemap,"canister");
//loadMovie(_root.sitemap,"canister");
if(_root.Cdetail == "Unit Detail"){
_root.backtxt = "Select Another Unit";
}
if(_root.Cdetail == "Model Detail"){
_root.backtxt = "Select Another Model";
}
Frame 88
movieSize = canister.getBytesTotal();
moviePercent = movieSize/100;
current = canister.getBytesLoaded();
if (movieSize>0) {
PercentLoaded = Math.round(current/moviePercent);
} else {
PercentLoaded = 0;
}
if (PercentLoaded > 99) {
play();
} else {
gotoAndPlay(_currentFrame - 1);
}
Frame 89
/// initialization is (zoomable clip, zoom max, zoom speed)
ScrollbarClip.init("canister",1.4,6);
CorrectWidth = canister._width;
CorrectHeight = canister._height;
CorrectX = canister._x;
CorrectY = canister._y
Frame 90
canister.gotoAndPlay(2);
Frame 121
canister.gotoAndPlay(2);
Frame 136
loadMovie(_root.ModelPlan1,"canister");
Frame 139
movieSize = canister.getBytesTotal();
moviePercent = movieSize/100;
current = canister.getBytesLoaded();
if (movieSize>0) {
PercentLoaded = Math.round(current/moviePercent);
} else {
PercentLoaded = 0;
}
if (PercentLoaded > 99) {
play();
} else {
gotoAndPlay(_currentFrame - 1);
}
Frame 140
/// initialization is (zoomable clip, zoom max, zoom speed)
ScrollbarClip.init("canister",2.5,6);
CorrectWidth = canister._width;
CorrectHeight = canister._height;
CorrectX = canister._x;
CorrectY = canister._y
Frame 149
minfo.gotoAndStop(_root.modelinfo);
trace(_root.planbgcolor);
var colorful = new Color("planbg");
colorful.setRGB(_root.planbgcolor);
Frame 168
stop();
Frame 183
canister._width = CorrectWidth;
canister._height = CorrectHeight;
canister._x = CorrectX;
canister._y = CorrectY;
ScrollbarClip.Slider._y = ScrollbarClip.BeginY;
Frame 187
loadMovie(_root.plan,"canister");
Frame 191
movieSize = canister.getBytesTotal();
moviePercent = movieSize/100;
current = canister.getBytesLoaded();
if (movieSize>0) {
PercentLoaded = Math.round(current/moviePercent);
} else {
PercentLoaded = 0;
}
if (PercentLoaded > 99) {
play();
} else {
gotoAndPlay(_currentFrame - 1);
}
Frame 192
/// initialization is (zoomable clip, zoom max, zoom speed)
ScrollbarClip.init("canister",2.5,6);
CorrectWidth = canister._width;
CorrectHeight = canister._height;
CorrectX = canister._x;
CorrectY = canister._y
Frame 213
stop();
I am drawing blanks here and need serious help, if anyone has any idea where things are going wrong here, please let me know.
Thanks for looking over my post.
-- Nate
(*note: I have copied all the files from the original site to my server like XML, image files etc and it still will not allow me to open one swf file seperately from the main swf file.)
Below is the code on the swf file that contains the controls for the floor plans but when I try to view does not open the way it does on their server.
Frame 1
function loadimg () {
imgviewer.gotoAndPlay(2);
imgviewer._visible = 1;
}
function closeimg () {
imgviewer._visible = 0;
imgviewer.gotoAndStop(1);
}
Frame 13
if(_root.modelsxml.length > 2){
gotoAndPlay("loadcommunity");
}
Frame 72
loadMovie("_swf/"+_root.sitemap,"canister");
//loadMovie(_root.sitemap,"canister");
if(_root.Cdetail == "Unit Detail"){
_root.backtxt = "Select Another Unit";
}
if(_root.Cdetail == "Model Detail"){
_root.backtxt = "Select Another Model";
}
Frame 84
loadMovie("_swf/"+_root.sitemap,"canister");
//loadMovie(_root.sitemap,"canister");
if(_root.Cdetail == "Unit Detail"){
_root.backtxt = "Select Another Unit";
}
if(_root.Cdetail == "Model Detail"){
_root.backtxt = "Select Another Model";
}
Frame 88
movieSize = canister.getBytesTotal();
moviePercent = movieSize/100;
current = canister.getBytesLoaded();
if (movieSize>0) {
PercentLoaded = Math.round(current/moviePercent);
} else {
PercentLoaded = 0;
}
if (PercentLoaded > 99) {
play();
} else {
gotoAndPlay(_currentFrame - 1);
}
Frame 89
/// initialization is (zoomable clip, zoom max, zoom speed)
ScrollbarClip.init("canister",1.4,6);
CorrectWidth = canister._width;
CorrectHeight = canister._height;
CorrectX = canister._x;
CorrectY = canister._y
Frame 90
canister.gotoAndPlay(2);
Frame 121
canister.gotoAndPlay(2);
Frame 136
loadMovie(_root.ModelPlan1,"canister");
Frame 139
movieSize = canister.getBytesTotal();
moviePercent = movieSize/100;
current = canister.getBytesLoaded();
if (movieSize>0) {
PercentLoaded = Math.round(current/moviePercent);
} else {
PercentLoaded = 0;
}
if (PercentLoaded > 99) {
play();
} else {
gotoAndPlay(_currentFrame - 1);
}
Frame 140
/// initialization is (zoomable clip, zoom max, zoom speed)
ScrollbarClip.init("canister",2.5,6);
CorrectWidth = canister._width;
CorrectHeight = canister._height;
CorrectX = canister._x;
CorrectY = canister._y
Frame 149
minfo.gotoAndStop(_root.modelinfo);
trace(_root.planbgcolor);
var colorful = new Color("planbg");
colorful.setRGB(_root.planbgcolor);
Frame 168
stop();
Frame 183
canister._width = CorrectWidth;
canister._height = CorrectHeight;
canister._x = CorrectX;
canister._y = CorrectY;
ScrollbarClip.Slider._y = ScrollbarClip.BeginY;
Frame 187
loadMovie(_root.plan,"canister");
Frame 191
movieSize = canister.getBytesTotal();
moviePercent = movieSize/100;
current = canister.getBytesLoaded();
if (movieSize>0) {
PercentLoaded = Math.round(current/moviePercent);
} else {
PercentLoaded = 0;
}
if (PercentLoaded > 99) {
play();
} else {
gotoAndPlay(_currentFrame - 1);
}
Frame 192
/// initialization is (zoomable clip, zoom max, zoom speed)
ScrollbarClip.init("canister",2.5,6);
CorrectWidth = canister._width;
CorrectHeight = canister._height;
CorrectX = canister._x;
CorrectY = canister._y
Frame 213
stop();
I am drawing blanks here and need serious help, if anyone has any idea where things are going wrong here, please let me know.
Thanks for looking over my post.
-- Nate