Anyone with a bright idea?
Bart Wttewaall
2006/7/11, Bart Wttewaall <[EMAIL PROTECTED]>:
Hi list,
I'm trying to combine multiple small classes into one package, but to no avail..
Could someone help me with this?
The error I get is:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
// -- CursorDepot.as :
package cursors {
public class CursorDepot {
public static var cross:Cross = Cross;
}
}
internal class Cross {
[Embed(source="../cursors/cross.png")]
public static var icon:Class;
public static var offsetX:int = 0;
public static var offsetY:int = 0;
}
// -- in the application:
public function init():void {
setCursor(CursorDepot.cross);
}
public function setCursor(cursorClass:*):void {
trace(cursorClass) // outputs: null !!! why?
var cursorID:int = setCursor(cursorClass.icon, cursorClass.offsetX, cursorClass.offsetY);
}
Thank you in advance,Bart Wttewaall
__._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

