[flexcoders] [Clone] Cloning UI object

2005-10-14 Thread Stephane De Jonckheere
Hi,
I'd like to clone an instance of a custom UI component (a panel with a lot
of components in it).
I tried the copy furnished by ObjectUtil, I corrected it as described by
Darron Schall. But it wasn't giving the expected result.
The fact is that even if the object is copied in a new instance, there are
missing things (while debugging):
- functions associated to events
- stuff contained by the panel is copied but they aren't displayed

I also tried homemade clone function but they all give the same result.

I know that I can create a new object which will create its content when
being contruct. That's certainly what I will do ;) .
But I'd like to know if it's possible to REALLY copy/clone an UI object and
if if can be reinserted with a createchild function.

Regards,
Stephane



***

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager to [EMAIL PROTECTED]

***



 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] [Clone] Cloning UI object

2005-10-14 Thread Stephane De Jonckheere
It seems to come from Movieclips that aren't clonable.

Is there a way to clone these objects?

-Original Message-
From: Stephane De Jonckheere 
Sent: vendredi, 14. octobre 2005 11:29
To: flexcoders@yahoogroups.com
Subject: [flexcoders] [Clone] Cloning UI object


Hi,
I'd like to clone an instance of a custom UI component (a panel with a lot
of components in it).
I tried the copy furnished by ObjectUtil, I corrected it as described by
Darron Schall. But it wasn't giving the expected result.
The fact is that even if the object is copied in a new instance, there are
missing things (while debugging):
- functions associated to events
- stuff contained by the panel is copied but they aren't displayed

I also tried homemade clone function but they all give the same result.

I know that I can create a new object which will create its content when
being contruct. That's certainly what I will do ;) .
But I'd like to know if it's possible to REALLY copy/clone an UI object and
if if can be reinserted with a createchild function.

Regards,
Stephane




***

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager to [EMAIL PROTECTED]


***




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 






 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 






RE: [flexcoders] [Clone] Cloning UI object

2005-10-14 Thread Matt Chotin










Not really, creating a new instance and
copying any relevant values is what youll need to do.



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Stephane De Jonckheere
Sent: Friday, October 14, 2005
9:09 AM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] [Clone]
Cloning UI object





It seems to come from
Movieclips that aren't clonable.

Is there a way to clone these objects?

-Original Message-
From: Stephane De Jonckheere 
Sent: vendredi, 14. octobre 2005 11:29
To: flexcoders@yahoogroups.com
Subject: [flexcoders] [Clone] Cloning UI object


Hi,
I'd like to clone an instance of a custom UI
component (a panel with a lot
of components in it).
I tried the copy furnished by
ObjectUtil, I corrected it as described by
Darron Schall. But it wasn't giving the expected
result.
The fact is that even if the object is copied in a
new instance, there are
missing things (while debugging):
- functions associated to events
- stuff contained by the panel is copied but they
aren't displayed

I also tried homemade clone function but they all
give the same result.

I know that I can create a new object which will
create its content when
being contruct. That's certainly what I will do ;)
.
But I'd like to know if it's possible to REALLY
copy/clone an UI object and
if if can be reinserted with a createchild
function.

Regards,
Stephane




***

This email and any files transmitted with it are
confidential and
intended solely for the use of the individual or
entity to whom they
are addressed. If you have received this email in
error please notify
the system manager to [EMAIL PROTECTED]


***




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com

Yahoo! Groups Links
















--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.