In a large bowl, combine the apples, cranberries, sugar and flour; spoon into 2-quart baking dish coated with cooking spray.
Combine the cornflakes, pecans, brown sugar and butter; sprinkle over apples. Bake at 350 degrees for 35-40 minutes or until top is golden brown and filling is bubbly.
Please note that some ingredients and brands may not be available in every store.