flex and java