lol..... .Obvious Adobe is not do development to serve people for free of cost......
On 3/28/06, Matt Chotin <[EMAIL PROTECTED]> wrote: > FYI I checked and we're not planning on supporting MXML apps that don't > use the framework for version 2.0. However we will investigate to see > if the case like this can at least not cause such a horrible error. > > > > Matt > > > > ________________________________ > > > > > 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. > > > > > -- jignesh dodiya -- 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/