Skip to main content
JohnHonayi
Participant
August 7, 2009
Question

5001: Base64.as error!

  • August 7, 2009
  • 1 reply
  • 1502 views

5001: The name of package 'com.dynamicflash.util' does not reflect the location of this file. Please change the package definition's name inside this file, or move the file. C:\Documents and Settings\D\Desktop\TempImp\test\Base64.as

My test.fla is in C:\Documents and Settings\D\Desktop\TempImp\test\test.fla

I setted my prefrences in settings as C:\Documents and Settings\D\LocalSettings\Adobe\Flash CS4\en\configuration\classess\Base64\src\com\dynam  iclfash\util\

And I even copied the Base64.as file into C:\Documents and Settings\D\Desktop\TempImp\test\

but again i get the same error!Even setted the classpath as C:\Documents and Settings\D\Desktop\TempImp\test\com\dynamicflash\u  til

no use!

here is my flash code: temme if its correct:
-------------------------------------------
import com.adobe.images.JPGEncoder;
import com.dynamicflash.util.Base64;
var jpgSource:BitmapData = new BitmapData (sketch_mc.width, sketch_mc.height);
jpgSource.draw(sketch_mc);
var jpgEncoder:JPGEncoder = new JPGEncoder(85);
var jpgStream:ByteArray = jpgEncoder.encode(jpgSource);
//converting to base64
var sbase64:String = Base64.encodeByteArray(jpgStream);
//sending...
var Access:URLRequest = new URLRequest();
Access.url= "www.axeleron.net/flashtest/get_images.php";
Access.method=URLRequestMethod.POST;
Access.data= sbase64;
//EncodedImageString is the response string of the Base64 Encoder class.
var LODR:URLLoader = new URLLoader();
LODR.load(Access);

-----------------------------------------------------------------------------
please help ! coz i m working with classess for the first time ...Learning only!...

This topic has been closed for replies.

1 reply

August 7, 2009

If the path to Base64.as is

C:\Documents and Settings\D\LocalSettings\Adobe\Flash CS4\en\configuration\classess\Base64\src\com\dynamicflash\util\Base64.as

the path you add to classpaths must be

C:\Documents and Settings\D\LocalSettings\Adobe\Flash CS4\en\configuration\classess\Base64\src

JohnHonayi
Participant
August 7, 2009

still gettin this error!

5001: The name of package 'com.dynamicflash.util' does not reflect the location of this file. Please change the package definition's name inside this file, or move the file. C:\Documents and Settings\D\Desktop\TempImp\test\Base64.as

August 7, 2009

com.dynamicflash.util

that means:

Create three subfolders com, dynamicflash inside com and util inside dynamicflash, put the Base64.as file in it. So the path would be

C:\Documents and Settings\D\Desktop\TempImp\test\com\dynamicflash\util\Base64.as

Just as the error message says.