Hexa class - format correct hexa string

readed 4732 times

This class will help you to get correct hexa string to save in a file. eg, 10 in decimal is "A" in hexadecimal, but when creating an hexa string to save it in a file you need to give the byte like "0A".

Then you have word ( 2 bytes ) and DWord ( 4 bytes ). Lets say you want to save in hexa a width of your bitmap, saying 678. 678 in hexa is 2A6 and must be saved in a DWord ( 4 bytes ). The thing is that Words and DWords are read from right to left, but the bytes still from left to right. So you should have this to be correct: A6 02 00 00.

Anyway you don't need to know all of this. With the class to get your hexa string just do Hexa.DWord( "2A6" ) and you'll get the "A6020000" in result. Check the function in the class.
The getString will let you choose the length of the string, eg if you need to retreive the hexa for a pixel do like:

Actionscript:
  1. getString( _bmp.getPixel(0,0).toString( 16 ), 6 );

(more...)

Rate it: 1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)



Exporting BitmapData in hexa for file saving using swf2exe soft ( like mdm Zinc )

readed 3924 times

This class will help you to have a string in hexadecimal format to save it in a file. It creates the header of the file, the header of the bitmap and the data. This class require the Hexa class. Be sure you have it when compiling.

This class do its job, but I have to admit as soon as you are processing big bitmap, it's slow... very slow. This is due because of the string operation I'm doing to format it to a conform Hexa string.

So check it and give feedbacks if you find any way to improve it or if you have any request.
(more...)

Rate it: 1 Star2 Stars3 Stars4 Stars5 Stars
(1 votes, average: 2 out of 5)



ColorMatrix or how to “paint” MovieClip

readed 3745 times

Today I have to finish an application I'm developing for my company.
This application is downloading external parts of a house (png files) and displaying them on top of the house image. Thus the user can see the different texture he could chose.

The thing is a feature is to be able to "paint" those external materials.
So I've look around a bit for tips / tricks. I've found two classes for flash, both named ColorMatrix, one made by Grant Skinner the other by Quasimondo

The one from Grant doesn't have any painting features, the one from Quasimondo has it but is not working the way I've wanted to.
What I've wanted is replacing "totally" a color by another one but still keeping the shadow, contrast, ...
(more...)

Rate it: 1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)



AS2 - Listening the event of a CLASS

readed 3455 times

This class has been made to be able to listen to the events of a CLASS not to the on of an instance.
(more...)

Rate it: 1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)



AS2 - Vector Class

readed 2978 times

Today I check my rss feeder and I've seen that michael has posted a Vector class here. Which reminds me that I have done one as well. So I'm posting it here.

Hope you'll like it :)
(more...)

Rate it: 1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)



MDM Zinc - Class FileSystemManager

readed 3058 times

Hello...
Still my old stuff that I re-publishing.
This class will let you scan your hd.

You have optional parameters:

  • forceRoot : String, force the root of the scan ( eg : C:\data\image\ ) so then eg the folder "C:\data\image\test" will be listed as "\test"
  • exceptions : Array, a list of folder you don't wanna scan. Just give push the names in this array

(more...)

Rate it: 1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)



MDM Zinc - Class DateManager for ftp and filesystem

readed 3003 times

Ok, here is a class to be able to get the same date format for your files on your system and on the ftp (not the case for now)
(more...)

Rate it: 1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)


Dev by MX is proudly powered by WordPress and themed by Mukka-mu