Chilton
08-30-2002, 04:13 AM
Anyone seeing bizarre behavior of multiple javascripts not being executed if called from inside Flash? Here be my code, yarrrr....
getURL ("javascript:self.moveTo(0,0);");
getURL ("javascript:self.moveTo(0,0);");
getURL ("javascript:self.resizeTo((screen.width>800)?((screen.height - (screen.height*.1))/.75)-10:screen.width,(screen.height>600)?(screen.height - (screen.height*.1)):screen.height);");
The moveTo line (repeated in my code as well) does not execute at all, sometimes, and other times works flawlessly.
That last one resizes the window based on the size of your screen, and always works. Any idea why?
-Chilton
getURL ("javascript:self.moveTo(0,0);");
getURL ("javascript:self.moveTo(0,0);");
getURL ("javascript:self.resizeTo((screen.width>800)?((screen.height - (screen.height*.1))/.75)-10:screen.width,(screen.height>600)?(screen.height - (screen.height*.1)):screen.height);");
The moveTo line (repeated in my code as well) does not execute at all, sometimes, and other times works flawlessly.
That last one resizes the window based on the size of your screen, and always works. Any idea why?
-Chilton