Added foundation support for flash.