I'm getting an almost identical error.  I can't even figure out how to begin to track this... I've tried removing the suspect component all together, but still receive the error.  Based on the fact my error description almost matches bussesven's, and my situation is not even similar, could this be a bug?
 

[SWF] C:\Inetpub\wwwroot\BestBuy\bin\BestBuy-debug.swf - 1,191,862 bytes after decompression

TypeError: Error #1009: null has no properties.

at mx.styles::StyleManager$/http://www.adobe.com/2006/flex/mx/internal::initProtoChainRoots()[C:\dev\beta2\sdk\frameworks\mx\styles\StyleManager.as:240]

at products.layout::MainGameLayout/http://www.adobe.com/2006/flex/mx/internal::_MainGameLayout_StylesInit()

at products.layout::MainGameLayout$iinit()[C:\dev\beta2\sdk\frameworks\mx\core\UIComponentDescriptor.as:5]

at containers::ContentContainer$cinit()

at global$init()[C:\Inetpub\wwwroot\BestBuy\containers\ContentContainer.mxml:15]

at _containers_ContentContainerWatcherSetupUtil$/init()

at mx.managers::SystemManager/mx.managers:SystemManager::frameEndHandler()[C:\dev\beta2\sdk\frameworks\mx\managers\SystemManager.as:1830]

 

I can post code if need be...

Thanks,

Brendan

 

 
On 3/24/06, bussesven <[EMAIL PROTECTED]> wrote:
Hi,

in the alpha version of Flex 2 i was able to remove the framework.swc
from a flex project and still use mxml with only my own classes. In
beta 1 and beta 2 this doesn't work anymore, because mxmlc by default
generates several import statements and other stuff in the generated
classes, which leads to errors of course, since i have removed the
framework.swc .

Even if i leave the framework.swc in, but use only my own classes, it
doesn't work, since there is an error with the StyleManager.

I made a simple example. I have a very simple class:

package com {

       import flash.util.trace;
       import flash.display.Sprite;

       public class Sample extends Sprite {

               public var myvalue:String;

               public function Sample() {
                       trace("Hello World!");
               }
       }
}

And a very simple mxml:

<?xml version="1.0" encoding="utf-8"?>
<sb:Sample xmlns:sb="com.*" myvalue="Test" />

It doesn't work, i get the error:

TypeError: Error #1009: null has no properties.
       at
mx.styles::StyleManager$/http://www.adobe.com/2006/flex/mx/internal::i
nitProtoChainRoots()[C:\dev\beta2
\sdk\frameworks\mx\styles\StyleManager.as:240]
       at
MyTest/http://www.adobe.com/2006/flex/mx/internal::_MyTest_StylesInit
()
       at MyTest$iinit()

What is going wrong here? How can i use mxml with just my own classes
without the flex framework?

Thanx and cheers.





--
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/







--
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




Reply via email to