Q:

1050: Cannot assign to a non-reference value

Hi my code as fallows what is wrong with it? 
thank you and sorry for my bad english. 
protected function belgelerDG_itemClickHandler(event:ListEvent):void
        {

            var durum:Boolean = false;
            if(belgeicerikWindow==null){
                belgeicerikWindow=new belgeicerik();
                belgeicerikWindow.title=belgelerDG.selectedItem.belge;
                belgeicerikWindow.open();
            }
            else{
                durum=false;
                for ( var i:int = NativeApplication.nativeApplication.openedWindows.length - 1; i >= 0; --i ) {
                    if(NativeApplication.nativeApplication.openedWindows[i].title.toString() == belgeicerikWindow.title=belgelerDG.selectedItem.belge){
                        belgeicerikWindow.orderToFront();
                        durum=true;
                    }
                }

                if(durum==false){
                    belgeicerikWindow=new belgeicerik();
                    belgeicerikWindow.title=belgelerDG.selectedItem.belge;
                    belgeicerikWindow.open();
                }

            }

        }

A:

I'm betting the problem lies with the if statement that starts with:
if(NativeApplication.nativeApplication.openedWindows[i].title.toString()

You are doing an assignment within the value you are trying to compare against:
 == belgeicerikWindow.title=belgelerDG.selectedItem.belge)

If it isn't what is causing your problem, at least it is something you should fix to make things more legible.   :)

