Hi susan,

In the 'other package' try:

import Star;

var myStar:Star = new Star();
addChild(myStar);

---
Why are you getting the error? .. because you are trying to cast 'nothing'
as a Star. Because Flash can't cast 'nothing' it tells you it's missing an
argument. 
---

Regards, Benny

-----Oorspronkelijk bericht-----

..

This code works by itself. However, when I call it in the other package with
the following lines:

import Star;
// var star:Sprite = new Sprite();
(whether commented out or not)
Star();

I get the error:

1136 Incorrect number of arguments. Expected 1. Star.as

for the last of the lines in the importing pkg. What argument is it
expecting?
TIA,
Susan

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to