RE: [Flashcoders] load flex swf into flash CS3 project

2007-12-20 Thread Merrill, Jason
Also I've found that when trying to add a MovieClip instance 
to a UIComponent in Flex, the whole app just quits. Though 
technically there is nothing wrong with doing this, Flex 
components react badly to display objects that are not 
desensants of UIComponent.

Interesting, I haven't encountered that in Flex (yet) - I have added
Sprite instances to UIComponent instances with no problems. Knock on
wood.

Jason Merrill
Bank of America  
LLD GTO 
eTools  Multimedia Research  Development



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


Re: [Flashcoders] load flex swf into flash CS3 project

2007-12-20 Thread Jamie S
I guess i'm thinking specifically of mx.core.Container Objects.
Although you can use addChild() to add any DisplayObject, unless that
DisplayObject implements IUIConponent, it wont work.

Jamie

On Dec 20, 2007 7:23 AM, Merrill, Jason [EMAIL PROTECTED] wrote:
 Also I've found that when trying to add a MovieClip instance
 to a UIComponent in Flex, the whole app just quits. Though
 technically there is nothing wrong with doing this, Flex
 components react badly to display objects that are not
 desensants of UIComponent.

 Interesting, I haven't encountered that in Flex (yet) - I have added
 Sprite instances to UIComponent instances with no problems. Knock on
 wood.

 Jason Merrill
 Bank of America
 LLD GTO
 eTools  Multimedia Research  Development




 ___
 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] load flex swf into flash CS3 project

2007-12-20 Thread Cory Petosky
You can use mx.core.Container.rawChildren.addChild to add any DisplayObject
to a Flex container.

On 12/20/07, Jamie S [EMAIL PROTECTED] wrote:

 I guess i'm thinking specifically of mx.core.Container Objects.
 Although you can use addChild() to add any DisplayObject, unless that
 DisplayObject implements IUIConponent, it wont work.

 Jamie

 On Dec 20, 2007 7:23 AM, Merrill, Jason [EMAIL PROTECTED]
 wrote:
  Also I've found that when trying to add a MovieClip instance
  to a UIComponent in Flex, the whole app just quits. Though
  technically there is nothing wrong with doing this, Flex
  components react badly to display objects that are not
  desensants of UIComponent.
 
  Interesting, I haven't encountered that in Flex (yet) - I have added
  Sprite instances to UIComponent instances with no problems. Knock on
  wood.
 
  Jason Merrill
  Bank of America
  LLD GTO
  eTools  Multimedia Research  Development
 
 
 
 
  ___
  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




-- 
Cory Petosky : Developer : PUNY
1618 Central Ave NE Suite 130
Minneapolis, MN 55413
Office: 612.216.3924
Mobile: 240.422.9652
Fax: 612.605.9216
http://www.punyentertainment.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] load flex swf into flash CS3 project

2007-12-19 Thread [EMAIL PROTECTED]

Hello-

I need to load a compiled AS3 based Flex 3 swf (a simple form with  
data validation)  into an AS3 based Flash project I'm working on in  
CS3.   I tried importing the .swf into the library pre-compile as well  
as loading it at runtime and nothing shows up.


Can this be done?
Any ideas?


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


Re: [Flashcoders] load flex swf into flash CS3 project

2007-12-19 Thread Jamie S
Though i've never tried loading a Flex swf in Flash, I have done the
opposite and ran into similar issues. Ultimately all of the problems I
encountered were related to either security issues or
incompatibilities in the loaded swf making the whole app fail with no
indication why.

To solve security problems make sure that if the loaded swf needs to
communicate with the main movie or vice versa, that they are both in
the same SecurityDomain AND ApplicationDomain, or that you make
liberal use of flash.system.Security.allowDomain().

For general incompatibilities remember that the Flex app doesn't run
on the stage but inside of a mx.managers.SystemManager instance.
references to Application inside the Flex app will reference this
class. Also remember that the SystemManager class is a MovieClip with
two frames. The first frame is just a preloader so if you load a Flex
swf into Flash, you will have to wait until the SystemManager gets to
frame 2 and initializes everything before you can access it within
Flash.

Also I've found that when trying to add a MovieClip instance to a
UIComponent in Flex, the whole app just quits. Though technically
there is nothing wrong with doing this, Flex components react badly to
display objects that are not desensants of UIComponent.

I don't think there is no reason why what you are doing shouldn't
work, you just have to work through it.

Jamie

On Dec 19, 2007 2:41 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Hello-

 I need to load a compiled AS3 based Flex 3 swf (a simple form with
 data validation)  into an AS3 based Flash project I'm working on in
 CS3.   I tried importing the .swf into the library pre-compile as well
 as loading it at runtime and nothing shows up.

 Can this be done?
 Any ideas?


 ___
 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