RE: [Flashcoders] Flex expires... what then?

2006-01-22 Thread matti bar zeev
Thnx :)

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Flashcoders
mailing list
Sent: Monday, January 23, 2006 02:34
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Flex expires... what then?
Importance: Low


Hi,

There will be a new public beta pretty soon (end of month?  Beginning of
next month?  Somewhere around there.)

-David
Adobe 

> -Original Message-
> From: [EMAIL PROTECTED]
  
> [ mailto:[EMAIL PROTECTED]
 ] On Behalf 
> Of matti bar zeev
> Sent: Sunday, January 22, 2006 9:18 AM
> To: FlashCoders (E-mail)
> Subject: [Flashcoders] Flex expires... what then?
> 
> hey list,
> I was just wondering, my Flex Builder 1.0 alpha is about to 
> expire, as, I guess, most of yours are.
> my question for Adobe is: are you gonna release a new 
> imporved version? are you gonna release another version at 
> all? are you gonna prolong the expiration date?
> what are the plans?
> 
> thnx,
> flashmattic.
> 
> 
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
 
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
> 
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com 

http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Flash (AS2) vs Flex Remoting with CF

2006-01-22 Thread Chris Velevitch
I've seen references to the _RemoteClass trick, but only in relation
to returning results to Flex. What this does is allow to say:-

 var x:MyClass = resultObj.result;

instead of explicitly assigning each element of MyClass with the
corresponding value in resultObj.result;

How do you do this in Flash? There is an implicitation that the Flash
Remoting classes for Flex and Flash are different.


Chris
--
Chris Velevitch
Manager - Sydney Flash Platform Developers Group
www.flashdev.org.au
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Flash Remoting

2006-01-22 Thread JP
 

> If you are using AS2, then you want to use import, not #include (which is
AS1).

DOH! I should have known that. Thanks!

Now I've got to go fix my Win config. The installer claims that 'remoting is
installed' and won't run again, but import mx.remoting.Services can't be
loaded and clearly is not where it's suppose to be. Ah well, that's the easy
part. Thanks again!

- jp

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] LoadMovie Problem with JPEGs

2006-01-22 Thread Ramon Tayag
sorry! disregard my post..

On 1/23/06, Ramon Tayag <[EMAIL PROTECTED]> wrote:
> You'll need a holder of sorts:
>
> ImageHolder movieclip that holds all the info including the ImageMC
> which actually displays the picture
>
> On 1/23/06, Robert Sandie <[EMAIL PROTECTED]> wrote:
> > Having a problem loading in an image within an AS2 class and LoadMovie with
> > jpegs. It loads the image perfectly but as soon as it does this it
> > automatically deletes all existing variables that are running within the
> > class. Instead of it losing all information  upon loadMovie would like to
> > keep it.
> >
> >
> >
> > class ui.overlay extends EventClip {
> >
> >
> >
> > .
> >
> >
> >
> > public function showImage(url:String, text: String):Void{
> >
> > this.loadMovie(url);
> >
> > this.text=text;
> >
> > _delegate = EventDelegate.create(this, onHitDataGrid);
> >
> > datagrid.addEventListener("datagrid", _delegate);
> >
> > }
> >
> >
> >
> > private function onHitDataGrid(e:Object):Void{
> >
> > trace(text); //works when don't load the jpeg.. does not work
> > when I do load the jpeg.
> >
> > ..
> >
> > }
> >
> >
> >
> >
> >
> > I have tried loading the movie into another movieclip inside of this class
> > and still no success. This is a little unusual and really my first time
> > loading in Images dynamically.
> >
> >
> >
> > Been struggling with this one for a while. Anyone know what might be going
> > on?
> >
> >
> >
> >
> >
> > -Rob
> >
> >
> >
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
>
>
> --
> Ramon Miguel M. Tayag
>


--
Ramon Miguel M. Tayag
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] LoadMovie Problem with JPEGs

2006-01-22 Thread stacey
Pressed SEND too soon and caught an oops!!

it should be :
//
  public function overlay(){
holder_mc=createEmptyMovieClip("holder_mc",1);

}
//

