Thanks Raymond,
The animation is pure actionship generated and I can stop/start it by
sending a variable like this:

function passVarT(){
                myLayer.doc.myMovie.SetVariable("volno","playtheanim");
}
function passVarF(){
                myLayer.doc.myMovie.SetVariable("volno","stoptheanim");
}
Works fine. I call the functions like this:

DynAPI.onLoad = function() {
        window.onfocus = function(){
                passVarT();
        }
        window.onblur = function(){
                passVarF();
        }
}
(Tried <body> tag but of course error because myLayer doesn't yet exist.)
Works a treat. In NS4.7 only :-(

IE5.0 problems/issues:1.<a> links (used to slide menu layers) cause the
onblur event to fire. I now use an event listener on the document to keep
the animation going.
2. Although another window is open and on top it seems that the onblur focus
does not fire. Same too with NS6.

Tried lots of different ways to call the passVarT/F but all failed to
produce the desired result.
Any suggestions?

Blessings, Darryl.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Raymond
Smith
Sent: Sunday, March 11, 2001 11:58 PM
To: [EMAIL PROTECTED]
Subject: Re: [Dynapi-Help] window.open and IE


Darryl,

A little feedback from the trails of site optimization.  For your title page
you should build a "static park frame" in your flash movie and when a
secondary window is launched send the title page window to "park".

Even those little animated lines in flash eat about 50% of a 200-300 mhz PC
processors power, which represents about 40% of the current installed base.
Start stacking windows and the back (not even a focal point in the eyes of
the user) is raising havok with the animation quality on newly opened
windows.  Then on closing of  secondary windows you can send base window to
a "start" frame to fire the animation up again.

You can extend this trick by creating all sorts of in page animation
switches.  If "b" animation is started, turn off "a,c" animations, if "a,c"
stopped, turn on "b" animation.  You can also allow the user to dynamically
turn off animations if they become a problem on slower processors with a
animation control panel.

Just some thoughts.

Ray

----- Original Message -----
From: "Darryl Cousins" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, March 11, 2001 2:25 PM
Subject: RE: [Dynapi-Help] window.open and IE


> Thanks Robert for the reply.
>
> On the two 'guilty' links I was loading html pages with plenty of DynAPI2
> script. I assume that it is a memory problem with IE. It gets itself tied
up
> with the DynAPI in the opened windows and when they're closed again it
takes
> those several seconds to free up the memory again. On all my pages I
> include:
> DynAPI.onUnload = function() {
> if (this.loaded) DynAPI.document.deleteAllChildren();
> }
> This, I find makes a big difference in general. A day or so I read in the
> dev-list about CollectGarbage(). So just for a try I incuded:
> DynAPI.onUnload = function() {
> if (this.loaded) DynAPI.document.deleteAllChildren();
> CollectGarbage();
> }
> in the two 'guilty' pages. Now I have no problems :) One less, that is.
>
> Blessings, Darryl.
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Robert
> Rainwater
> Sent: Sunday, March 11, 2001 8:07 PM
> To: Darryl Cousins
> Subject: Re: [Dynapi-Help] window.open and IE
>
>
>
> I tried and didn't have that problem with adding some simple dynlayers
> to the window. What exactly are you loading in the windows?
>
> --
> Robert Rainwater
>
>
> On 3/10/2001, 5:34:08 AM EST, Darryl wrote about "[Dynapi-Help]
window.open
> and IE":
>
> > Hello All,
>
> > I have a home page with several <a> links (on layers using setHTML) that
> > call the following function:
>
> >  function openWindow(URL,windowName) {
> >         if(is.ns || is.ie) {
>
> >         var window_left = (screen.width-790)/2;
> >         var window_top = (screen.height-480)/2;
>
> >         window.open(URL,windowName,'width=780,height=480,top=' +
> window_top +
> > ',left=' + window_left + '');
> >         }
> > }
>
> > These links open example pages, three without DynAPI2 and two DynAPI2
> > powered. When the later two, and only the later two, are closed again my
> > computer is frozen for 10-15 seconds. The home page browser has focus
but
> > click events on the entire system are not active for this short period.
> The
> > problem does not appear with NS. The page worked fine with IE on another
> > system (details unknown).
>
> > I'm running PentiumII 400 MHz, Win98, IE5.0
>
> > The page is at http://www.polbox.com/c/cousins The guilty two links are
> > under 'Darryl's Web Design' /Flash 01-2000 and /DHTML 02-2000
>
> > TIA. Blessings, Darryl
>
>
> > _______________________________________________
> > Dynapi-Help mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/dynapi-help
>
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
>


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to