Select to view content in your preferred language

How do you recover a .swf file for a widget?

775
5
09-02-2010 07:14 AM
JoshuaCoates
Deactivated User
I accidentally deleted the search widget .swf file from my project. Is there a way to find this file and download it? I looked in the original flexviewer folder, however, I do not see any .swf files in any of the widget folders in the src directory?!
Tags (2)
0 Kudos
5 Replies
RobertScheitlin__GISP
MVP Emeritus
Joshua,

   Swfs are compiled versions of the mxml code so you should never see swfs in the src directory. Look in the bin-debug or bin-release folder to find the compiled swfs.
0 Kudos
JoshuaCoates
Deactivated User
I only have a bin-debug folder and I did not see the search widget .swf in there? I actually deleted the file itself out of the project folder...not just from inside FlashBuilder....whooops?! I see the other widget .swf's in the other folders...just not in the search widget folder.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Joshua,

   If you have the SearchWidget.mxml in the src folder than when you run or debug your project it will rebuild the swf.
0 Kudos
JoshuaCoates
Deactivated User
Ok well I just rebuilt the whole project and its fine now. However, why is it that occasionally when I run my project...the background to my map is black like the entire UI? It is usually white but sometimes it appears all black and if I hit refresh enough it will go back to white?
0 Kudos
GeorgiannaStrode
Deactivated User
Does any one knows how to import the project into Flex builder 3? I can not even import the project (which is the widget folder) into it, so that makes me impossible to run a mxml file correctly. I also wonder how exactly does the Flex builder compile the mxml to swf file, since I've never seen it created a swf file automatically just by running the mxml file.

Looking forward to your help!
0 Kudos