Alliance Fiber Optic Products (AFOP) was up 4.8% in midafternoon after it warned late Thursday that it expects a second-quarter loss of 5 cents per share excluding items instead of the break-even results analysts expected. The maker of optical components said it is being hurt by the ongoing telecom slump and it is writing down $6 million to $6.5 million in inventory.