|
From: erixtekila <eri...@if...> - 2004-11-23 22:11:19
|
hi,
As I'm testing the framework, i'm aking what is the purpose of=20
assigning serializable member whatever you checked when using "Create=20
Class" command ?
Is it for the LocalConnection objet of the Asunit GUI window ?
Or only to link the movieclip datatype with its subclass ?
this is the result of creating a class without adding a movieclip=20
symbol.
<code>
import com.yourdomain.yourproject.*;
class YourClass {
public static var linkageId:String =3D=20
"com.yourdomain.yourproject.YourClass";
public static var classRef:Function =3D YourClass;
public function YourClass() {
}
=09
public static var serializable:Boolean =3D=20
Object.registerClass(linkageId, classRef);
}
</code>
So then, if we don't want to use "Add to Library as MovieClip" in the=20
xul alert command, we'll have necessary use "Prefix Class Name with=20
__Package".
So here my question :
Does the framework NEED a movieclip to extends ?
What is the preferred way to test class that are not belonging from=20
movieclips ?
Should we have to extend ALL Class from MovieClip Class ?
I know that the compiler creates such a "__Package." movieclip to=20
simulate package in flash and import the code with #init pragma before=20=
all vector initialized.
But since, we use class only code, what's the purpose of activating =20
"Prefix Class Name with __Package" ? The compiler will do it for you !
I must have missed something.
Can you clarify things a little on this.
And perhaps on the xul interface, there should have a radiobutton with=20=
the alternative of :
- "Add to Library as MovieClip"
or
- "Prefix Class Name with __Package"
or
- "Don't use MovieClip datatype automatic binding"
Perhaps, my misunderstanding comes from the first example you provide=20
in the README.txt :
<excerpt>
---------------------------------------
QUICKSTART INSTRUCTIONS:
---------------------------------------
(...)
- Select:
"Automatically Open New Files"
"Add to Library as MovieClip"
"Add new Test
and be sure that "Prefix Class Name with __Packages" is =
deselected.
</excerpt>
Why do we have to check "Add to Library=85" since ExampleClass won't be =
a=20
MovieClip ?
The tests are not oriented to test is MovieClipness=85 ;=ACp
Help me on this please.
Thanx a lot.=
|