design & interaction
action script 3.0, php, xml
Quick post for myself 🙂 While I’m writing xml files, always always forget how to type entities. Here is the link from wikipedia
Sometimes, in xml attributes I need to use “&” character, but it can be problematic. And, I can’t find any solution for this issue. We can use <![CDATA[ ]]> for xml nodes, but not for attributes. So for me the only possible way is to use character entities. eg:
//in xml node <content><![CDATA[me & others]]></content> //in xml node <content title="me amp&; other"/>
I’ve been looking for frameworks in order develop flash-based web sites for a long time. I haven’t checked any of these frameworks yet. Because, it takes a lot of time to get into a new programming environment for me. Also, when I’m working on a commercial project, I don’t want to waste my time with new classes, methods and etc.. to develop web based appilcation. Because, your customers don’t care about how the background of their web sites are created. They just want to see final result quickly 🙂
Anyway, For a long time, I’ve been coding with Flex and don’t want to use Flash hereafter. In my opinion, Flash can’t be a framework for coding action script language. I mean, I can’t imagine a framework that has no suggestion option while I’m coding an application. So, I searched for some frameworks which can be used without Flash. At this point, I encountered with PureMVC framwork. But there are no tutorial about how to use it in Flex…I googled some tutorials about PureMVC and here they are;
And there is an other Flash framework which called Gaia. The only disadvantage for me is, you can only use Gaia with Flash. But, Gaia has some tutorials about how to setup and work with it in their web-site.
Above article saved huge amount of time for me. I have been using PHP and MYSQL in order to record data to server. I achieved to write data to database. However, a loading time problem occured. When Flash tries to connect database to harvest data from database, It takes to much. When I try to get data with an XML file, it gathers data faster PHP file. So, I wrote a new PHP file which connets to database and writes an XML file and saves it under my server. Although I haven’t gor enough information about PHP coding, I can handle it with some kind of good tutorial. Sorry, I don’t have name of the owner of this article. Thanks to him or her!!