Dowloading Code for files Error


so im still having trouble code, can download files, , prompted, when other people try download doesnt work.

 


when tried opening .swf prompted window

but when open  flash file , export .swf downloads

 


is there im missing?

 

<<armenia_btn.addeventlistener(mouseevent.mouse_down,armeniadownload);
armenia_text.addeventlistener(mouseevent.mouse_down,armeniadownload);

 

function armeniadownload(event:mouseevent):void
{    
    request = new urlrequest("http://www.ps4h.org/country_data_files/armenia.zip");   
    localref = new filereference();   
    try
        {       
            localref.download( request );
        }

 

    catch (error:error)
        {       
            trace("unable download file.");  
        }
}>>

that's security sandbox violation.

 

upload flash files non-local server , test.



More discussions in ActionScript 3


adobe

Comments

Popular posts from this blog

Joomla site hacked, cant see front and - Joomla! Forum - community, help and support

Christian Home School Programs - Joomla! Forum - community, help and support

Trouble with PF_OutFlag_I_USE_AUDIO and PF_CHECKOUT_LAYER_AUDIO