> Not sure the setup but the vars are getting wiped away for sure so its
> some kinda scoping issue.Loading the movieclip into "this" should wipe
> the variables out. Loading them into an emptymovieclip, shouldn't.
>
>
>
>
>
> class ui.overlay extends EventClip{
> // not sure what eventClip is but whatever..
>
>   private var holder_mc:MovieClip;
>   private var text:String;
>
>   public function overlay(){
>  holder_mc.createEmptyMovieClip("holder_mc",1);
>   }
>
>   public function showImage(url:String,text:String){
>
> holder_mc.loadMovie(url);
> this.text=text;
> trace("TEXT has been set"+this.text);
> _delegate = EventDelegate.create(this, onHitDataGrid);
> datagrid.addEventListener("datagrid", _delegate);
>
>
>   }
>   public function onHitDataGrid(obj:Object){
> trace("TEXT has been set"+this.text);
>   }
>
> }
>
>
>> Having a problem loading in an image within an AS2 class and LoadMovie
>> with jpegs. It loads the image perfectly but as soon as it does this
>> it automatically deletes all existing variables that are running
>> within the class. Instead of it losing all information  upon loadMovie
>> would like to keep it.
>>
>>
>>
>> class ui.overlay extends EventClip {
>>
>>
>>
>> .
>>
>>
>>
>> public function showImage(url:String, text: String):Void{
>>
>> this.loadMovie(url);
>>
>> this.text=text;
>>
>> _delegate = EventDelegate.create(this, onHitDataGrid);
>>
>> datagrid.addEventListener("datagrid", _delegate);
>>
>> }
>>
>>
>>
>> private function onHitDataGrid(e:Object):Void{
>>
>> trace(text); //works when don't load the jpeg.. does not
>> work
>> when I do load the jpeg.
>>
>> ..
>>
>> }
>>
>>
>>
>>
>>
>> I have tried loading the movie into another movieclip inside of this
>> class and still no success. This is a little unusual and really my
>> first time loading in Images dynamically.
>>
>>
>>
>> Been struggling with this one for a while. Anyone know what might be
>> going on?
>>
>>
>>
>>
>>
>> -Rob
>>
>>
>>
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
>
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] LoadMovie Problem with JPEGs

2006-01-22 Thread stacey
Not sure the setup but the vars are getting wiped away for sure so its
some kinda scoping issue.Loading the movieclip into "this" should wipe the
variables out. Loading them into an emptymovieclip, shouldn't.





class ui.overlay extends EventClip{
// not sure what eventClip is but whatever..

  private var holder_mc:MovieClip;
  private var text:String;

  public function overlay(){
 holder_mc.createEmptyMovieClip("holder_mc",1);
  }

  public function showImage(url:String,text:String){

holder_mc.loadMovie(url);
this.text=text;
trace("TEXT has been set"+this.text);
_delegate = EventDelegate.create(this, onHitDataGrid);
datagrid.addEventListener("datagrid", _delegate);


  }
  public function onHitDataGrid(obj:Object){
trace("TEXT has been set"+this.text);
  }

}


> Having a problem loading in an image within an AS2 class and LoadMovie
> with jpegs. It loads the image perfectly but as soon as it does this it
> automatically deletes all existing variables that are running within the
> class. Instead of it losing all information  upon loadMovie would like
> to keep it.
>
>
>
> class ui.overlay extends EventClip {
>
>
>
> .
>
>
>
> public function showImage(url:String, text: String):Void{
>
> this.loadMovie(url);
>
> this.text=text;
>
> _delegate = EventDelegate.create(this, onHitDataGrid);
>
> datagrid.addEventListener("datagrid", _delegate);
>
> }
>
>
>
> private function onHitDataGrid(e:Object):Void{
>
> trace(text); //works when don't load the jpeg.. does not
> work
> when I do load the jpeg.
>
> ..
>
> }
>
>
>
>
>
> I have tried loading the movie into another movieclip inside of this
> class and still no success. This is a little unusual and really my first
> time loading in Images dynamically.
>
>
>
> Been struggling with this one for a while. Anyone know what might be
> going on?
>
>
>
>
>
> -Rob
>
>
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] LoadMovie Problem with JPEGs

2006-01-22 Thread Ramon Tayag
You'll need a holder of sorts:

ImageHolder movieclip that holds all the info including the ImageMC
which actually displays the picture

On 1/23/06, Robert Sandie <[EMAIL PROTECTED]> wrote:
> Having a problem loading in an image within an AS2 class and LoadMovie with
> jpegs. It loads the image perfectly but as soon as it does this it
> automatically deletes all existing variables that are running within the
> class. Instead of it losing all information  upon loadMovie would like to
> keep it.
>
>
>
> class ui.overlay extends EventClip {
>
>
>
> .
>
>
>
> public function showImage(url:String, text: String):Void{
>
> this.loadMovie(url);
>
> this.text=text;
>
> _delegate = EventDelegate.create(this, onHitDataGrid);
>
> datagrid.addEventListener("datagrid", _delegate);
>
> }
>
>
>
> private function onHitDataGrid(e:Object):Void{
>
> trace(text); //works when don't load the jpeg.. does not work
> when I do load the jpeg.
>
> ..
>
> }
>
>
>
>
>
> I have tried loading the movie into another movieclip inside of this class
> and still no success. This is a little unusual and really my first time
> loading in Images dynamically.
>
>
>
> Been struggling with this one for a while. Anyone know what might be going
> on?
>
>
>
>
>
> -Rob
>
>
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>


--
Ramon Miguel M. Tayag
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] LoadMovie Problem with JPEGs

2006-01-22 Thread Robert Sandie
Having a problem loading in an image within an AS2 class and LoadMovie with
jpegs. It loads the image perfectly but as soon as it does this it
automatically deletes all existing variables that are running within the
class. Instead of it losing all information  upon loadMovie would like to
keep it.

 

