Tuesday, July 10, 2007

Trip to Erie PA
Amy and I went up to Erie on June 21st for Jeff Mattoe's funeral. It was very sad. He looked liked at anytime he would sit up and say "Boo." He suffered from a massive heart attack. John Dalton Works for Bruger Funeral Home. He went to the hospital to get jeff and preped him for the viewing.

-----------------------------------------

Jeffrey J. Matteo Loving Husband and Father Jeffrey J. Matteo, 40, of Erie, died unexpectedly at Hamot Medical Center on Monday, June 18, 2007. Born in Erie on June 24, 1966, he was a son of Jeffrey J. Matteo and Barbara Graham Matteo, both of Erie. Jeffrey was the Detail Manager at Car Care II on W. Eighth St. in Millcreek. Jeffrey was an avid fan of the Dallas Cowboys and Chicago Cubs. He enjoyed playing golf and belonged to a dart league at Lombardo’s Tavern on W. 21st St. In addition to his parents, Jeffrey is survived by his loving wife, Carla Nemenz Matteo; two adoring children, Dominic and Anthony Matteo; two brothers, Michael and Daniel Matteo, wife Star; two nieces, Kara and Samantha Matteo; one nephew, Corey Matteo; a grandmother, Caroline Graham, all of Erie; two uncles, his Godfather, James Graham, of Shreveport, La., and David Graham of Erie; an aunt, Linda Chase, of Erie; and many loving friends. Friends are invited to call at the Brugger Home for Funerals, 1595 W. 38th St. at Greengarden Blvd. on Thursday from 2 p.m. to 5 p.m. and 7p.m. to 9 p.m., and may attend a prayer service there on Friday at 9:15 a.m. followed by a Mass of Christian Burial at Our Lady of Peace Church at 10 a.m. Burial to follow. In lieu of flowers, memorials are suggested to the Jeffery J. Matteo Memorial Fund, c/o NW Savings Bank, Kmart Plaza West, 2863 W. 26th St., Erie, PA 16506. Condolences at bruggerfuneralhomes .com. Sign the guestbook at www.GoErie.com/obits.
Published in the Erie Times-News on 6/20/2007.

----------
http://www.legacy.com/ErieTimesNews/GB/GuestbookView.aspx?PersonId=89282122

Tuesday, June 12, 2007

Anchoring an Image to the Bottom Right Corner of a Flash File.

I need to dynamically load images into flash but the width and height could very but the image needed to stay in the lower right corner. With the help of the Help in flash this is what I came up with.

--------------------------------------------

this.createEmptyMovieClip("container", 0);
var image_mcl:MovieClipLoader = new MovieClipLoader();
var mclListener:Object = new Object();
mclListener.onLoadInit = function(target_mc:MovieClip) {
trace(target_mc._name+" = "+target_mc._width+" X "+target_mc._height+" pixels");
trace("stage width " + Stage.width + " stage height " + Stage.height );
image_mc._x = Stage.width - target_mc._width;
image_mc._y = Stage.height - target_mc._height;
};

image_mcl.addListener(mclListener);

image_mcl.loadClip("http://rcm-images.amazon.com/images/I/11I4WKohKxL._SL110_.jpg", container);

--------------------------------------------


Now I know the example loads a hard coded image so it's not dynamic but this is in addition to an earlier post

Wednesday, April 25, 2007

Developing a flash piece to read an XML doc and then randomly show images.

We have an XML document that has names of people and the associated image for that person. The structure is

people
+ person
++ name
++ picture
+ person
+ person
++ name
++ picture
+ person
people


We'll load the document into flash.
Then we'll loop through each person node and extract the name and picture values.
We push those values into a two dimensional array.
After we have inserted all the values into the array we'll get the length of the array.
We'll take that value and pass it into a random number generator.
We'll generate a number no greater that the array length minus one. (if there five people we need a number between zero and four since arrays start numbering at zero and if we returned five we would get an error.)
Then we'll take that number and use it to get a person from the array.

So if we have five people in the XML document we will generate a number ranging from zero through four
If we return the number three we get the fourth person in the XML document.

So we Just edit the XML document to add or remove people and never have to touch the flash source code to make changes.