Expand my Community achievements bar.

share file don't run , why?

Avatar

Level 2
As I was saying I can not share files, I think that I must
resolve this bug as a priority as this function is essential for
this application.





I have no error for compile but this don't run , why?



thanks for your help ,





Lionceau,







Look my source :





<mx:VBox width="40%" height="10%" right="0">

<mx:DataGrid id="_fileGrid"
dataProvider="{_fileDescriptors}" width="100%" height="90%">

<mx:columns>

<mx:DataGridColumn dataField="name"/>

<mx:DataGridColumn dataField="size"/>

</mx:columns>

</mx:DataGrid>

<mx:HBox>

<mx:Button id="upload_btn" label="Upload File"
click="onUploadClick()"/>

<mx:Button id="download_btn" label="Download File"
click="onDownloadClick()"/>

<mx:Button id="delete_btn" label="Delete File"
click="onDeleteClick()"/>

</mx:HBox>

</mx:VBox>



























































/**

* Handle the upload button click.

*/

private function onUploadClick():void

{

var filterArray:Array = [new FileFilter("*.*", "*.*")];

_filePublisher.browse(UIDUtil.createUID(), filterArray);

}



/**

* Handle the download button click.

*/

private function onDownloadClick():void

{

if(_fileGrid.selectedItem) {

try{

_fileSubscriber.download(_fileGrid.selectedItem as
FileDescriptor);

}catch(e:Error) {

trace("Error download: " + e.message);

}

}



}



/**

* Handle the delete button click.

*/

private function onDeleteClick():void

{

if(_fileGrid.selectedItem) {

_filePublisher.remove(_fileGrid.selectedItem as
FileDescriptor);

}

}
6 Replies

Avatar

Former Community Member


Hi Lionceau,



I don't want to be grouchy, but this kind of post doesn't
really help us figure out what's wrong. The only detail of the
problem you've given us is "don't run". When posting, please try to
imagine what details of the problem would be useful to include for
us to help narrow the problem down. In this case, what do you mean
by "don't run"?



thanks

nigel

Avatar

Level 2
hi ,

When i click on "Upload " there are nothing !



You understand ?







Thanks for your help





Lionceau,

Avatar

Former Community Member
Can you run the example in the SDK? does the example run when
you do file browse? Please make sure the example does run for you
first.

Avatar

Level 2
sorry example don't run ,





Lionceau,

Avatar

Level 1
You can use the file share pod that most of the work for you.
If u still need a custom file share pod, ensure that you have
initialized the file publisher (_filePublisher in ur case). If the
examples are not working for you, something may be wrong in your
setup.

Avatar

Level 2

hello  

I don't understand , i need your help, can you answer this : http://forums.adobe.com/thread/452883

??

many thanks for your help.

lionceau,