RE: [Flashcoders] onLoadComplete, but no onLoadInit

2007-02-15 Thread Karina Steffens
Hi Michael,

I address the problem of testing cache-busting code in the IDE in my blog:
http://blog.neo-archaic.net/2006/08/02/nocache-for-javascript-and-flash.htm 

Basically, what you need to do is check for System.capabilites.playerType
before adding the cache-buster to the url.

var loader:MovieClipLoader;
var viewLoader:MovieClip;
var url:String = images/catalogue/collection/cat1.jpg;
if (System.capabilities.playerType == PlugIn
|| System.capabilities.playerType == ActiveX){
  url+=?nocache=+new Date().getTime();
}
loader.loadClip (url, viewLoader);


This, of course, won't prevent the other problem you mentioned, large files
downloading multiple times, but it can be quite handy for often-updated
content.

Karina 


 -Original Message-
 From: T. Michael Keesey [mailto:[EMAIL PROTECTED] 
 Sent: 15 February 2007 03:56
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] onLoadComplete, but no onLoadInit
 
 On 2/14/07, John VanHorn [EMAIL PROTECTED] wrote:
  this problem has been discussed before. is this what youre 
 referring to?
 
  
 http://chattyfig.figleaf.com/pipermail/flashcoders/2006-August/171681.
  html
 
  seems that MovieClipLoader events do not fire correctly 
 when content 
  is loaded from cache. if this is your problem, would appended a 
  cache-killing query string to the url work? something like:
 
  mcl.loadclip(someswf.swf?d= + new Date().valueOf(),
targetMc
);
 
 Apparently this is a problem, as well as onLoadInit not 
 working correctly all the time when publishing using the 
 Flash 9 alpha. (And in that case, it fails sporadically in 
 Firefox and the IDE as well.)
 
 Cache-busting is not a great solution, since 1) it makes it 
 impossible to test anything anywhere except from a server, 
 and 2) it could cause some large-ish files to download 
 multiple times. I think I'll just have to come up with a 
 customized solution and, in general, learn not to rely on onLoadInit.
 
 Suck.
 --
 Mike Keesey
 ___
 Flashcoders@chattyfig.figleaf.com
 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
 

___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] onLoadComplete, but no onLoadInit

2007-02-15 Thread T. Michael Keesey

On 2/15/07, Karina Steffens [EMAIL PROTECTED] wrote:

Hi Michael,

I address the problem of testing cache-busting code in the IDE in my blog:
http://blog.neo-archaic.net/2006/08/02/nocache-for-javascript-and-flash.htm

Basically, what you need to do is check for System.capabilites.playerType
before adding the cache-buster to the url.

var loader:MovieClipLoader;
var viewLoader:MovieClip;
var url:String = images/catalogue/collection/cat1.jpg;
if (System.capabilities.playerType == PlugIn
|| System.capabilities.playerType == ActiveX){
  url+=?nocache=+new Date().getTime();
}
loader.loadClip (url, viewLoader);


This, of course, won't prevent the other problem you mentioned, large files
downloading multiple times, but it can be quite handy for often-updated
content.


Ah, thanks! That looks like something that could be an option for my
loading package.
--
Mike Keesey
___
Flashcoders@chattyfig.figleaf.com
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


RE: [Flashcoders] onLoadComplete, but no onLoadInit

2007-02-15 Thread Karina Steffens
You're welcome :)  

 -Original Message-
 From: T. Michael Keesey [mailto:[EMAIL PROTECTED] 
 Sent: 15 February 2007 15:28
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] onLoadComplete, but no onLoadInit
 
 On 2/15/07, Karina Steffens [EMAIL PROTECTED] wrote:
  Hi Michael,
 
  I address the problem of testing cache-busting code in the 
 IDE in my blog:
  
 http://blog.neo-archaic.net/2006/08/02/nocache-for-javascript-and-flas
  h.htm
 
  Basically, what you need to do is check for 
  System.capabilites.playerType before adding the 
 cache-buster to the url.
 
  var loader:MovieClipLoader;
  var viewLoader:MovieClip;
  var url:String = images/catalogue/collection/cat1.jpg;
  if (System.capabilities.playerType == PlugIn
  || System.capabilities.playerType == ActiveX){
url+=?nocache=+new Date().getTime(); } 
 loader.loadClip (url, 
  viewLoader);
 
 
  This, of course, won't prevent the other problem you 
 mentioned, large 
  files downloading multiple times, but it can be quite handy for 
  often-updated content.
 
 Ah, thanks! That looks like something that could be an option 
 for my loading package.
 --
 Mike Keesey
 ___
 Flashcoders@chattyfig.figleaf.com
 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
 