class ui.overlay extends EventClip {

 

.

 

public function showImage(url:String, text: String):Void{

this.loadMovie(url);

this.text=text;

_delegate = EventDelegate.create(this, onHitDataGrid);

datagrid.addEventListener("datagrid", _delegate);

}

 

private function onHitDataGrid(e:Object):Void{

trace(text); //works when don't load the jpeg.. does not work
when I do load the jpeg.

..

}

 

 

I have tried loading the movie into another movieclip inside of this class
and still no success. This is a little unusual and really my first time
loading in Images dynamically.  

 

Been struggling with this one for a while. Anyone know what might be going
on?

 

 

-Rob

 

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash Remoting

2006-01-22 Thread Grant Cox
If you are using AS2, then you want to use import, not #include (which 
is AS1).


import mx.remoting.Service;
import mx.services.Log;
import mx.remoting.debug.NetDebug;

Regards,
Grant Cox


JP wrote:


I'm running into very odd issues with the installation of Flash remoting
components for AS2 on both Windows and OSX using Flash MX 2004.

1. In both cases, using #include "NetServices.as" or "NetDebug.as" produces
a 'file not found' compiler error.
2. After reading through a bunch of Tec notes, I discovered that those two
files needed to be placed into the include directory. After that, Flash
found the files, but...
3. Suddenly the compiler spit out 20+ warnings about improper import paths
defined in these files.

import mx.remoting.degug. <-- place filename here


I started madly shuffling files around to their correct paths (on the OSX
version), but now I'm getting 20+ messages from within the component files
when including NetDebug or NetServices:

**Error** Volume:Users:jpowers:Library:Application Support:Macromedia:
Flash MX 2004:en:Configuration:Include:NetDebug.as: Line 10: Classes may
only be defined 
in external ActionScript 2.0 class scripts.

intrinsic class mx.remoting.debug.NetDebug extends Object

or

[snip] Syntax error. import mx.remoting.debug.events.NetDebugTrace;
[snip] Syntax error. static public function
getNetDebug():mx.remoting.debug.NetDebug

Can anyone tell me how I can sort this out? I'm stumped.

-jp

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash Remoting

2006-01-22 Thread Chris Velevitch
On Windows, did you run the AS2 Remoting Components installer?

I only use Windows, so I can't help you with Mac.


Chris
--
Chris Velevitch
Manager - Sydney Flash Platform Developers Group
www.flashdev.org.au
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Flash Remoting

2006-01-22 Thread JP

I'm running into very odd issues with the installation of Flash remoting
components for AS2 on both Windows and OSX using Flash MX 2004.

1. In both cases, using #include "NetServices.as" or "NetDebug.as" produces
a 'file not found' compiler error.
2. After reading through a bunch of Tec notes, I discovered that those two
files needed to be placed into the include directory. After that, Flash
found the files, but...
3. Suddenly the compiler spit out 20+ warnings about improper import paths
defined in these files.

import mx.remoting.degug. <-- place filename here


I started madly shuffling files around to their correct paths (on the OSX
version), but now I'm getting 20+ messages from within the component files
when including NetDebug or NetServices:

**Error** Volume:Users:jpowers:Library:Application Support:Macromedia:
Flash MX 2004:en:Configuration:Include:NetDebug.as: Line 10: Classes may
only be defined 
in external ActionScript 2.0 class scripts.
intrinsic class mx.remoting.debug.NetDebug extends Object

or

[snip] Syntax error. import mx.remoting.debug.events.NetDebugTrace;
[snip] Syntax error. static public function
getNetDebug():mx.remoting.debug.NetDebug

Can anyone tell me how I can sort this out? I'm stumped.

-jp

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Flash Media Server

2006-01-22 Thread JP


My installation of FMS2 seemed to go well. (I chose the default insall
location and am just using the (free) developer license). I quickly ran into
the same problem however, but found that the built in Windows Firewall was
blocking outside connections. The other thing I found was that the max
connections limit was set to equal 1 in the installed Vhost.xml file.
(Developer edition allows for up to 10 connections). Once I changed this,
all the examples seemed to work for me.


-10


Hope that helps,

- JP





> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Martin Klasson
> Sent: Wednesday, January 18, 2006 9:41 AM
> To: Flashcoders mailing list
> Subject: [Flashcoders] Flash Media Server
> 
> 
> Hi Coders.
> 
> I guess this is the wrong list to be talking about Flash Media Server.
> But I do have serious installation-problems which makes the 
> FMS running and working, but the samples doesn't. rtmpt works 
> when set in the source-file, but rtmp didn't, and now neither 
> one works.
> 
> Are there any great technical forums in which is for FMS questions?
> -I have tried the forum at flashcomguru.com, but that had low 
> traffic and no help given from there.
> 
> You guys know of any good FMS-places?
> -macromedia.com is good, but couldn't find the solutions there.
> 
> / martin
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> 

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Flex expires... what then?

2006-01-22 Thread David Mendels
Hi,

There will be a new public beta pretty soon (end of month?  Beginning of
next month?  Somewhere around there.)

