all groups > flash (macromedia) > december 2003 >
You're in the

flash (macromedia)

group:

Double Loading on Mac Computers?


Double Loading on Mac Computers? Xyster311
12/15/2003 11:12:15 PM
flash (macromedia):
I am building a Flash site, www.acmeadapters.com, and am having a few problems getting it to load properly on a Mac, seems to work fine on PC. Basically, the problem is that it double loads... after the pre-loader finishes, it launches the pop-up window, and then reloads the site again like it hadn't been preloaded, again this only happens on a Mac. Anyone have any ideas...

Here is the preload script (sorry for the terrible formatting):


stop();

Stage.showMenu = false;
Stage.scaleMode = "noScale";
MovieClip.prototype.preloadjpg = function(movietobeLoaded) {
trace(movietobeLoaded);

var holder = this.createEmptyMovieClip("holder", 1);

holder.loadMovie(movietobeLoaded);

this.onEnterFrame = function() {

holder._visible = false;

tLoaded, tBytes;
tLoaded = holder.getBytesLoaded();
tBytes = holder.getBytesTotal();
var percentage = int(tLoaded * 100 / tBytes);
setProperty(_root.slider, _xscale, (percentage * (287)));

trace (percentage + " % of " + movietobeLoaded + "loaded");

if (isNaN(tBytes) || tBytes < 4) {
return;
}

if (_root.tLoaded / _root.tBytes >= 1) {


getURL("javascript:NewWindow('acme.swf','ACME' ,'800','600','no')");
gotoAndStop(2);


delete _root.onEnterFrame;

}
};
};

preloadjpg("acme.swf");





Referring URLs
www.acmeadapters.com



Re: Double Loading on Mac Computers? mirmaduke
12/16/2003 3:24:04 AM
hi there...

sorry, no answers for you! i am having a similar problem, only instead of preloading...i am only using a simple script (get url) to launch a site in a new window (_blank). whenever my sites launch on a mac, it loads the screen in a new window and then seems to be refreshing again to show a white screen, and then eventually it re-displays the site. it takes a loooong time though to finally display the site. also, incidently but not related, when the site runs on pcs, it fails to launch a new window. i am kind of new to flash, and i can't seem to figure this one out. :-P

this is my script on the button:

on (press) {getURL("http://www.mccormicktaylor.com", _blank);

}

any ideas?
-M.




Referring URLs
http://www.churnbutterdesign.com/



AddThis Social Bookmark Button