Your question is a bit confusing but here is a fundimental principle in Eclipse.
Every project has;
The 'src' folder holds all runable/compilable code actionscript classes and mxml components/applications.
The only thing Flash Builder will run is a mxml file that subclasses s:Application or mx:Application or any subclass of them.
Flash Builder will not 'just' run an mxml file. So if you get application samples from Adobe, you need to have them in the src folder and there needs to be a little green arrow in the top left corner. This means it's a registered application that you can run. The little blue dot in the top right corner means it's the default application that will run when you hit ctr-F11 or F11 or Run..
If you paste a file that IS an Application and cannot get it to run, you need to;
- make sure it's in your src folder
- right click an select Run As
- select Web Application
This will run the app baring no compiler errors. If the mxml file is not registered as an application, this action will also register it.
Hope that helps,
Thanks a lot! TeotiGraphix. Sorry for the confusion.
I got what you said about the Run application part. However, the folders I moved (ex: company/service ) to src folder become (company.service) instead of company/service. I tried to rename it to company/service but it gave me error. Anyway I can change it or that's the way it is. Thanks again!