I ran into an issue this weekend with IE7 not clearing my floats correctly. I had a wrapper with a background applied to it and then a content div with floated elements in it. The background was not repeating all the way down the page, and was ending before the content div. I was using my normal methods of clearing floats and of course the page worked fine in Firefox and Safari on the Mac.
After some searching around looking for why this was happening I discovered an article at Position Is Everything that introduced me to a new clearing method which is far more elegant than the solution I was using previously.
You apply the .clearfix class to any div containing a float and its cleared!
.clearfix:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.clearfix { display:inline-block; }
/* Hide from IE Mac */
.clearfix {display:block;}
/* End hide from IE Mac */
Roger Johansson also suggests adding the following code to a <=IE6 specific CSS file in order to make sure it works in earlier browsers.
clearfix {height:1px;}
So far my favorite events are Event.ADDED_TO_STAGE and Event.REMOVED_FROM_STAGE, they just makes things that much easier.
For instance, I have a SimpleToolTip class that all you have to do is addChild and removeChild to manage it. When its added to the stage, I initialize everything that I need to turn on, when I remove it I turn everything back off.
Its just nice and clean.
Its true and it seems to work perfectly. This makes my life a little easier until June when Exchange support is added to the iPhone. Now I can sync my work calendar to GCal, suck it down to iCal at home, then sync it on to my iPhone so I can be in the know when not in front of Outlook in the office. I like to wake up and know what is on my agenda for the day.
Thanks Google!
How is it that one of the largest software companies in the world can’t even get their updater to work properly?
The update cannot be applied to the product. Please re-install the product and try again.
Well played Adobe.
I decided to push up the new version of my site, it was starting to sit on staging and I had a feeling that if I didn’t get it up soon it would never go up. I have a few more things I want to implement involving Flash and Flickr, but those will take some time to complete and I didn’t want to wait. I know there are issues with the CSS, if you see something odd, please post a comment!
Something that I worked on and finished up before leaving sunKING is AE’s 77e New Music Weekly. It showcases a lot of really great bands and provides a few free mp3s each week.
I have never done much backing up, and I have never had any major failure of a critical drive. A good backup plan seems like a good thing for me to have. It seems as though I must be due for one.
Here is my plan, based on the advice found here.
A good backup plan must be redundant and automatic, therefore I am purchasing two hard drives, and two external enclosures. One 250gb which will back up my iMac’s internal drive, and one 500gb, which will back up my external media drive that holds my music and photo collection. I will do a SuperDuper backup each night of each drive, which will essentially mirror the drives. The idea being, that if my iMac’s drive fails on me, I can just add in the drive in the enclosure and pick up right where I left off.
This is in addition to backing up off site to Mozy and Time Machine.
Next month I will buy two more of the exact same two drives so I can do the exact same thing, only I will take them to work every month and switch. That way I always have a drive off site in case of a fire.
Again, this is addition to my off site backup to Mozy. Like I said, I am due for a major failure.
If you build just about any Flash application you will need a menu that will manage button states and let you know when something has been clicked. This class will do that and can be implemented in projects big and small. Below is a very basic example on how it can be used, on the Mall World page it is implemented six times. Can you guess where?
A very basic implementation
[/embed]
Creating a Menu Object can be as simple as this
var menu = new Menu();
menu.addItem({clip: buttonOne, id: 1});
menu.addItem({clip: buttonTwo, id: 2});
menu.addEventListener(MenuEvent.NAVIGATE, this.menuNavigateHandler);
This code is released under the MIT License with just one request. If you improve it in some way that could benefit other users leave a comment.
Download the code & example files
Good stuff
I was hoping to find one of my co-workers outside smoking.