-David
Adobe 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of matti bar zeev
> Sent: Sunday, January 22, 2006 9:18 AM
> To: FlashCoders (E-mail)
> Subject: [Flashcoders] Flex expires... what then?
> 
> hey list,
> I was just wondering, my Flex Builder 1.0 alpha is about to 
> expire, as, I guess, most of yours are.
> my question for Adobe is: are you gonna release a new 
> imporved version? are you gonna release another version at 
> all? are you gonna prolong the expiration date?
> what are the plans?
> 
> thnx,
> flashmattic.
> 
> 
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Problems with Flash Plugin Switcher 2.1.0

2006-01-22 Thread Nathan Derksen

Yup, works great. I wish there was a version for the Mac as well.

Nathan
http://www.nathanderksen.com


On Jan 22, 2006, at 4:35 PM, Johannes Nel wrote:


not an insatller just an executable and it works like a charm.

On 1/22/06, Adrian Lynch <[EMAIL PROTECTED]> wrote:


I'm just about to install Flash Plugin Switcher 2.1.0 and wondered  
if this

has caused any problems for anyone.

I'm coming to the end of a project and I don't fancy trying to fix  
player

issues when I should be working :O)

Oh and does it work as nicely as it sounds?

Thanks.

Adrian

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders





--
j:pn
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Problems with Flash Plugin Switcher 2.1.0

2006-01-22 Thread Johannes Nel
not an insatller just an executable and it works like a charm.

On 1/22/06, Adrian Lynch <[EMAIL PROTECTED]> wrote:
>
> I'm just about to install Flash Plugin Switcher 2.1.0 and wondered if this
> has caused any problems for anyone.
>
> I'm coming to the end of a project and I don't fancy trying to fix player
> issues when I should be working :O)
>
> Oh and does it work as nicely as it sounds?
>
> Thanks.
>
> Adrian
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



--
j:pn
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Problems with Flash Plugin Switcher 2.1.0

2006-01-22 Thread Adrian Lynch
I'm just about to install Flash Plugin Switcher 2.1.0 and wondered if this
has caused any problems for anyone.

I'm coming to the end of a project and I don't fancy trying to fix player
issues when I should be working :O)

Oh and does it work as nicely as it sounds?

Thanks.

Adrian

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] NetConnection Debugger not working in Flash 8?

2006-01-22 Thread Grant Cox
Yes and no.  On my main machine I have both installed, but on a 
secondary machine I uninstalled Flash MX2004 before installing Flash 8, 
and it exhibits the same problems.


Very odd indeed.


Gavin Lilley wrote:


I have exactly the same problem. I have installed a fresh version of 8 and
then remoting and components.

Do you have Flash 7 and Flash 8 on the same pc?

Im wondering if it is possible to install 7 first and then install 8 'over
the top of 7' to solve this problem.

I read about copying old library files across but as far as I can see I am
missing nothing.

--
Gavin Lilley.


On 1/20/06, Grant Cox <[EMAIL PROTECTED]> wrote:
 


I have just upgraded my workflow to Flash 8 and the latest MTASC today,
and found that while my Remoting calls were working, nothing was
printing in the NetConnection Debugger.  After some debugging I have
found that I cannot get anything to print to the NetConnection Debugger
even from within the Flash 8 IDE, and this is with a clean reinstall of
Flash 8 (no previous version of Flash installed) and the Remoting
components.  I have set the Flash 8 security settings to "Always Allow",
and to trust anything in "C:\".

The follow code, when applied to the first frame of an empty movie with
just the RemotingConnector Component on the stage, works in Flash 7, but
does not work in Flash 8.  The log messages work fine (and the remoting
connection is created and works), but nothing appears in the
NetConnection Debugger.

Can anyone see a problem with this, or even replicate the error?

Regards,
Grant Cox


///
import mx.remoting.Service;
import mx.services.Log;
import mx.remoting.debug.NetDebug;

NetDebug.initialize();

var myLogger:Log = new Log(Log.DEBUG, "logger1");
myLogger.onLog = function(message:String) {
   trace("NetConnection LOG: " + message);
};

var gatewayURL:String = "http://localhost/myproject/gateway.php";;

var userService:Service = new Service ( gatewayURL, myLogger, "Users",
null, null );
trace("gateway at: " + gatewayURL + " user service: " + userService );
NetDebug.trace("testing testing testing");

stop();
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

   


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Q:ASSetPropFlags and nested objects

2006-01-22 Thread John Grden
we've got a pretty good bit of information on ASSetPropFlags here:

http://labs.blitzagency.com/?p=59

Some mistakes corrected, and some new information on usage was just posted
yesterday in the comments - very good information

hth,

