1 Reply Latest reply on Apr 10, 2012 9:12 AM by KScale

    How to get/set value in illustrator preference file using ActionScript 3.0

    DeepAlone Level 1

      Hi all,

       

       

      I want to get/set the flex panel components preference in illustrator preference file using ActionScript 3.0.

       

      I tried to achieve this  like --

       

      import com.adobe.illustrator.Preferences;

       

      var pref : Prefereneces = new Preferences();

       

      //To set value I used  this...

      pref.setStringPreference("url", id1.text);

       

      //To get value I used this..

      id1.text = pref.getStringPreference("url");

       

      i think there is prb in creating  Preference variable but I am unable to resolve.

       

      plz help.

       

      Thanks.