[flexcoders] Re: FileReference.save optional

2009-10-02 Thread droponrcll


--- In flexcoders@yahoogroups.com, markdemich d...@... wrote:

 
 
 --- In flexcoders@yahoogroups.com, droponrcll amyblankenship@ wrote:
 
  --- In flexcoders@yahoogroups.com, markdemich demi@ wrote:
  
   A lot of my customer base still uses Flash 9. Was trying to determine 
   that if Flash 10 was loaded I would conditionally provide a feature in my 
   app to save something to a file. I tried faking out the compiler by doing 
   something like this.
   
   if (isFlash10) {
   var f:Object = new FileReference();
   f.save(xyz,null);
   }
   
   but I get an error when I run it in Flash 10. Everything I found leads me 
   to believe that I need to compile for Flash 10. However, I fear that will 
   mess up my Flash 9 users.
   
   Does anyone have any advice on making a SWF that will work in 9, but 
   optionally use Flash 10 features.
  
  
  Try/catch.
 
 
 Try/catch won't help since it doesn't work, period. 

Do you mean to tell me that if you attempt to instantiate a new FileReference, 
that try/catch won't allow you to determine that the attempt failed and do 
something based on that failure?

Can you post your code that didn't work?

-Amy



[flexcoders] Re: FileReference.save optional

2009-10-01 Thread markdemich


--- In flexcoders@yahoogroups.com, droponrcll amyblankens...@... wrote:

 --- In flexcoders@yahoogroups.com, markdemich demi@ wrote:
 
  A lot of my customer base still uses Flash 9. Was trying to determine that 
  if Flash 10 was loaded I would conditionally provide a feature in my app to 
  save something to a file. I tried faking out the compiler by doing 
  something like this.
  
  if (isFlash10) {
  var f:Object = new FileReference();
  f.save(xyz,null);
  }
  
  but I get an error when I run it in Flash 10. Everything I found leads me 
  to believe that I need to compile for Flash 10. However, I fear that will 
  mess up my Flash 9 users.
  
  Does anyone have any advice on making a SWF that will work in 9, but 
  optionally use Flash 10 features.
 
 
 Try/catch.


Try/catch won't help since it doesn't work, period.  My first challenge is to 
get it to actually work in Flash 10.  I did some searching around and I think I 
may be able to compile it for 10.  In that case, I think it will work in 9 
except for any features that require 10.  Does anyone know much about this?  



[flexcoders] Re: FileReference.save optional

2009-09-30 Thread droponrcll
--- In flexcoders@yahoogroups.com, markdemich d...@... wrote:

 A lot of my customer base still uses Flash 9. Was trying to determine that if 
 Flash 10 was loaded I would conditionally provide a feature in my app to save 
 something to a file. I tried faking out the compiler by doing something like 
 this.
 
 if (isFlash10) {
 var f:Object = new FileReference();
 f.save(xyz,null);
 }
 
 but I get an error when I run it in Flash 10. Everything I found leads me to 
 believe that I need to compile for Flash 10. However, I fear that will mess 
 up my Flash 9 users.
 
 Does anyone have any advice on making a SWF that will work in 9, but 
 optionally use Flash 10 features.


Try/catch.