On 1/22/06, Mark Winterhalder <[EMAIL PROTECTED]> wrote:
>
> > How do I trace out [object Object]??
>
> use typeof to check if it's "object", "array", "movieclip" or
> "function" (the types that can contain others as properties). if so,
> just ASSetPropFlags again and for..in loop through these, too,
> recursively.
>
> *however*, you'll get stuck in a loop very quickly. just imagine a
> reference to _root somewhere... that's why you must tag objects
> somehow, to prevent looping through them again. also, you'll need a
> time-to-live parameter, to set the maximum recursion depth (say, to
> 3).
>
> this has all been discussed already, on december 1st and the following
> days. the thread was called "Recursive loop showing all items".
>
> hth,
> mark
>
>
>
> On 1/22/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > Hi
> > I want to be able to trace out ALL properties and values for nested
> objects. Will ASSetPropFlags allow me to do this??
> >
> >
> > If I define an object as:
> >
> > //BEGIN CODE
> > myObject={
> > a:1,
> > b:2,
> > c:3,
> >  _event:{_parentOb:this,
> >method:'func',
> >_params:{arg1:1, arg2:2, arg3:3}
> >}
> >
> > };
> >
> >
> > ASSetPropFlags(myObject,null,0,1);
> >
> >
> >
> > //trace out properties and values
> >
> > for(var prop:String in myObject){
> >
> > trace("propertyname:"+prop);
> > trace("propertyvalue:"+myObject[prop]) ;
> >
> >
> > }
> >
> >
> > //CODE END
> >
> > I get the following:
> > propertyname:a
> > propertyvalue:1
> > propertyname:b
> > propertyvalue:2
> > propertyname:c
> > propertyvalue:3
> > propertyname:_event
> > propertyvalue:[object Object]
> > propertyname:__proto__
> > propertyvalue:[object Object]
> > propertyname:constructor
> > propertyvalue:[type Function]
> >
> >
> > How do I trace out [object Object]??
> >
> >
> >
> > Thanks in advance
> > Jim Bachalo
> >
> >
> > [e] jbach at bitstream.ca
> > [c] 416.668.0034
> > [w] www.bitstream.ca
> > 
> > "...all improvisation is life in search of a style."
> >  - Bruce Mau,'LifeStyle'
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
>
>
> --
> http://snafoo.org/
> jabber: [EMAIL PROTECTED]
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



--
John Grden - Blitz
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Q:ASSetPropFlags and nested objects

2006-01-22 Thread Mark Winterhalder
> How do I trace out [object Object]??

use typeof to check if it's "object", "array", "movieclip" or
"function" (the types that can contain others as properties). if so,
just ASSetPropFlags again and for..in loop through these, too,
recursively.

*however*, you'll get stuck in a loop very quickly. just imagine a
reference to _root somewhere... that's why you must tag objects
somehow, to prevent looping through them again. also, you'll need a
time-to-live parameter, to set the maximum recursion depth (say, to
3).

this has all been discussed already, on december 1st and the following
days. the thread was called "Recursive loop showing all items".

hth,
mark



On 1/22/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi
> I want to be able to trace out ALL properties and values for nested objects. 
> Will ASSetPropFlags allow me to do this??
>
>
> If I define an object as:
>
> //BEGIN CODE
> myObject={
> a:1,
> b:2,
> c:3,
>  _event:{_parentOb:this,
>method:'func',
>_params:{arg1:1, arg2:2, arg3:3}
>}
>
> };
>
>
> ASSetPropFlags(myObject,null,0,1);
>
>
>
> //trace out properties and values
>
> for(var prop:String in myObject){
>
> trace("propertyname:"+prop);
> trace("propertyvalue:"+myObject[prop]) ;
>
>
> }
>
>
> //CODE END
>
> I get the following:
> propertyname:a
> propertyvalue:1
> propertyname:b
> propertyvalue:2
> propertyname:c
> propertyvalue:3
> propertyname:_event
> propertyvalue:[object Object]
> propertyname:__proto__
> propertyvalue:[object Object]
> propertyname:constructor
> propertyvalue:[type Function]
>
>
> How do I trace out [object Object]??
>
>
>
> Thanks in advance
> Jim Bachalo
>
>
> [e] jbach at bitstream.ca
> [c] 416.668.0034
> [w] www.bitstream.ca
> 
> "...all improvisation is life in search of a style."
>  - Bruce Mau,'LifeStyle'
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>


--
http://snafoo.org/
jabber: [EMAIL PROTECTED]
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Documenting my code

2006-01-22 Thread Ian Thomas
Sorry, didn't understand that one...

I have already tested as2api - and unfortunately it comes up with a bunch of
errors on the Linux box and produces no output.

Ian

On 1/22/06, erixtekila <[EMAIL PROTECTED]> wrote:
>
> > Any chance of a command-line driven version so that I can achieve my
> > goal of
> > having server-side generated documentation on my SVN box..?
> >
> You'd test as2api
>
> my 2 cents
>
> ---
> erixtekila
> http://blog.v-i-a.net/
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Q:ASSetPropFlags and nested objects

2006-01-22 Thread bitstreams
Hi
I want to be able to trace out ALL properties and values for nested objects. 
Will ASSetPropFlags allow me to do this??


If I define an object as:

//BEGIN CODE
myObject={
a:1, 
b:2, 
c:3,
 _event:{_parentOb:this, 
   method:'func', 
   _params:{arg1:1, arg2:2, arg3:3}
   }

};


ASSetPropFlags(myObject,null,0,1);



//trace out properties and values

for(var prop:String in myObject){

trace("propertyname:"+prop); 
trace("propertyvalue:"+myObject[prop]) ;


}


//CODE END

