[Flashcoders] loader component - scaleContent does not always work

2006-04-20 Thread Robin Burrer
Hi there,

I'm having trouble with the v2 Loader component. The scaleContent does
not always work. Every 20th time or so the loaded jpeg image is not
scaled.

This happens rather randomly which is a bit of a pain. 

Here's a code that I'm using to initialize a loader component. Note that
I'm creating up to twenty loader components at the same time. The idea
is that when the first loader has finished loading it is set to visible
and the next loader starts loading ...

   private function iniLoader(loaderRef:Loader,myURL:String)
{
   loaderRef.autoLoad = false;
   loaderRef.contentPath =  myURL;
   loaderRef.scaleContent = true; 
   loaderRef.load(); 
   
   loaderRef.addEventListener(complete, this); 

}

I played around with order of the setting the properties but it didn't
help either.

Any ideas?


Robin
___
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] loader component - scaleContent does not always work

2006-04-20 Thread JesterXL
Turn it invisible while it's loading:

loaderRef.visible = false;
loaderRef.load();

When your complete event fires, try:

doLater ( this, laterStuff );
function laterStuff()
{
loaderRef.scaleContent = true;
loaderRef.visible = true;
}



- Original Message - 
From: Robin Burrer [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, April 20, 2006 9:43 PM
Subject: [Flashcoders] loader component - scaleContent does not always work


Hi there,

I'm having trouble with the v2 Loader component. The scaleContent does
not always work. Every 20th time or so the loaded jpeg image is not
scaled.

This happens rather randomly which is a bit of a pain. 

Here's a code that I'm using to initialize a loader component. Note that
I'm creating up to twenty loader components at the same time. The idea
is that when the first loader has finished loading it is set to visible
and the next loader starts loading ...

   private function iniLoader(loaderRef:Loader,myURL:String)
{
   loaderRef.autoLoad = false;
   loaderRef.contentPath =  myURL;
   loaderRef.scaleContent = true; 
   loaderRef.load(); 
   
   loaderRef.addEventListener(complete, this); 

}

I played around with order of the setting the properties but it didn't
help either.

Any ideas?


Robin
___
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] loader component - scaleContent does not always work

2006-04-20 Thread Robin Burrer
I'll give that a try thanks. Each of these Loader components is embedded
in a movie clip which is invisible by default. Setting the scaleContent
property after it finished loading could do the trick though.

Cheers

Robin



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of JesterXL
Sent: Friday, 21 April 2006 1:08 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] loader component - scaleContent does not
always work

Turn it invisible while it's loading:

loaderRef.visible = false;
loaderRef.load();

When your complete event fires, try:

doLater ( this, laterStuff );
function laterStuff()
{
loaderRef.scaleContent = true;
loaderRef.visible = true;
}



- Original Message - 
From: Robin Burrer [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, April 20, 2006 9:43 PM
Subject: [Flashcoders] loader component - scaleContent does not always
work


Hi there,

I'm having trouble with the v2 Loader component. The scaleContent does
not always work. Every 20th time or so the loaded jpeg image is not
scaled.

This happens rather randomly which is a bit of a pain. 

Here's a code that I'm using to initialize a loader component. Note that
I'm creating up to twenty loader components at the same time. The idea
is that when the first loader has finished loading it is set to visible
and the next loader starts loading ...

   private function iniLoader(loaderRef:Loader,myURL:String)
{
   loaderRef.autoLoad = false;
   loaderRef.contentPath =  myURL;
   loaderRef.scaleContent = true; 
   loaderRef.load(); 
   
   loaderRef.addEventListener(complete, this); 

}

I played around with order of the setting the properties but it didn't
help either.

Any ideas?


Robin
___
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
___
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] loader component - scaleContent does not always work

2006-04-20 Thread Rajat Paharia
It might also have something to do with the problem detailed here:
http://jeff.mxdj.com/loader_component_and_internet_explorer.htm
I use IELoader all the time now instead of the v2 Loader.

best, - rajat
--
Rajat Paharia
[EMAIL PROTECTED]
http://www.bunchball.com
http://www.rootburn.com

