Hi, im new to flex and read the article about fileupload from Jimmy
Gianninas. Everything works fine but the refresh of the main app wont
work with my code. 

i copied the part of the upload.jsp just like in the example:
<mm:mxml>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml";
width="1" height="1" initialize="initialize()">
<mx:Script>
        var myConnection;
        function initialize() {
        myConnection = new LocalConnection();
        myConnection.send("mainApp", "messagePosted", uploadSuccess");
        myConnection.onStatus = mx.utils.Delegate.create( this, onStatus );
                                
        }

        function onStatus( result ) {
                getURL( "javascript:doClose()" );
        }

</mx:Script>
</mx:Application>
</mm:mxml>

<script language="Javascript">
        function doClose() {
                window.close();
        }
</script>

Here is the code of my main as file:
function initApp():Void {
        myConnection = new LocalConnection();
        myConnection.messagePosted = mx.utils.Delegate.create( this,
messagePosted );
        myConnection.connect("mainApp");
}

public function messagePosted( mess:Object ):Void {
        alert("1");
        if( mess == "uploadSuccess" ) {
                alert("hi");
        }
}


The Problem is: nothing happens after the file upload. (ok the js
works fine and closes the popup).





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to