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
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
] 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
@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
:[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
@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
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,
, 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
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
Change the extends Sprite to UIComponent
nope - same error message - thanks though.
Jason Merrill
Bank of America
GTO Learning Leadership Development
eTools Multimedia Team
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
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
12 matches
Mail list logo