Older Flex projects would have compiled correctly and the SWF and HTML files created in the bin-debug folder. If you changed something in one of these projects, clicked run, got the error message and click proceed, Flex will not compile the SWF and will, instead, run the older SWF that did compile correctly.
With a new project that you have never gotten to compile correctly, there will be no olderSWF or HTML file to run so when you click proceed, you will get a file not found error. On a secondary note, the code you supplied is not an application. An Actionscript application would need to subclass Application. --- In [email protected], "brucewhealton" <[EMAIL PROTECTED]> wrote: > > Ok, so, this time I opened a few different Flex projects and an > Actionscript Project. In every single project that I opened and tried > to run, I am getting errors. When I get the message that there are > errors, I select Cancel instead of Proceed, but I get no indication of > what the error is. I've seen errors reported in the code when I've > debugged previously. This time though, it doesn't tell me anything > about the errors. I've looked in every view in the debug perspective. > > The only way to see what the error is about is to Proceed, at which > time it says it can't find the file.html - where file.html is the html > file associated with the application. > > Here's an example Actionscript application: > >>> > package { > import flash.display.MovieClip; > > public class ProgrammingBasics extends MovieClip > { > public function ProgrammingBasics() > { > var quantity:Number; > quantity = 5; > trace(8); > } > } > } > >>> > In this case, it says that it can't find the file > ProgrammingBasics.html Indeed it is not in the bin-debug folder. In > the past it would always create this file, the html file and put it in > bin-debug. Oh, again, I only see this error about not being able to > find the ProgrammingBasics.html if I select Proceed, despite being > told there are errors. If I select cancel - don't proceed because > there are errors, I see nothing, no feedback, no error indication. > > Applications that had been defined and tested at least a week ago, > work fine. But every single new Flex/MXML or AS application fails > with these errors. > Thanks, > Bruce > > --- In [email protected], "Paul Andrews" <paul@> wrote: > > > > Well, the most basic problem here is that after being told there are > errors, > > you are still proceeding. Once told there are errors, you should > review and > > fix the errors rather than continue and be surprised that files are > missing > > from the bin directory. > > > > If you are stuck understanding these errors, then let us know. > > > > While it is possible to proceed even when you have errors, you still > need to > > review and understand them so that you can properly decide whether > or not > > they are affecting your testing at that time or not. In general, if > there > > are errors, fix them first before proceeding. > > > > Paul > > > > ----- Original Message ----- > > From: "brucewhealton" <bruce@> > > To: <[email protected]> > > Sent: Sunday, June 29, 2008 3:24 AM > > Subject: [flexcoders] Problem running/debugging in Flex > > > > > > > Hello all, > > > I hope someone can help me figure this out. Flex projects > > > that I created a while back are running ok from within Flex. However, > > > recently, I created two projects both of which are displaying errors. > > > Here's what happens. I create a project called ProgrammingBasics. > > > This is an Action Script application. Note, the same thing happened > > > in my Flex MXML project. I select run or debug from within Flex 3 and > > > it says there are errors and do I want to proceed. > > > If I click Proceed, it then shows me an error that says it > > > could not find the file, in this case it would be the main file that > > > should be in bin-debug and have a name of ProgrammingBasics.html The > > > application tells me that it cannot find that file and > > > ProgrammingBasics.html > > > This also matches the Actionscript file: ProgrammingBasics.ac > > > I have no idea why this would start to happen. In > > > myFlexMXMLApplication, it tells me that it cannot find the file: > > > myFlexMXMLApplication.html - where myFlexMXMLApplication.html > > > represents any Flex MXML application that I were to create. > > > Going through the documentation has not been all that helpful as > > > I don't know if I am searching correctly to find a solution to > this error. > > > Please help me figure this out, > > > Thanks, > > > Bruce > > > > > > > > > ------------------------------------ > > > > > > -- > > > Flexcoders Mailing List > > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > > > Search Archives: > > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups > > > Links > > > > > > > > > > > > > > >

