Archive for June, 2008

30Jun

Filling BitmapData Colors with an alternate color with the floodFill Method

No comments

I wanted to learn more about bitmap data in flash and came across the floodFill() method. It basically will replace a color with one you assign it. In the demo the original color is a light blue (rgb 003366) and when you click the stage the square will change colors via the floodFill method.
[kml_flashembed movie="/projects/flash/FloodFill/FloodFillExample.swf" [...]

Categories: manewc.com
27Jun

Image Gallery - Fix Fullscreen Image Stretching

No comments

So I noticed that when you view the image gallery in Fullscreen mode the images become stretched to become proportional to you screen dimensions. This is an easy fix and can be done by adding a few lines of code:

this.stage.align = “topLeft”;
this.stage.scaleMode = “noScale”;

That should do it.

a2a_linkname=”Image [...]

26Jun

Image Gallery - Part V - Full Screen

No comments

Full screen capabilities with the click of a button, added a new class FullScreenButton.as and modified Main.as. ( Don’t forget the ALLOWFULLSCREEN parameter in your html document needs to be set to TRUE - you can toggle this capability in your Publish Settings as well ) - just click the grey rectangle to toggle fullscreen [...]

25Jun

Image Gallery - Part IV - XML File Loading

3 comments so far

So far we have our image gallery, now I want to put all the image location url’s within an xml file for ease of use. The limitation here is that I originally just have 2 categories and the function that controls the toggle to each category has to have the same name as the page [...]

24Jun

Image Gallery - Part III - Categories

2 comments so far

So, a little more functionality to our Image Gallery project - I just wanted to add more functionality by allowing the user to toggle between different sets of Image Galleries. For this example you can toggle between 2 galleries by hitting ‘1′ or ‘2′ on your keyboard.


I made some slight modifications [...]