Re: [flexcoders] Actionscript sprite within the Flex framework

2007-09-19 Thread Steve Mathews
The first error says you need the TestSprite class to be defined like: public class TestSprite extends Sprite The second error I initially thought was because the application addChild takes a UICompoent, but according to the help docs what you have 'should' work. I would try casting it as a

RE: [flexcoders] Actionscript sprite within the Flex framework

2007-09-19 Thread Alex Harui
in there. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Steve Mathews Sent: Wednesday, September 19, 2007 8:22 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Actionscript sprite within the Flex framework The first error says you

RE: [flexcoders] Actionscript sprite within the Flex framework

2007-09-19 Thread Merrill, Jason
] On Behalf Of Alex Harui Sent: Wednesday, September 19, 2007 12:29 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Actionscript sprite within the Flex framework Even though the API says addChild takes DisplayObject, we can't

RE: [flexcoders] Actionscript sprite within the Flex framework

2007-09-19 Thread Alex Harui
@yahoogroups.com Subject: RE: [flexcoders] Actionscript sprite within the Flex framework So put in a UIComponent tag and put the test sprite in there. How would that look? I'm calling my class method as soon as the applicationComplete event occurs. Everything else is in Actionscript, the only

RE: [flexcoders] Actionscript sprite within the Flex framework

2007-09-19 Thread Merrill, Jason
:[EMAIL PROTECTED] On Behalf Of Steve Mathews Sent: Wednesday, September 19, 2007 11:22 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Actionscript sprite within the Flex framework The first error says you need the TestSprite class

RE: [flexcoders] Actionscript sprite within the Flex framework

2007-09-19 Thread Merrill, Jason
@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Wednesday, September 19, 2007 2:51 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Actionscript sprite within the Flex framework ?xml version=1.0 encoding=utf

RE: [flexcoders] Actionscript sprite within the Flex framework

2007-09-19 Thread Merrill, Jason
Alex, thanks, but changing to your code suggestion, I still get an error, Main Thread (Suspended: ReferenceError: Error #1069: Property host not found on MyTestApplication and there is no default value.) and I think it is because EntryClass.main() gets called on the event applicationComplete,

RE: [flexcoders] Actionscript sprite within the Flex framework

2007-09-19 Thread Alex Harui
, 2007 1:36 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Actionscript sprite within the Flex framework Alex, thanks, but changing to your code suggestion, I still get an error, Main Thread (Suspended: ReferenceError: Error #1069: Property host not found on MyTestApplication

Re: [flexcoders] Actionscript sprite within the Flex framework

2007-09-19 Thread Adolfo Ruiz
Change the extends Sprite to UIComponent Merrill, Jason [EMAIL PROTECTED] escribió: I'm trying to do a primarily Actionscript 3 written Flex app writing within the Flex framework. Following Moock's Actionscript 3.0: The Essential Guide examples, I have set up a simple 3 file

RE: [flexcoders] Actionscript sprite within the Flex framework

2007-09-19 Thread Merrill, Jason
Change the extends Sprite to UIComponent nope - same error message - thanks though. Jason Merrill Bank of America GTO Learning Leadership Development eTools Multimedia Team

RE: [flexcoders] Actionscript sprite within the Flex framework

2007-09-19 Thread Merrill, Jason
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Wednesday, September 19, 2007 4:53 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Actionscript sprite within the Flex framework

RE: [flexcoders] Actionscript sprite within the Flex framework

2007-09-19 Thread Alex Harui
Subject: RE: [flexcoders] Actionscript sprite within the Flex framework Shouldn't be, appcomplete is way late, long after host is ready. Can I see what your code looks like now? Both the app and the TestSprite. From: flexcoders