___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] onLoadComplete, but no onLoadInit

2007-02-14 Thread Arseniy Shklyaev

What u load there? If u use to load swf into swf and didnt find solution use
getbytestotal or something like in the usual preloaders. When u have 100%
loaded execute anyscript you want.

On 2/14/07, T. Michael Keesey [EMAIL PROTECTED] wrote:


I thought I saw this discussed recently, but I couldn't find it in the
archives. Apologies if I'm repeating something.

Has anyone ever had a situation using MovieClipLoader where, when
loading a SWF, the onLoadComplete handler gets called but the
onLoadInit handler does? I've verified that the actions on the first
frame (a component initializing) are being called, but onLoadInit
never happens.

TIA,
--
T. Michael Keesey
Director of Technology
Exopolis, Inc.
2894 Rowena Avenue Ste. B
Los Angeles, California 90039
___
Flashcoders@chattyfig.figleaf.com
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





--
-Arseniy Shklyaev
___
Flashcoders@chattyfig.figleaf.com
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


RE: [Flashcoders] onLoadComplete, but no onLoadInit

2007-02-14 Thread Danny Kodicek
  I thought I saw this discussed recently, but I couldn't find 
 it in the archives. Apologies if I'm repeating something.

You might be thinking about the thread I started with the opposite problem:
onLoadInit was called when the load actually failed.

Danny

___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] onLoadComplete, but no onLoadInit

2007-02-14 Thread T. Michael Keesey

On 2/14/07, Arseniy Shklyaev [EMAIL PROTECTED] wrote:

What u load there? If u use to load swf into swf and didnt find solution use
getbytestotal or something like in the usual preloaders. When u have 100%
loaded execute anyscript you want.


It's SWF into SWF.

Using getBytesTotal() would be a good solution if onLoadComplete
wasn't firing, but that's working fine. I need something to fire after
the load has completed AND the ActionScript on the first frame has
been executed (i.e., the components on the first frame and all of
their subcomponents have run their constructors). Normally, this is
exactly what MovieClipLoader:onLoadInit is for, but, as I said, it's
not being called for some reason, even though the components in the
loaded SWF do initialize.

Just wondering if anyone's encountered a similar situation.
--
T. Michael Keesey
Director of Technology
Exopolis, Inc.
2894 Rowena Avenue Ste. B
Los Angeles, California 90039
___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] onLoadComplete, but no onLoadInit

2007-02-14 Thread T. Michael Keesey

On 2/14/07, Danny Kodicek [EMAIL PROTECTED] wrote:

  I thought I saw this discussed recently, but I couldn't find
 it in the archives. Apologies if I'm repeating something.

You might be thinking about the thread I started with the opposite problem:
onLoadInit was called when the load actually failed.


Ahh, right. Ever find an answer to that?
--
T. Michael Keesey
Director of Technology
Exopolis, Inc.
2894 Rowena Avenue Ste. B
Los Angeles, California 90039
___
Flashcoders@chattyfig.figleaf.com
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


RE: [Flashcoders] onLoadComplete, but no onLoadInit

2007-02-14 Thread Alain Rousseau
I'd look for typos, wrong listener, etc ... If all that's clear then share
your code with us so we can help you better ! :)

Alain

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of T. Michael
Keesey
Sent: 14 février 2007 11:06
To: Flashcoders mailing list
Subject: Re: [Flashcoders] onLoadComplete, but no onLoadInit

On 2/14/07, Arseniy Shklyaev [EMAIL PROTECTED] wrote:
 What u load there? If u use to load swf into swf and didnt find 
 solution use getbytestotal or something like in the usual preloaders. 
 When u have 100% loaded execute anyscript you want.

It's SWF into SWF.

Using getBytesTotal() would be a good solution if onLoadComplete wasn't
firing, but that's working fine. I need something to fire after the load has
completed AND the ActionScript on the first frame has been executed (i.e.,
the components on the first frame and all of their subcomponents have run
their constructors). Normally, this is exactly what
MovieClipLoader:onLoadInit is for, but, as I said, it's not being called for
some reason, even though the components in the loaded SWF do initialize.

Just wondering if anyone's encountered a similar situation.
--
T. Michael Keesey
Director of Technology
Exopolis, Inc.
2894 Rowena Avenue Ste. B
Los Angeles, California 90039
___
Flashcoders@chattyfig.figleaf.com
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


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.411 / Virus Database: 268.17.39/686 - Release Date: 2007-02-14
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.411 / Virus Database: 268.17.39/686 - Release Date: 2007-02-14
 