I get the following:
propertyname:a
propertyvalue:1
propertyname:b
propertyvalue:2
propertyname:c
propertyvalue:3
propertyname:_event
propertyvalue:[object Object]
propertyname:__proto__
propertyvalue:[object Object]
propertyname:constructor
propertyvalue:[type Function]


How do I trace out [object Object]??



Thanks in advance
Jim Bachalo


[e] jbach at bitstream.ca
[c] 416.668.0034
[w] www.bitstream.ca

"...all improvisation is life in search of a style."
 - Bruce Mau,'LifeStyle'
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Documenting my code

2006-01-22 Thread erixtekila
Any chance of a command-line driven version so that I can achieve my 
goal of

having server-side generated documentation on my SVN box..?


You'd test as2api

my 2 cents

---
erixtekila
http://blog.v-i-a.net/

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Documenting my code

2006-01-22 Thread Ian Thomas
Looks good!

Any chance of a command-line driven version so that I can achieve my goal of
having server-side generated documentation on my SVN box..?

Cheers,
  Ian

On 1/22/06, Sam Wootton <[EMAIL PROTECTED]> wrote:
>
> Yes, its written in Java.
>
> Regards, Sam
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] file upload script

2006-01-22 Thread Paul BH
Hi there,
 does anyone have a really simple file upload script in ASP.NET that I
can use with flash?

I got the following from oreilly, but not sure how best to adapt this
to work with filereference...

<%@ Import namespace="System.IO"%>


Uploading a File


Dim savePath As String = "C:\temp\"
Sub Upload_Click(source As Object, e As EventArgs)

  If Not (uploadedFile.PostedFile Is Nothing) Then
Try
  Dim postedFile = uploadedFile.PostedFile
  Dim filename As String = Path.GetFileName(postedFile.FileName)
  Dim contentType As String = postedFile.ContentType
  Dim contentLength As Integer = postedFile.ContentLength

  postedFile.SaveAs(savePath & filename)
  message.Text = postedFile.Filename & " uploaded" & _
"
content type: " & contentType & _ "
content length: " & contentLength.ToString() Catch exc As Exception message.Text = "Failed uploading file" End Try End If End Sub Select File to Upload: ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Documenting my code

2006-01-22 Thread Sam Wootton
Yes, its written in Java.

Regards, Sam

On 22/01/06, erixtekila <[EMAIL PROTECTED]> wrote:
>
> > I have written a documentation tool:
> >
> > It sits on your desktop as an executable and all you have to do is
> > pass it
> > the actionscript files:
> >
> > http://www.as2docs.com/
>
> Is it a Java tool ?
> ---
> erixtekila
> http://blog.v-i-a.net/
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Documenting my code

2006-01-22 Thread erixtekila

I have written a documentation tool:

It sits on your desktop as an executable and all you have to do is 
pass it

the actionscript files:

http://www.as2docs.com/


Is it a Java tool ?
---
erixtekila
http://blog.v-i-a.net/

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Duplicating MC with Loader inside

2006-01-22 Thread Adrian Lynch
Well, this is what I've come up with:

// Show the MC with Loader that we will duplicate below
loaderContainer.loaderToDupe.contentPath = "dupe_loader.jpg";
loaderContainer.loaderToDupe.scaleContent = false;
loaderContainer.loaderToDupe.load();

loaderContainer.duplicateMovieClip("newLoaderContainer", 10);

// Defined a function in the yet to be initialised nested Loader
newLoaderContainer.loaderToDupe.whatToDo = function() {
trace("whatDoTo called");
this._x += 50;
this._y += 50;
this.contentPath = "dupe_loader.jpg";
this.scaleContent = false;
this.load();
};

// Use the container's oEF to wait for the existence of the loader's doLater
newLoaderContainer.onEnterFrame = function() {

if ( this.loaderToDupe.doLater != undefined ) {

trace("doLater() is there");
this.loaderToDupe.doLater(this.loaderToDupe, "whatToDo");
this.onEnterFrame = undefined;

} else {
trace("doLater() isn't there yet, so wait");
}

};

It assumes an MC, loaderContainer, with a Loader inside, loaderToDupe and an
image to load, dupe_loader.jpg.

If anyone has any thoughts on this I'd still like to hear them.

Adrian

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Adrian
Lynch
Sent: 22 January 2006 13:26
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Duplicating MC with Loader inside


Maybe doLater is the property I wait to be defined?

Ade

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Adrian
Lynch
Sent: 22 January 2006 13:09
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Duplicating MC with Loader inside


Would UIObject.doLater() be of any use?

>From the docs:
"Method; calls a user-defined function only after the component has finished
setting all of its properties from the Property inspector or Component
inspector. All version 2 components that inherit from UIObject have the
doLater() method."

Adrian

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Adrian
Lynch
Sent: 22 January 2006 13:04
To: Flashcoders
Subject: [Flashcoders] Duplicating MC with Loader inside


I knew of an initialisation problem with nested Loaders from another project
I did. Back then I didn't look too much in to it but this time I want to see
if I can find a solution.

Here's what I have and what I'm doing/trying to do:

