It’s very hard to explain the features of this class! because it seems like a very basic small piece of class! but beleive me, it’s more than a simple background
with this class, you can create your background effects like loading an external image (even an animated GIF file) and place it on the top left of your stage and then set the “repeat” parameter and your whole stage will be covered with that image! you don’t have to deal with external images always, you can use a simple color as the background and also maybe you wish to use a vista like glassy Aero effect!
CHECK OUT THE DEMO HERE
I’m sure having a look at these demo examples will give you a better insight of this Bg Class.
What I can say for sure is that you will need this Bg class in your projects soon or later. it has been proven that it has been very handy and reusable in many different projects I have had. just as an example take a look at
my contact form or popup classes and you will see how well this small Bg class has been integraded into those bigger projects and made them look so nice.
Here I have copied some sample files to see how easy it is to use this Bg class for different usages.
SAMPLE CODE – SIMPLE COLOR BG
1 2 3 4 5 6 7 8 9 10 11 12 13 | import com.doitflash.utils.bg.Bg; import com.doitflash.utils.bg.BgType; var myBg:Bg = new Bg(BgType.SIMPLE_COLOR); myBg.auto = false; // default is true. myBg.w = 100; myBg.h = 100; myBg.curve(0, 0, 0, 0); myBg.simpleColor = 0x990000; myBg.strokeThickness = 1; myBg.strokeColor = 0x000000; mc.addChildAt(myBg, 0); // mc can be any displayObject or the stage(or the document class) itself. |
SAMPLE CODE – IMAGE BG
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | import com.doitflash.utils.bg.Bg; import com.doitflash.utils.bg.BgType; import com.doitflash.utils.bg.BgConst; var myBg:Bg = new Bg(BgType.IMAGE); myBg.path = "bg.png"; // path to the external file. myBg.location = BgConst.TL; myBg.curve(0, 0, 0, 0); myBg.marginLeft = 0; myBg.marginTop = 0; myBg.marginRight = 0; myBg.marginBottom = 0; myBg.repeat = BgConst.REPEAT; mc.addChildAt(myBg, 0); // mc can be any displayObject or the stage(or the document class) itself. |
SAMPLE CODE – GLASSY, AERO BG
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | import com.doitflash.utils.bg.Bg; import com.doitflash.utils.bg.BgType; var myBg:Bg = new Bg(BgType.GLASSY); myBg.glassColor = 0x5e7cc1; myBg.glassAlpha = 0.3; myBg.glassBlur = 15; myBg.glassBlurQuality = 1; myBg.holder = mc; // This bg effect needs to know its holder which is mc in this example. myBg.marginLeft = 0; myBg.marginTop = 0; myBg.marginRight = 0; myBg.marginBottom = 0; myBg.curve(0, 0, 0, 0); mc.addChildAt(myBg, 0); // mc can be any displayObject but the stage. |
Documentation
Read the Bg Documentation here. or download them for your offline review here.
WHAT YOU GET AFTER THE PURCHASE?
as soon as you checkout, you will be redirected to PayPal website and after the payment you may click to get back to our website and there you will recieve the download links to the items you have purchased. The links will be available for 24 hours from the time you complete your payment. besides that, you will receive an email with your purchase details and the download links.
The files you download will include all the necessary information you would need to use the files and in case you have a question, you can ask it right here in the comments section or email us.
.as and .swc licences
All our classes which are for sale, include two licenses, the SWC license will let you use the item in your projects without you being able to see the source codes. but the AS license will provide you with all the .as source codes. you are free to modify the code and use it in your projects.
BUY NOW
DEMO: click here
.swc license: 5 USD
.as license: 15 USD
Regards,
Hadi

February 4th, 2010 12:24 pm
…bug…where are the demo examples…
February 4th, 2010 7:08 pm
no bug… the site is still under construction
hopefully in the next 7 days everything will be up… register in the newsletter for news. Thanks.
April 19th, 2010 7:32 pm
great stuff… !!!