Flash object problems in Smartphones

What will be the flash object code for mobile device like smartphones?
For an example my flash object width 550px and height 350px, it’s fine for web browser. But in Mobile browser I am unable to fit this object.
Please suggest how can I do this.

Detect screen size using javascript -> alter html swf embedding parameters
Embed at 100% width/height then within the swf detect the stage size and scale/position elements as necessary