- I have an MC on stage, inside this is a Loader component.

- I duplicate this MC, and hence the Loader inside it.

- I then set the properties' of the duped MC's Loader, contentPath and
scaleContent, and then call it's load() method.

If I do the above in sequence, the duped MC's Loader isn't initialised by
the time I try to set it's properties'.

If I delay using the duped MC's Loader, and instead fire an event that does
it, a button click for example, the Loader works fine.

I can think of two solutions, but I'm not too sure about them.

1. Set an interval to give the Loader time to get ready and then set the
properties.

2. Do the duping, check using an onEnterFrame to see if the nested Loaders
properties' exist and then set them.

The problem with 1 is, how long is long enough?

The problem with 2 is, will I get away with checking one property or will I
have to check them all? For example, I can check to see that contentPath is
difined, but what if load() isn't?

Does anyone have any thoughts on this?

I suppose another question is, how can you tell if a component if fully
initialised and ready to use?

Thanks.

Adrian

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Documenting my code

2006-01-22 Thread Sam Wootton
I have written a documentation tool:

It sits on your desktop as an executable and all you have to do is pass it
the actionscript files:

http://www.as2docs.com/

Follow the link at the top to see what it produces.  It really is absurdly
easy to use - point-and-click for your *.as files and they're documented.

Should be completely finished to 2 weeks.

Regards, Sam



On 20/01/06, Ian Thomas <[EMAIL PROTECTED]> wrote:
>
> Looks good - but sadly doesn't support inheritance:
>
> http://www.senocular.com/projects/ZenDoc/doc/#manual_limitations
>
> Which is a real shame.
>
> The hunt for the perfect documentation tool goes on. :-)
>
> (At this rate I might be forced to write one. ;-) )
>
> Ian
>
> On 1/20/06, Duncan Reid <[EMAIL PROTECTED]> wrote:
> >
> > Not sure if this has been mentioned but there is also ZenDoc written in
> > php
> > that has multiple output modes based on templates, i've played a little
> > with
> > the demo and it looks promising, plus it's free and open as far as i can
> > tell...
> >
> > http://www.senocular.com/projects/?project=ZenDoc&page=demo
> >
> > Dunc
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flex expires... what then?

2006-01-22 Thread Martin Wood

they have said there will be a public beta (on the flexcoders mailing list)

martin.

matti bar zeev wrote:

hey list,
I was just wondering, my Flex Builder 1.0 alpha is about to expire, as, I
guess, most of yours are.
my question for Adobe is: are you gonna release a new imporved version? are
you gonna release another version at all? are you gonna prolong the
expiration date?
what are the plans?

thnx,
flashmattic.


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



--
Martin Wood

http://relivethefuture.com/choronzon
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Flex expires... what then?

2006-01-22 Thread matti bar zeev
hey list,
I was just wondering, my Flex Builder 1.0 alpha is about to expire, as, I
guess, most of yours are.
my question for Adobe is: are you gonna release a new imporved version? are
you gonna release another version at all? are you gonna prolong the
expiration date?
what are the plans?

thnx,
flashmattic.


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Final Class Question

2006-01-22 Thread Chris Kennon

Hi,

The revised code, Nathan's, worked.

Chris
On Jan 21, 2006, at 11:13 PM, Chris Velevitch wrote:


I agree with Nathan's observations, amMessage and pmMessage properties
are being obscured by the constructor arguements of the same name in
the class constructor and those properties aren't being set anywhere,
which is why the result is undefined.

Chris, did you change your class as per Nathan's suggestions?

Max, who code did you use, Chris's or Nathan's? Chris's original code
definitely won't work.


Chris
--
Chris Velevitch
Manager - Sydney Flash Platform Developers Group
www.flashdev.org.au
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Duplicating MC with Loader inside

2006-01-22 Thread Adrian Lynch
Maybe doLater is the property I wait to be defined?

Ade

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Adrian
Lynch
Sent: 22 January 2006 13:09
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Duplicating MC with Loader inside


Would UIObject.doLater() be of any use?

>From the docs:
"Method; calls a user-defined function only after the component has finished
setting all of its properties from the Property inspector or Component
inspector. All version 2 components that inherit from UIObject have the
doLater() method."

Adrian

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Adrian
Lynch
Sent: 22 January 2006 13:04
To: Flashcoders
Subject: [Flashcoders] Duplicating MC with Loader inside


I knew of an initialisation problem with nested Loaders from another project
I did. Back then I didn't look too much in to it but this time I want to see
if I can find a solution.

Here's what I have and what I'm doing/trying to do:

- I have an MC on stage, inside this is a Loader component.

- I duplicate this MC, and hence the Loader inside it.

- I then set the properties' of the duped MC's Loader, contentPath and
scaleContent, and then call it's load() method.

If I do the above in sequence, the duped MC's Loader isn't initialised by
the time I try to set it's properties'.

If I delay using the duped MC's Loader, and instead fire an event that does
it, a button click for example, the Loader works fine.

I can think of two solutions, but I'm not too sure about them.

1. Set an interval to give the Loader time to get ready and then set the
properties.

