> Are these the same instance or unique instances with in each of the
> class instances themselves (mainclass/class3)?
>
>
>
> MainClass.mxml:
>
>
>
> <mx:script>
>
> <![CDATA{
>
> Import com.myapp.models.LoginClass;
>
> ...
>
> ..
>
>
>
> And
>
>
>
> Class3.mxml
>
> <mx:script>
>
> <![CDATA{
>
> Import com.myapp.models.LoginClass;
>
> ...
>
> ..
These are not instances. You create instances by either declaring
them in MXML or using the new operator in script. The import
statements make LoginClass available to MainClass and Class3 so you
can create instances of LoginClass from within each of those
components. You don't need an import statement if the class you
reference is in the same package you are referencing it from.