1 person found this helpful
When you say "Flex" do you mean an actual Flex project or you're referring to an ActionScript project created in Flex Builder? In case you are talking about an actual Flex project then I'm affraid that the answer is no. The main file for a Flex project should always extend the class Application.
With best regards,
Thanks for the quick answer Barna, yes I guess it could be an ActionScript project using Flex Builder, but then would I be able to use Flex Builder to edit the GUI part of my app? Or, is there a way to "call" a Flex application from ActionScript?
To be honest, I never even thought of trying to call a Flex GUI from a ActionScript project but I'm quite sure that it's not really possible. Althought Flex is based on ActionScript 3.0, Flex projects behave and work quite differently from ActionScript projects ( just think of components: you can't use a Flex specific component in a Flash CS4 file athought it's still ActionScript 3.0 we are talking about ).
Why would you need to have this kind of a mix? Why can't you simply create the whole project in Flex or as an ActionScript project? Why should the main class extend MovieClip ( what's the purpose ) ? If you could shed more light on this then I might be able to point you in a direction but at the moment, there are too many questions that need to be answered before I can say anything for sure.
With best regards,
So to be more specific, the application I want to build is called by another flash app (which runs on a proprietary embedded device), and the spec for the device clearly states that third-party apps should extend the MovieClip class. Go figure . So I am trying to decide if I can use Flex Builder (preferable), or must use Adobe CS4 Flash. GUI editing is a must as there are reasonably complex screens with many components. Now, based on my very limited Flex/AS experience and from what I've been able to gather around the web it seems like (correct me if I am wrong!) the only way to go is using CS4 .
Thanks a lot,
To avoid some possible and serious headaches I'd go for Flash CS4 if I were you. Noneteless, Flash to Flex communication is quite possible ( but as I said, you might end up facing some issues if things get really complex ):
You can find quite a few examples on google, it's up to you if you'll go with Flash CS4 or Flex ( I for one, would go with Flash CS4 just so I can avoid some serious headaches if things "get ugly" ).