Why, this works perfectly well in flex 2.0. I don't remember if
something changed in flex 2.01 but I don't think so.

What does your getInstance() look like?

On 4/25/07, nxzone <[EMAIL PROTECTED]> wrote:
> How can i have only one Singleton if i have two applications. I want
> share the same singleton from the parent application
>
> Application1
> {
>   var singleton:ShareThis = ShareThis.getInstance()
>
>   function init(){
>    singleton.name="test"
>    SWFLoader.source="application2.swf"
>   }
>
> }
> -----
> Application2
> {
>   var singleton:ShareThis = ShareThis.getInstance()
>
>   function init(){
>    trace(singleton.name) // give null
>   }
>
> }
>
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>

Reply via email to