___
Flashcoders@chattyfig.figleaf.com
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


RE: [Flashcoders] onLoadComplete, but no onLoadInit

2007-02-14 Thread Danny Kodicek
  On 2/14/07, Danny Kodicek [EMAIL PROTECTED] wrote:
I thought I saw this discussed recently, but I couldn't find
   it in the archives. Apologies if I'm repeating something.
 
  You might be thinking about the thread I started with the 
 opposite problem:
  onLoadInit was called when the load actually failed.
 
 Ahh, right. Ever find an answer to that?

The best I came up with was this (set fileExists to true first):

function onLoadComplete(tContainer:MovieClip, tStatus:Number) {
if (tStatus = 300 || tStatus  200) {
fileExists = false;
}
}
function onLoadInit(tContainer:MovieClip) {
if (!fileExists) {
this.onLoadError(tContainer);
} else {
// succeeded: do stuff here
}
}

Foolproof? I doubt it. But it works so far.

Danny

___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] onLoadComplete, but no onLoadInit

2007-02-14 Thread John VanHorn

this problem has been discussed before. is this what youre referring to?

http://chattyfig.figleaf.com/pipermail/flashcoders/2006-August/171681.html

seems that MovieClipLoader events do not fire correctly when content is
loaded from cache. if this is your problem, would appended a cache-killing
query string to the url work? something like:

mcl.loadclip(someswf.swf?d= + new Date().valueOf(),
 targetMc
 );


On 2/14/07, T. Michael Keesey [EMAIL PROTECTED] wrote:


I thought I saw this discussed recently, but I couldn't find it in the
archives. Apologies if I'm repeating something.

Has anyone ever had a situation using MovieClipLoader where, when
loading a SWF, the onLoadComplete handler gets called but the
onLoadInit handler does? I've verified that the actions on the first
frame (a component initializing) are being called, but onLoadInit
never happens.

TIA,
--
T. Michael Keesey
Director of Technology
Exopolis, Inc.
2894 Rowena Avenue Ste. B
Los Angeles, California 90039
___
Flashcoders@chattyfig.figleaf.com
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 Van Horn
[EMAIL PROTECTED]
___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] onLoadComplete, but no onLoadInit

2007-02-14 Thread T. Michael Keesey

I'll give it a try, but this is a problem in the IDE and in Firefox.
(I actually have not tested in IE yet.)

On 2/14/07, John VanHorn [EMAIL PROTECTED] wrote:

this problem has been discussed before. is this what youre referring to?

http://chattyfig.figleaf.com/pipermail/flashcoders/2006-August/171681.html

seems that MovieClipLoader events do not fire correctly when content is
loaded from cache. if this is your problem, would appended a cache-killing
query string to the url work? something like:

mcl.loadclip(someswf.swf?d= + new Date().valueOf(),
  targetMc
  );



--
T. Michael Keesey
Director of Technology
Exopolis, Inc.
2894 Rowena Avenue Ste. B
Los Angeles, California 90039
___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] onLoadComplete, but no onLoadInit

2007-02-14 Thread T. Michael Keesey

On 2/14/07, T. Michael Keesey [EMAIL PROTECTED] wrote:


On 2/14/07, John VanHorn [EMAIL PROTECTED] wrote:
 this problem has been discussed before. is this what youre referring to?

 http://chattyfig.figleaf.com/pipermail/flashcoders/2006-August/171681.html

 seems that MovieClipLoader events do not fire correctly when content is
 loaded from cache. if this is your problem, would appended a cache-killing
 query string to the url work? something like:

 mcl.loadclip(someswf.swf?d= + new Date().valueOf(),
   targetMc
   );

I'll give it a try, but this is a problem in the IDE and in Firefox.
(I actually have not tested in IE yet.)


Just tried it. It seems to remove the problem in Firefox, although it
prevents it from even being tested in the IDE. The problem still
exists in IE, though.

Incidentally, httpStatus (in the IDE, at least) for onLoadComplete is always 0.

Also worth mentioning: one of the SWFs it fails on is one that is
loading for the first time, so could not be cached. It's not a
cacheing issue. All of the failures are loading into movieclips that
previously housed other content--that might be something to look
into

One thing I might try is having the loaded content force a call to
onLoadInit. Crappy solution, but
--
Mike Keesey
___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] onLoadComplete, but no onLoadInit

