ITS MY FIRST WEB APP USING FLEX API WOULD ANY ONE PLEASE TO GIVE ME THE CODE FOR PUTTING MY OWN DATA LIKE SHAPEFILES_GEODATABASE IN MY APPLICATION. THANKS ALOT .
Even before you start your flex application I would verify that your service is started and works. You can do this by navigating to the REST services folder in your browser and selecting your newly created service. From the above threads it looks like the URL to your REST services would be: http://orcl/ArcGIS/rest/services/
If your rest service is NOT listed, you may have to clear your REST Cache. The URL to your REST admin would probably be: http://orcl/ArcGIS/rest/admin (Use your AGS user to login)
One you have verified your service is created and is listed as a REST Service, click it then verify it works by clicking the " View In - ArcGIS JavaScript" link.
Once you have verified the REST service is up and going, then read the documents linked by Robert.
After all that I would suggest working with the Flex code samples that have been listed on this thread.