On 4/20/06, Robin Burrer [EMAIL PROTECTED] wrote:

 I'll give that a try thanks. Each of these Loader components is embedded
 in a movie clip which is invisible by default. Setting the scaleContent
 property after it finished loading could do the trick though.

 Cheers

 Robin



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL
 Sent: Friday, 21 April 2006 1:08 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] loader component - scaleContent does not
 always work

 Turn it invisible while it's loading:

 loaderRef.visible = false;
 loaderRef.load();

 When your complete event fires, try:

 doLater ( this, laterStuff );
 function laterStuff()
 {
 loaderRef.scaleContent = true;
 loaderRef.visible = true;
 }



 - Original Message -
 From: Robin Burrer [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Thursday, April 20, 2006 9:43 PM
 Subject: [Flashcoders] loader component - scaleContent does not always
 work


 Hi there,

 I'm having trouble with the v2 Loader component. The scaleContent does
 not always work. Every 20th time or so the loaded jpeg image is not
 scaled.

 This happens rather randomly which is a bit of a pain.

 Here's a code that I'm using to initialize a loader component. Note that
 I'm creating up to twenty loader components at the same time. The idea
 is that when the first loader has finished loading it is set to visible
 and the next loader starts loading ...

private function iniLoader(loaderRef:Loader,myURL:String)
 {
loaderRef.autoLoad = false;
loaderRef.contentPath =  myURL;
loaderRef.scaleContent = true;
loaderRef.load();

loaderRef.addEventListener(complete, this);

 }

 I played around with order of the setting the properties but it didn't
 help either.

 Any ideas?


 Robin
 ___
 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
 ___
 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] loader component - scaleContent does not always work

2006-04-20 Thread Robin Burrer
That's it! No with the IELoader everything works fine :-)
Great stuff!

Cheers

Robin

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rajat
Paharia
Sent: Friday, 21 April 2006 2:24 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] loader component - scaleContent does not
always work

It might also have something to do with the problem detailed here:
http://jeff.mxdj.com/loader_component_and_internet_explorer.htm
I use IELoader all the time now instead of the v2 Loader.

best, - rajat
--
Rajat Paharia
[EMAIL PROTECTED]
http://www.bunchball.com
http://www.rootburn.com

On 4/20/06, Robin Burrer [EMAIL PROTECTED] wrote:

 I'll give that a try thanks. Each of these Loader components is
embedded
 in a movie clip which is invisible by default. Setting the
scaleContent
 property after it finished loading could do the trick though.

 Cheers

 Robin



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of
JesterXL
 Sent: Friday, 21 April 2006 1:08 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] loader component - scaleContent does not
 always work

 Turn it invisible while it's loading:

 loaderRef.visible = false;
 loaderRef.load();

 When your complete event fires, try:

 doLater ( this, laterStuff );
 function laterStuff()
 {
 loaderRef.scaleContent = true;
 loaderRef.visible = true;
 }



 - Original Message -
 From: Robin Burrer [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Thursday, April 20, 2006 9:43 PM
 Subject: [Flashcoders] loader component - scaleContent does not always
 work


 Hi there,

 I'm having trouble with the v2 Loader component. The scaleContent does
 not always work. Every 20th time or so the loaded jpeg image is not
 scaled.

 This happens rather randomly which is a bit of a pain.

 Here's a code that I'm using to initialize a loader component. Note
that
 I'm creating up to twenty loader components at the same time. The idea
 is that when the first loader has finished loading it is set to
visible
 and the next loader starts loading ...

private function iniLoader(loaderRef:Loader,myURL:String)
 {
loaderRef.autoLoad = false;
loaderRef.contentPath =  myURL;
loaderRef.scaleContent = true;
loaderRef.load();

loaderRef.addEventListener(complete, this);

 }

 I played around with order of the setting the properties but it didn't
 help either.

 Any ideas?


 Robin
 ___
 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
 ___
 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
___
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] loader component - scaleContent does not always work

2006-04-20 Thread Robin Burrer
Actually it just happened again - I hate v2 components (and components
which are based on them) :-). I'm going to write my own Loader now - all
I need is movie clip that scales a loaded jpeg and dispatches an event
when the loading process is finished...


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robin
Burrer
Sent: Friday, 21 April 2006 3:23 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] loader component - scaleContent does not
always work

That's it! No with the IELoader everything works fine :-)
Great stuff!

Cheers

Robin

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rajat
Paharia
Sent: Friday, 21 April 2006 2:24 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] loader component - scaleContent does not
always work

It might also have something to do with the problem detailed here:
http://jeff.mxdj.com/loader_component_and_internet_explorer.htm
I use IELoader all the time now instead of the v2 Loader.

best, - rajat
--
Rajat Paharia
[EMAIL PROTECTED]
http://www.bunchball.com
http://www.rootburn.com

