You really should take a look at the livedocs for FileReferenceList for the 
recommended path for acquiring file references.

 

http://livedocs.adobe.com/flex/3/langref/flash/net/FileReferenceList.html#includeExamplesSummary

 

Also… you have something interesting going on with your variable initialization 
which should probably look a little more like:

 

Var fileRef:FileReference;

 

Public function initiateNotice():void

{

  filreRef = new FileReference();

}

 

 

Rick Winscot

 

 

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of David 
Pariente
Sent: Friday, June 06, 2008 5:52 AM
To: flexcoders
Subject: [flexcoders] initialize a fileReference object

 

Hello,

my project is almost finished, but i'm new to flex and found a problem i don't 
know how to solve...
I need to initialize a fileReference object.

This object is on a form, and everytime i get inside the form i need the object 
like new, with no content at all.

i tried:

var file_imgb:FileReference=new FileReference();
var file_imgs:FileReference=new FileReference();
                        
public function iniciafiles_noticias():void
{
      file_imgb=null;
      file_imgs=null;
                                             
      var file_imgb:FileReference=new FileReference();
      var file_imgs:FileReference=new FileReference();
                        
}

but after calling the function "iniciafiles_noticias()" the content of the 
objects still there :(

please, help me...T__T

 

  _____  


Enviado desde Correo 
<http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http:/us.rd.yahoo.com/evt=52431/*http:/es.docs.yahoo.com/mail/overview/index.html>
  Yahoo!
La bandeja de entrada más inteligente.

 

Reply via email to