Hello
I have this code in actionscript that calls javascript:
actionscript:
zoom_in = function () {
var tw1:Tween = new Tween(mc_1, "_width", Regular.easeOut,
mc_1._width, 0, 1, false); //OK
var tw2:Tween = new Tween(mc_1, "_height", Regular.easeOut,
mc_1._height, 0, 1, false); //OK
ExternalInterface.call("zoom");
}
javascript:
function zoom()
{
top.resizeTo(1024, 768);
self.moveTo(0,0);
}
Everything works perfectly on Firefox 1.5 but not on IE 6+
in IE the "zoom" function doesn't work, but if I add an alert it DOES work:
function zoom()
{
alert('this works');
top.resizeTo(1024, 768);
self.moveTo(0,0);
}
Does anyone knows what can be wrong with the code? it doesn't make any
sense, any help will be appreciated.
thanks and regards.
|
|
0
|
|
|
|
Reply
|
Hugo
|
4/25/2006 8:56:40 AM |
|
Hugo Flores wrote:
> Hello
>
> I have this code in actionscript that calls javascript:
>
> actionscript:
>
> zoom_in = function () {
> var tw1:Tween = new Tween(mc_1, "_width", Regular.easeOut,
> mc_1._width, 0, 1, false); //OK
> var tw2:Tween = new Tween(mc_1, "_height", Regular.easeOut,
> mc_1._height, 0, 1, false); //OK
> ExternalInterface.call("zoom");
> }
>
> javascript:
>
> function zoom()
> {
> top.resizeTo(1024, 768);
> self.moveTo(0,0);
> }
>
> Everything works perfectly on Firefox 1.5 but not on IE 6+
>
> in IE the "zoom" function doesn't work, but if I add an alert it DOES work:
>
> function zoom()
> {
> alert('this works');
> top.resizeTo(1024, 768);
> self.moveTo(0,0);
> }
>
> Does anyone knows what can be wrong with the code? it doesn't make any
> sense, any help will be appreciated.
See explanation and demo sample at:
<http://groups.google.com/group/comp.lang.javascript/msg/e02fd02952dd0d24>
Browser graphics context is not updated until you exit from the current
execution thread. This is the same for all UA's, so I'm not sure what
do you call "works perfectly in Firefox".
|
|
0
|
|
|
|
Reply
|
VK
|
4/25/2006 10:14:33 AM
|
|
|
1 Replies
318 Views
(page loaded in 0.034 seconds)
Similiar Articles: document.getElementById undefined - comp.lang.javascript ...For example, this will not work: ... <script type ... Haris Bogdanović wrote: >> Why when I try: alert ... indexOf('Mac') != -1 ) // Plone, register_function.js ... need to kill worker process in parfor loop - comp.soft-sys.matlab ...... equals sign (as an input) indicates that the function will not ... so i might say something wrong or that just doesnt work. ... loop) - comp.soft-sys.matlab Fill a matrix without ... How can i define global variable in matlab gui? - comp.soft-sys ...... these code under; "function varargout = filename(varargin)" which is located at top.It doesnt work.I ... Stop running program without exiting current GUI ... Firefox close forbid - comp.lang.javascript... wrote: [snip] > window.onbeforeunload = function() {alert('hi ... nLeaving this page without saving ... onbeforeunload doesn't work in Safari - comp.lang ... Update Statement - Replace, Wildcard, and partial update? - comp ...Without a backup you cannot restore the data if this does not work the way ... Exit For End If Next i End If This function will not work on example ... save form data when leaving page without submit - comp.lang ...But now my client asked me if it is possible to alert ... would to have all of your links call a confirming function ... most likely, after they've done it once, they wont ... comp.soft-sys.matlab - page 593The function is defined as follows: function foo() num = 1000000; disp('hey ... matlab with a returncode !=0 As far is I can see there's only exit or quit without ... Using Xilinx DCM FX output without DLL - comp.arch.fpgaUse of the CLKFB pin invokes the DLL function (which you do not need, or ... If your DUT clock comes & goes, the DCM will not work properly without resets after clock changes. Static reflection - a base for runtime reflection? - comp.lang.c++ ...... t1 + t2) { return t1 + t2; } The function will not be ... types that were provided. > > It should also work ... static routes ... ... running HPUX 11i, without having ... Matlab compiler for embedded software - comp.soft-sys.matlab ...... the files needed to deploy my application without ... which I'm guessing is NOT the case) that will not work for ... C language in S-Function Simulink - comp.soft-sys ... function doesnt work without an alert() - JavaScript / Ajax / DHTMLfunction doesnt work without an alert(). JavaScript / Ajax / DHTML Forums on Bytes. Script doesn't work without alerts :( - JavaScript / Ajax / DHTML>> it doesn't matter I tried to use some pause function with while I tried[color ... >> how to make it work without alert.[/color] > > If adding alert changes anything, it suggests ... 7/25/2012 6:13:37 PM
|