Having issue with CSS Example, getting null error

73 views
Skip to first unread message

reduxdj

unread,
May 25, 2010, 8:15:31 AM5/25/10
to Reflex Platform
TypeError: Error #1009: Cannot access a property or method of a null
object reference.
at mx.styles::StyleManager$/getStyleManager()[E:\dev\4.0.0\frameworks
\projects\framework\src\mx\styles\StyleManager.as:125]
at CSSExample/http://www.adobe.com/2006/flex/mx/
internal::_CSSExample_StylesInit()
at CSSExample()[/Users/dj/Documents/Adobe Flash Builder Beta/
RefluxExamplesFlex/src/CSSExample.mxml:4]

Happens at line 125 of StyleManager:

var styleManager:IStyleManager2 =
IStyleManager2(moduleFactory.getImplementation("mx.styles::IStyleManager2"));

Paul Taylor

unread,
Jun 1, 2010, 1:43:50 PM6/1/10
to Reflex Platform
I was getting this because Jac (I think) started on the CSS monkey
patches but started with the Flex 3 versions of the style interfaces
and classes. I'm using the Fx4 swc which changed the interface
definitions considerably. Either way, this stuff isn't being used yet,
so it's safe to delete the mx.styles package from your source
directory.

Hope this helps,
Paul

Jacob Wright

unread,
Jun 1, 2010, 2:27:43 PM6/1/10
to reflex-...@googlegroups.com
The Flex 4 version should be the latest in the repo. Sorry for issues.

Paul Taylor

unread,
Jun 1, 2010, 3:26:36 PM6/1/10
to Reflex Platform
Jac is that in the master branch or dynaco?

On Jun 1, 1:27 pm, Jacob Wright <jacwri...@gmail.com> wrote:
> The Flex 4 version should be the latest in the repo. Sorry for issues.
>

Jacob Wright

unread,
Jun 1, 2010, 8:36:16 PM6/1/10
to reflex-...@googlegroups.com
Master

reduxdj

unread,
Jun 23, 2010, 8:54:38 AM6/23/10
to Reflex Platform
I just pulled the latest source of reflex, and I am still getting an
error with this:

TypeError: Error #1009: Cannot access a property or method of a null
object reference.
at mx.styles::StyleManager$/getStyleManager()[E:\dev\4.0.0\frameworks
\projects\framework\src\mx\styles\StyleManager.as:125]
at CSSExample/http://www.adobe.com/2006/flex/mx/
internal::_CSSExample_StylesInit()
at CSSExample()[/Users/dj/Documents/Adobe Flash Builder Beta/
RefluxExamplesFlex/src/CSSExample.mxml:4]


Has this been solved?

Thanks,
Patrick


On Jun 1, 8:36 pm, Jacob Wright <jacwri...@gmail.com> wrote:
> Master
>

Ben Stucki

unread,
Jun 24, 2010, 4:13:10 PM6/24/10
to reflex-...@googlegroups.com
Hey Patrick,

This hasn't been addressed yet. The CSS code was created when we were targeting against the Flex 3 compiler and nobody's been tackling CSS functionality since then. I'll see if I can clean up the RTEs this weekend, but I'm not sure what, if any, CSS functionality will be supported right now.

- Ben Stucki
Reply all
Reply to author
Forward
0 new messages