Archive for June, 2008
Filling BitmapData Colors with an alternate color with the floodFill Method
No commentsI 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" [...]
Image Gallery - Fix Fullscreen Image Stretching
No commentsSo 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 [...]
Image Gallery - Part V - Full Screen
No commentsFull 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 [...]
Image Gallery - Part IV - XML File Loading
3 comments so farSo 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 [...]
Image Gallery - Part III - Categories
2 comments so farSo, 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 [...]