FileReference.browse()...displays error...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • srinuseshu
    New Member
    • Sep 2007
    • 1

    FileReference.browse()...displays error...

    Hi,

    I have a code for flash player which is capable of playing .swf files, And this player get the movie using xml file(all the information about movies in it) and i want to provide a browse button to choose .swf file to play ,for that iam using 'FileReferene' class.But it displays error as
    "the class or interface 'flash.net.File Reference' could not be loaded"

    But its working fine for simple program with only single browse button. why this was happened??

    Iam using flash CS3 professional and actionscript 2.0. one more thing is i placed import statement also(import flash.net.FileR eference)..



    Any idea??
  • xNephilimx
    Recognized Expert New Member
    • Jun 2007
    • 213

    #2
    Hi, srinuseshu! Welcome to TSDN!
    Are you using the same instance of the FileReference for the various browse buttons? Or making a new instance per button? The movie that doesn't work with multiple buttons, is the same that works fine with one (sometimes flash looses it's classpath ¬¬)?

    Please, post the code you're using so I can have a better idea.

    Best regards,
    The_Nephilim

    Originally posted by srinuseshu
    Hi,

    I have a code for flash player which is capable of playing .swf files, And this player get the movie using xml file(all the information about movies in it) and i want to provide a browse button to choose .swf file to play ,for that iam using 'FileReferene' class.But it displays error as
    "the class or interface 'flash.net.File Reference' could not be loaded"

    But its working fine for simple program with only single browse button. why this was happened??

    Iam using flash CS3 professional and actionscript 2.0. one more thing is i placed import statement also(import flash.net.FileR eference)..



    Any idea??

    Comment

    • beebers
      New Member
      • Sep 2008
      • 1

      #3
      Be sure you are publishing the .swf file as a Flash 8.

      It seems very simple, but I hope it might help :)
      Regards.

      Comment

      Working...