Sven,
Been meaning to follow up on this, sorry it
took so long -
- The
“null has no properties” error from a Sprite-based app (with framework.swc
visible for resolving imports) is simply a bug, and will be fixed in beta
3.
- On
the larger question of compiling without the framework, just wanted to add
a quick bit of detail. As Matt said, we’ve tabled formal support for
this for beta 2, unfortunately. However, in practice the compiler depends
on only a fairly well-isolated collection of interfaces and runtime
support classes (e.g. for data binding). Officially identifying and
repackaging this subset, and supporting a workflow where it exists
independently of framework.swc, is essentially the work that we’ve
punted on for now, but the internal groundwork is there, so it’s
very much on our radar. Not much help now, admittedly.
Basil
From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bussesven
Sent: Friday, March 24, 2006 4:15
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Using mxml
without flex framework (Flex 2 Beta 1 and 2)
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
|