2. Do the duping, check using an onEnterFrame to see if the nested Loaders
properties' exist and then set them.

The problem with 1 is, how long is long enough?

The problem with 2 is, will I get away with checking one property or will I
have to check them all? For example, I can check to see that contentPath is
difined, but what if load() isn't?

Does anyone have any thoughts on this?

I suppose another question is, how can you tell if a component if fully
initialised and ready to use?

Thanks.

Adrian

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Duplicating MC with Loader inside

2006-01-22 Thread Adrian Lynch
Well, doLater wouldn't be defined either, so I can't use that.

Ade

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Adrian
Lynch
Sent: 22 January 2006 13:09
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Duplicating MC with Loader inside


Would UIObject.doLater() be of any use?

>From the docs:
"Method; calls a user-defined function only after the component has finished
setting all of its properties from the Property inspector or Component
inspector. All version 2 components that inherit from UIObject have the
doLater() method."

Adrian

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Adrian
Lynch
Sent: 22 January 2006 13:04
To: Flashcoders
Subject: [Flashcoders] Duplicating MC with Loader inside


I knew of an initialisation problem with nested Loaders from another project
I did. Back then I didn't look too much in to it but this time I want to see
if I can find a solution.

Here's what I have and what I'm doing/trying to do:

- I have an MC on stage, inside this is a Loader component.

- I duplicate this MC, and hence the Loader inside it.

- I then set the properties' of the duped MC's Loader, contentPath and
scaleContent, and then call it's load() method.

If I do the above in sequence, the duped MC's Loader isn't initialised by
the time I try to set it's properties'.

If I delay using the duped MC's Loader, and instead fire an event that does
it, a button click for example, the Loader works fine.

I can think of two solutions, but I'm not too sure about them.

1. Set an interval to give the Loader time to get ready and then set the
properties.

2. Do the duping, check using an onEnterFrame to see if the nested Loaders
properties' exist and then set them.

The problem with 1 is, how long is long enough?

The problem with 2 is, will I get away with checking one property or will I
have to check them all? For example, I can check to see that contentPath is
difined, but what if load() isn't?

Does anyone have any thoughts on this?

I suppose another question is, how can you tell if a component if fully
initialised and ready to use?

Thanks.

Adrian

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Duplicating MC with Loader inside

2006-01-22 Thread Adrian Lynch
Would UIObject.doLater() be of any use?

>From the docs:
"Method; calls a user-defined function only after the component has finished
setting all of its properties from the Property inspector or Component
inspector. All version 2 components that inherit from UIObject have the
doLater() method."

Adrian

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Adrian
Lynch
Sent: 22 January 2006 13:04
To: Flashcoders
Subject: [Flashcoders] Duplicating MC with Loader inside


I knew of an initialisation problem with nested Loaders from another project
I did. Back then I didn't look too much in to it but this time I want to see
if I can find a solution.

Here's what I have and what I'm doing/trying to do:

- I have an MC on stage, inside this is a Loader component.

- I duplicate this MC, and hence the Loader inside it.

- I then set the properties' of the duped MC's Loader, contentPath and
scaleContent, and then call it's load() method.

If I do the above in sequence, the duped MC's Loader isn't initialised by
the time I try to set it's properties'.

If I delay using the duped MC's Loader, and instead fire an event that does
it, a button click for example, the Loader works fine.

I can think of two solutions, but I'm not too sure about them.

1. Set an interval to give the Loader time to get ready and then set the
properties.

2. Do the duping, check using an onEnterFrame to see if the nested Loaders
properties' exist and then set them.

The problem with 1 is, how long is long enough?

The problem with 2 is, will I get away with checking one property or will I
have to check them all? For example, I can check to see that contentPath is
difined, but what if load() isn't?

Does anyone have any thoughts on this?

I suppose another question is, how can you tell if a component if fully
initialised and ready to use?

Thanks.

Adrian

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Duplicating MC with Loader inside

2006-01-22 Thread Adrian Lynch
I knew of an initialisation problem with nested Loaders from another project
I did. Back then I didn't look too much in to it but this time I want to see
if I can find a solution.

Here's what I have and what I'm doing/trying to do:

- I have an MC on stage, inside this is a Loader component.

- I duplicate this MC, and hence the Loader inside it.

- I then set the properties' of the duped MC's Loader, contentPath and
scaleContent, and then call it's load() method.

If I do the above in sequence, the duped MC's Loader isn't initialised by
the time I try to set it's properties'.

If I delay using the duped MC's Loader, and instead fire an event that does
it, a button click for example, the Loader works fine.

I can think of two solutions, but I'm not too sure about them.

1. Set an interval to give the Loader time to get ready and then set the
properties.

2. Do the duping, check using an onEnterFrame to see if the nested Loaders
properties' exist and then set them.

The problem with 1 is, how long is long enough?

The problem with 2 is, will I get away with checking one property or will I
have to check them all? For example, I can check to see that contentPath is
difined, but what if load() isn't?

Does anyone have any thoughts on this?

I suppose another question is, how can you tell if a component if fully
initialised and ready to use?

Thanks.

Adrian



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders