hi,
in my project i am using Flash Files (.swf) for presenting motion oriented as well as go to frame behaviour.
i am doing the mandatory part which is require in paintComponent() mentod of JComponent as bellow:
public void paintComponent(Graphics g)
{
//required
flashPlayer.Startup();
//Following is a MUST Required
flashPlayer.SetQuality(FlashApi.QUALITY_AUTOHIGH,true);
flashPlayer.Zoom(100);
flashPlayer.SetLoop(false);
// this move the frame to the 5 postion flashPlayer.GotoFrame(5);
}
the problem is that i can explicitly or implicitly call repaint() or update()method to update the paint component.
due to which the flash file is not been displayed in my JPanel since i am adding this flash Component to JPanel(true).bcos my class Object is call in another Class which is GUI base and adds this in it’s Layout.
the Problem is :
i can’t call update(g) mehtod in paintComponent() since it’s recursive.
i can’t call repaint() mentod in child or parent component since the repaint updates the whole GUI which lives with fleekering in GUI.
can any on suggest how can update my paintComponent() mentod so that the flash files is shown on the main GUI.
HINT: to show flash file the above mentatory statement has to be called in paint() or paintComponent() mehtod only.
regards
DJ