On 4/20/06, Robin Burrer [EMAIL PROTECTED] wrote:

 I'll give that a try thanks. Each of these Loader components is
embedded
 in a movie clip which is invisible by default. Setting the
scaleContent
 property after it finished loading could do the trick though.

 Cheers

 Robin



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of
JesterXL
 Sent: Friday, 21 April 2006 1:08 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] loader component - scaleContent does not
 always work

 Turn it invisible while it's loading:

 loaderRef.visible = false;
 loaderRef.load();

 When your complete event fires, try:

 doLater ( this, laterStuff );
 function laterStuff()
 {
 loaderRef.scaleContent = true;
 loaderRef.visible = true;
 }



 - Original Message -
 From: Robin Burrer [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Thursday, April 20, 2006 9:43 PM
 Subject: [Flashcoders] loader component - scaleContent does not always
 work


 Hi there,

 I'm having trouble with the v2 Loader component. The scaleContent does
 not always work. Every 20th time or so the loaded jpeg image is not
 scaled.

 This happens rather randomly which is a bit of a pain.

 Here's a code that I'm using to initialize a loader component. Note
that
 I'm creating up to twenty loader components at the same time. The idea
 is that when the first loader has finished loading it is set to
visible
 and the next loader starts loading ...

private function iniLoader(loaderRef:Loader,myURL:String)
 {
loaderRef.autoLoad = false;
loaderRef.contentPath =  myURL;
loaderRef.scaleContent = true;
loaderRef.load();

loaderRef.addEventListener(complete, this);

 }

 I played around with order of the setting the properties but it didn't
 help either.

 Any ideas?


 Robin
 ___
 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
 ___
 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
___
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

[Flashcoders] loader component - scaleContent does not always work

2006-04-20 Thread Bjorn Schultheiss
It was only a matter of time :)

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robin Burrer
Sent: Friday, 21 April 2006 3:39 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] loader component - scaleContent does not always
work

Actually it just happened again - I hate v2 components (and components
which are based on them) :-). I'm going to write my own Loader now - all
I need is movie clip that scales a loaded jpeg and dispatches an event
when the loading process is finished...


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robin
Burrer
Sent: Friday, 21 April 2006 3:23 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] loader component - scaleContent does not
always work

That's it! No with the IELoader everything works fine :-)
Great stuff!

Cheers

Robin

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rajat
Paharia
Sent: Friday, 21 April 2006 2:24 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] loader component - scaleContent does not
always work

It might also have something to do with the problem detailed here:
http://jeff.mxdj.com/loader_component_and_internet_explorer.htm
I use IELoader all the time now instead of the v2 Loader.

best, - rajat
--
Rajat Paharia
[EMAIL PROTECTED]
http://www.bunchball.com
http://www.rootburn.com

On 4/20/06, Robin Burrer [EMAIL PROTECTED] wrote:

 I'll give that a try thanks. Each of these Loader components is
embedded
 in a movie clip which is invisible by default. Setting the
scaleContent
 property after it finished loading could do the trick though.

 Cheers

 Robin



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of
JesterXL
 Sent: Friday, 21 April 2006 1:08 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] loader component - scaleContent does not
 always work

 Turn it invisible while it's loading:

 loaderRef.visible = false;
 loaderRef.load();

 When your complete event fires, try:

 doLater ( this, laterStuff );
 function laterStuff()
 {
 loaderRef.scaleContent = true;
 loaderRef.visible = true;
 }



 - Original Message -
 From: Robin Burrer [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Thursday, April 20, 2006 9:43 PM
 Subject: [Flashcoders] loader component - scaleContent does not always
 work


 Hi there,

 I'm having trouble with the v2 Loader component. The scaleContent does
 not always work. Every 20th time or so the loaded jpeg image is not
 scaled.

 This happens rather randomly which is a bit of a pain.

 Here's a code that I'm using to initialize a loader component. Note
that
 I'm creating up to twenty loader components at the same time. The idea
 is that when the first loader has finished loading it is set to
visible
 and the next loader starts loading ...

private function iniLoader(loaderRef:Loader,myURL:String)
 {
loaderRef.autoLoad = false;
loaderRef.contentPath =  myURL;
loaderRef.scaleContent = true;
loaderRef.load();

loaderRef.addEventListener(complete, this);

 }

 I played around with order of the setting the properties but it didn't
 help either.

 Any ideas?


 Robin
 ___
 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
 ___
 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
___
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