2007-02-14 Thread Derek Vadneau
What version is the SWF you are loading that causes you the grief? Is it 
the same version as the SWF that is performing the load?

Was it published for version 6 (or earlier) perhaps?


Derek Vadneau

- Original Message - 
From: T. Michael Keesey [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, February 14, 2007 1:27 PM
Subject: SPAM-LOW: Re: [Flashcoders] onLoadComplete, but no onLoadInit


On 2/14/07, T. Michael Keesey [EMAIL PROTECTED] wrote:

 On 2/14/07, John VanHorn [EMAIL PROTECTED] wrote:
  this problem has been discussed before. is this what youre referring 
  to?
 
  http://chattyfig.figleaf.com/pipermail/flashcoders/2006-August/171681.html
 
  seems that MovieClipLoader events do not fire correctly when content 
  is
  loaded from cache. if this is your problem, would appended a 
  cache-killing
  query string to the url work? something like:
 
  mcl.loadclip(someswf.swf?d= + new Date().valueOf(),
targetMc
);

 I'll give it a try, but this is a problem in the IDE and in Firefox.
 (I actually have not tested in IE yet.)

Just tried it. It seems to remove the problem in Firefox, although it
prevents it from even being tested in the IDE. The problem still
exists in IE, though.

Incidentally, httpStatus (in the IDE, at least) for onLoadComplete is 
always 0.

Also worth mentioning: one of the SWFs it fails on is one that is
loading for the first time, so could not be cached. It's not a
cacheing issue. All of the failures are loading into movieclips that
previously housed other content--that might be something to look
into

One thing I might try is having the loaded content force a call to
onLoadInit. Crappy solution, but
-- 
Mike Keesey


___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] onLoadComplete, but no onLoadInit

2007-02-14 Thread T. Michael Keesey

On 2/14/07, Derek Vadneau [EMAIL PROTECTED] wrote:

What version is the SWF you are loading that causes you the grief? Is it
the same version as the SWF that is performing the load?

Was it published for version 6 (or earlier) perhaps?


Good thought, but--nope, they're both version 8 (AS2).
--
Mike Keesey
___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] onLoadComplete, but no onLoadInit

2007-02-14 Thread Andy Herrman

I had a similar problem (onInit firing when it actually failed) and I
found that checking the bytes loaded vs bytes total worked as a way to
check if it really succeeded or not.

  -Andy

On 2/14/07, Danny Kodicek [EMAIL PROTECTED] wrote:

  On 2/14/07, Danny Kodicek [EMAIL PROTECTED] wrote:
I thought I saw this discussed recently, but I couldn't find
   it in the archives. Apologies if I'm repeating something.
 
  You might be thinking about the thread I started with the
 opposite problem:
  onLoadInit was called when the load actually failed.

 Ahh, right. Ever find an answer to that?

The best I came up with was this (set fileExists to true first):

function onLoadComplete(tContainer:MovieClip, tStatus:Number) {
if (tStatus = 300 || tStatus  200) {
fileExists = false;
}
}
function onLoadInit(tContainer:MovieClip) {
if (!fileExists) {
this.onLoadError(tContainer);
} else {
// succeeded: do stuff here
}
}

Foolproof? I doubt it. But it works so far.

Danny

___
Flashcoders@chattyfig.figleaf.com
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


___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] onLoadComplete, but no onLoadInit

2007-02-14 Thread Arseniy Shklyaev

the files AS1 flash 6 will work loaded into AS2 8 player BTW. But there
could be problems with access. It will work in flash but in .swf
outside(web) could be bugs. There possible problems with access between
movies when load pl8 AS2 into pl8 AS2. I dont remember but there was some
stuff for me(I used Loaded vs Total only). Do u put Access network only
BTW? in publish window. Maybe to think up the way to use stuff like in
preloaders(loaded/total*100) or use some movieclip which has
onClipEven(load)?

On 2/14/07, Andy Herrman [EMAIL PROTECTED] wrote:


I had a similar problem (onInit firing when it actually failed) and I
found that checking the bytes loaded vs bytes total worked as a way to
check if it really succeeded or not.

   -Andy

On 2/14/07, Danny Kodicek [EMAIL PROTECTED] wrote:
   On 2/14/07, Danny Kodicek [EMAIL PROTECTED] wrote:
 I thought I saw this discussed recently, but I couldn't find
