I do know about the 40K limit and I do believe that is part of the
problem, when I am able to get things to work properly at all. The gist
of my project is that I have an HTML page that loads two flash files,
the first file loads a series of secondary movieclips and when each one
of those loads, the localconnection sends a cookie to the second flash
file to go to a certain frame. The first file includes a series of two
arrays with 6 items each (one array for the movie clips and one array
for the frames for the second movie). Once it runs through the array, it
loops again.

The problem I'm running into is that in the testing environment,
everything loads properly at the right time, but when I go live it only
works on Firefox or Explorer on PC properly and doesn't work on Mac. The
frames in the second movie are loading out of sync on the Mac. I've
rewritten the code a couple of times to try to fix for one browser or
another and I inevitably lose the one it worked on originally. However,
I've never seem to had any luck getting it to work on the Mac browsers.
I'm not an expert AS programmer by any means, so I realize that it could
be something I've written improperly. However the fact that I have had
it functioning on certain browsers leads me to believe that it may be a
browser/system issue as well.

Here's the primary part of the code in the first movie that involves the
localconnection:

var frames:Array = new Array(2,62,122,182,242,302);
var clips:Array = new Array("images/bars/bar1.swf",
"images/bars/bar2.swf", "images/bars/bar3.swf", "images/bars/bar4.swf",
"images/bars/bar1.swf", "images/bars/bar2.swf");

loadNextImage = function () {
        
onBottom.loadMovie(clips[imageCount=(imageCount+1)%clips.length]);
                //send the next frame number
                function sendFrameNumber(bnum){
                outgoing_lc = new LocalConnection();
                outgoing_lc.send("lc_test", "testme", bnum);
                delete outgoing_lc;
                        }
                var bnum =
(frames[frameCount=(frameCount+1)%frames.length]);
                sendFrameNumber(bnum);
                trace(bnum);
                //fade the images
                onEnterFrame = function() {
                        if (onBottom._width>0) {
                        crossFade(onTop,onBottom);
                        onEnterFrame = null;
                        }
                }
}

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John
Grden
Sent: Tuesday, August 01, 2006 11:01 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] LocalConnection, Trying Again


Hey Jessica, I don't know if I caught your first email - what's the
problem specifically?

Do you know about the 40k limit?  if so, what are you doing to
accomodate that?

JPG

On 8/1/06, Jessica Hensley <[EMAIL PROTECTED]> wrote:
>
> I posted a fairly involved question last week about a problem I'm 
> having with a localconnection working the same across different 
> browsers and Mac versus PC. I haven't had much luck finding an answer,

> so I thought I would try one last time to just see if anyone has 
> experienced anything like this and could provide any insight. Any 
> thoughts are greatly appreciated! Thanks! 
> _______________________________________________
> [email protected]
> To change your subscription options or search the archive: 
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training 
> http://www.figleaf.com http://training.figleaf.com
>



-- 
John Grden
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to