1

I am new to using flash and I need to make a web application using CodeIgniter with PHP.

I have some doubts about the MVC pattern applied in codeigniter. I'll use ActionScript because I see that is most used and less complex. (correct me if I'm wrong)

Are my views (which are in the folder view) would separate my files in Flash? Any IDE assist me in programming flash with php? Should I create a separate Flash application from another application to connect php? Any consideration to be taken into account?

Thanks in advance.

3
  • How do you intend to combine Flash with PHP? Commented Oct 10, 2012 at 5:11
  • I'll use ActionScript because I see that is most used and less complex Less complex than what? php? javascript? most used where? not in web application, at least not nowadays...How did you form the idea to mix server-side php and Flash-integrated AS? Did you see some webapp mixing those two, by chance? Or do you just mean you want to embed some external swf in your html files? Because that's quite different... Commented Oct 10, 2012 at 5:32
  • @DamienPirsy Less complex than Flex. I said that is more used because I see many examples in AS3 in Flex. I have the idea to combine Flash with PHP because it requires a voice recorder. In which captured the audio and save it. I found jRecorder but this plugin of jQuery don't work on IE and I need that voice recorder work on this browser. This is the reason of Why, i decide to use Flash Commented Oct 10, 2012 at 19:54

2 Answers 2

1

I'm not sure if "combine" is the right word here. If you integrate PHP, ActionScript and CodeIgniter, you'll actually be writing PHP within the CodeIgniter framework and then embedding Flash .swf files into your views.

If you plan on using this combination, what you'll need to do is map out your site and determine which parts are going to be done in PHP and which parts need to be done in Flash (or ActionScript).

My recommendation: Only use Flash where unescapably necessary. That is, use CodeIgniter for your website pages and to integrate with your data sources (via PHP) and create REST endpoints (via CodeIgniter) for data that needs to be accessed via your Flash implementations. Then, create your Flash (or Flex) application that needs to handle the audio recording and embed that into one of your CodeIgniter views.

Re:

I'll use ActionScript because I see that is most used and less complex (than FLEX).

IMO, Flex (and MXML) is essentially just a markup language for ActionScript. It actually gets compiled into ActionScript when you build your .swf file. So, choosing ActionScript vs. Flex is just a personal preference. If you're more familiar with the Flash interface than the Flex Builder interface, then go ahead with ActionScript exclusively. However, for what you say that you want to build (an audio recorder), there are already numerous examples of those available in Flex.

As far as an IDE discussion, for PHP - whatever you're familiar with. If you're looking for a full-featured IDE, I'd recommend something like PHPStorm. You can also get by with any text editor.

For Flex or ActionScript, you'd almost have to go with Flex Builder or Flash.

Sign up to request clarification or add additional context in comments.

Comments

0

Try looking at amfphp (http://www.silexlabs.org/amfphp/) if you want to connect flash and PHP.

We used it for the commercial release of flash/flex based games with a PHP/Apache backend.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.