it in the archives. Apologies if I'm repeating something.
  
   You might be thinking about the thread I started with the
  opposite problem:
   onLoadInit was called when the load actually failed.
 
  Ahh, right. Ever find an answer to that?

 The best I came up with was this (set fileExists to true first):

 function onLoadComplete(tContainer:MovieClip, tStatus:Number) {
 if (tStatus = 300 || tStatus  200) {
 fileExists = false;
 }
 }
 function onLoadInit(tContainer:MovieClip) {
 if (!fileExists) {
 this.onLoadError(tContainer);
 } else {
 // succeeded: do stuff here
 }
 }

 Foolproof? I doubt it. But it works so far.

 Danny

 ___
 Flashcoders@chattyfig.figleaf.com
 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

___
Flashcoders@chattyfig.figleaf.com
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





--
-Arseniy Shklyaev
___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] onLoadComplete, but no onLoadInit

2007-02-14 Thread Arseniy Shklyaev

There is also System.security stuff. My file started to work inside other
after I added it.

On 2/14/07, Arseniy Shklyaev [EMAIL PROTECTED] wrote:


the files AS1 flash 6 will work loaded into AS2 8 player BTW. But there
could be problems with access. It will work in flash but in .swf
outside(web) could be bugs. There possible problems with access between
movies when load pl8 AS2 into pl8 AS2. I dont remember but there was some
stuff for me(I used Loaded vs Total only). Do u put Access network only
BTW? in publish window. Maybe to think up the way to use stuff like in
preloaders(loaded/total*100) or use some movieclip which has
onClipEven(load)?

On 2/14/07, Andy Herrman [EMAIL PROTECTED] wrote:

 I had a similar problem (onInit firing when it actually failed) and I
 found that checking the bytes loaded vs bytes total worked as a way to
 check if it really succeeded or not.

-Andy

 On 2/14/07, Danny Kodicek  [EMAIL PROTECTED] wrote:
On 2/14/07, Danny Kodicek [EMAIL PROTECTED] wrote:
  I thought I saw this discussed recently, but I couldn't find
 it in the archives. Apologies if I'm repeating something.
   
You might be thinking about the thread I started with the
   opposite problem:
onLoadInit was called when the load actually failed.
  
   Ahh, right. Ever find an answer to that?
 
  The best I came up with was this (set fileExists to true first):
 
  function onLoadComplete(tContainer:MovieClip, tStatus:Number) {
  if (tStatus = 300 || tStatus  200) {
  fileExists = false;
  }
  }
  function onLoadInit(tContainer:MovieClip) {
  if (!fileExists) {
  this.onLoadError(tContainer);
  } else {
  // succeeded: do stuff here
  }
  }
 
  Foolproof? I doubt it. But it works so far.
 
  Danny
 
  ___
  Flashcoders@chattyfig.figleaf.com
  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
 
 ___
 Flashcoders@chattyfig.figleaf.com
 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




--
-Arseniy Shklyaev





--
-Arseniy Shklyaev
___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] onLoadComplete, but no onLoadInit

2007-02-14 Thread T. Michael Keesey

Preliminary results seem to suggest that the problem only occurs when
compiling with the Flash 9 public alpha rather than Flash 8. I'd be
interested to hear if anyone else has had problems with
MovieClipLoader:onLoadInit not firing in SWFs published with the Flash
9 public alpha.
--
T. Michael Keesey
Director of Technology
Exopolis, Inc.
2894 Rowena Avenue Ste. B
Los Angeles, California 90039
___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] onLoadComplete, but no onLoadInit

2007-02-14 Thread T. Michael Keesey

On 2/14/07, John VanHorn [EMAIL PROTECTED] wrote:

this problem has been discussed before. is this what youre referring to?

http://chattyfig.figleaf.com/pipermail/flashcoders/2006-August/171681.html

seems that MovieClipLoader events do not fire correctly when content is
loaded from cache. if this is your problem, would appended a cache-killing
query string to the url work? something like:

mcl.loadclip(someswf.swf?d= + new Date().valueOf(),
  targetMc
  );


Apparently this is a problem, as well as onLoadInit not working
correctly all the time when publishing using the Flash 9 alpha. (And
in that case, it fails sporadically in Firefox and the IDE as well.)

Cache-busting is not a great solution, since 1) it makes it impossible
to test anything anywhere except from a server, and 2) it could cause
some large-ish files to download multiple times. I think I'll just
have to come up with a customized solution and, in general, learn not
to rely on onLoadInit.

Suck.
--
Mike Keesey
___
Flashcoders@chattyfig.figleaf.com
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