Hi WC -
Thanks for the fast response -
So as I understand it, the code within and including the package declaration goes into a separate as files named HeaderButton.as. This is separated from the calling statements which are inserted ina frame.
I tried it both ways and am getting some errors.
If I put the pacage code in a separate file, this error appeared initially:
1017: The definition of base class MovieClip was not found.
If I throw this in at the top of HeaderButton.as
import flash.display.MovieClip;
The error becomes:
1083: Syntax error: package is unexpected.
If I put it all in a frame,
1083: Syntax error: package is unexpected.
Without the import and all the AS on one frame I get this:
1037: Packages cannot be nested.
What am I doing wrong here?
Thanks again!!
Main Topics
Browse All Topics





by: williamcampbellPosted on 2008-06-12 at 13:21:59ID: 21773359
Martin,
I'm Not completely sure what you are trying to do but have created a class for you which will do what you say above...
I think :)
Take a look at the code you should be able to learn a few things from it and adjust it to your needs
WC
Select allOpen in new window