0 Replies Latest reply on Feb 7, 2012 8:00 AM by JW1015

    variable to replace string

    JW1015

      Hi,

      How can I replace this string with a variable.

       

      public var path:String = new File(new File("app:/assets/Alpha.swf").nativePath).url;

       

      To This:

       

      public var path:String = new File(new File("app:/assets/" + data.fileName).nativePath).url;

       

      data.fileName contains "Alpha.swf" passed from a previous view. Why is something so simple, so difficult.

       

      Any help would be appreciated.