Page 1 of 3

A Flash Frontend for phpwcms is up.

Posted: Tue 2. Mar 2004, 05:51
by ionrock
Hello all,

I have put up Fulvio's flash frontend add on to phpwcms so you can get your content into your flash site. Compliments to Fulvio for a great tool nd check out the other scripts and articles on the site. It is kind of bear but growing every day.

Here is the link

Also, I am working on a plugin architecture so if anyone has any experience or thoughts please post a messgae or send me a private message. I have some basic requirements to make it all work but it will take some sweet hacking to make it happen so help is appreciated.

As always, thanks to Oliver for the great cms!

Posted: Tue 2. Mar 2004, 14:55
by vmedia
Wow! Sounds good.. is there a preview somewhere? I'm very curious...

Posted: Tue 2. Mar 2004, 17:09
by ionrock
send a message to fulvio. Not a big flash user so I don't have a demo but it would be cool to see.

Posted: Tue 2. Mar 2004, 17:21
by Fulvio Romanin
http://www.fulvioromanin.it/portale/test.htm

nothing nice to watch, just to see that you can generate and load stuff from within flash... :)

Posted: Tue 2. Mar 2004, 22:46
by pSouper
hi Fulvio,
just looked at your demo - very nice indeed dude ;)
I would really like to know what extent you have of funcionality you have covered.
I had read the readme in your download but couldn't get a clear understanding of what exactly you can and can't do with the flash version.
what replacement tags and content type etc. password login etc.

I guess I should install and see but if you don't mind writting down a list of 'can and can not's' I love to read it.

Posted: Wed 3. Mar 2004, 01:24
by Fulvio Romanin
well
the flash frontend is just made and meant to "translate" the regular phpwcms html layout into flash-loadable content, thus meaning you can make a regular phpwcms site AND in the same time you can use flash as interface.

Fcms, how i call it, is not meant in any way to -replace- any of the functionalities of phpwcms. Replacement tags, etc. just stay exactly the same as the html version. But this way you can have both sites (and both updatable sites, especially flash where updating is a major pain in the ass) with minimum fuss.

Actually you can
- load titles into flash (dynamic text fields)
- load articles into flash (with limited html support - don't blame on me, it's flash's fault) with practically all content that replacement tags do (unless new stuff comes out soon)
- load images into flash

you will (as soon as i can get back over it)
- have flash files loaded into flash (it's not as pointless nor as easy as you think)
- have preloaders, movements, behaviours, etc.

you won't
- have more than one article per menu voice (at the moment...)
- have administration area, private area and usual phpwcms backend features replaced by flash stuff. I personally think it's useless as phpwcms works sooooo fine.... :)

Posted: Wed 3. Mar 2004, 11:45
by vmedia
Sounds very very good.. I'm gonna follow the progress close ! :D

Posted: Wed 3. Mar 2004, 13:40
by Fulvio Romanin
you can help as well, if you want to :o

Posted: Sun 7. Mar 2004, 10:58
by dr.swank
Hi All,

I have joined the project here.:) I hope I can be of service. So far I have started by seperating the loaded data in flash into a simple XML object which can then be used to create menues however you want. I will be parsing the whole thing into a dataProvider later as soon as I am certain how the structure of that DP should look. I have also written a very quick script in Flash that allows you to access the nodes of the <body> segment of any chosen page as an XML object, thus allowing for the reading of any and all attributes inside the diverse tags. (class, id, img, color, bgcolor, etc...) thanx here goes to Oliver for making the system XHTML compliant!

I will be posting the updates to my work at the following link:

http://mmk.burbacher.org/files/fcms/

the files will be dated as the dev on my end continues. Please no comments on the lack of flashy animations or eye candy. makiung it pretty is not my job, it's yours ;)

cheers, and thanx to Fulvio for getting this thing started

Posted: Mon 8. Mar 2004, 00:12
by cmslover
dr.swank wrote:Hi All,

I have joined the project here.:) I hope I can be of service. So far I have started by seperating the loaded data in flash into a simple XML object which can then be used to create menues however you want. I will be parsing the whole thing into a dataProvider later as soon as I am certain how the structure of that DP should look. I have also written a very quick script in Flash that allows you to access the nodes of the <body> segment of any chosen page as an XML object, thus allowing for the reading of any and all attributes inside the diverse tags. (class, id, img, color, bgcolor, etc...) thanx here goes to Oliver for making the system XHTML compliant!

I will be posting the updates to my work at the following link:

http://mmk.burbacher.org/files/fcms/

the files will be dated as the dev on my end continues. Please no comments on the lack of flashy animations or eye candy. makiung it pretty is not my job, it's yours ;)

cheers, and thanx to Fulvio for getting this thing started
I don't quite understand exactly how it works but as a newbie user-I truly appreciate all the works that Oliver, and other skilled people like you guys have been doing for wcms community. Thank you all, very much!!!

Posted: Mon 8. Mar 2004, 23:28
by dr.swank
I have worked out a simple recursive function to read the attributes and content of the entire body of any loaded page. Right now it only traces the info, but it is no problem to create the needed objects to represent using this function. code is at the aformentioned location. more to come...

the file is called 20040308xhtml_test.fla.zip

Posted: Tue 23. Mar 2004, 22:57
by dr.swank
hi all, I have been very busy teaching, so I have had little time to code for this. But I do have 2 bits of good news.

1. I will be working on FCMS with my students over the next 5 weeks. They are all fairly good coders, so I hope to have a viable framework running by the end of the course.

2. I have resolved the issue of loading the css data into flash, for mx as well as mx04. For those who havn't tried this, flash mx04 doesn't like special selectors or id's... :( it really annoying. so here is the script I wrote to solve it:

Code: Select all

var lv = new LoadVars();
lv.load("blog.css");
lv.onLoad = function() {
        //split the content of lv into an array
        css_array = String(unescape(this)).split("}");
        //remove the onload function node
        css_array.pop();
        //length
        var l = css_array.length;
        //loop through css array
        for (var i = 0; i < l; i++)
        {
                //sert cur to current node
                var cur = css_array[i];
                //strip the escaped tabs
                var noT = (String(cur).split("\t")).join("");
                //strip escaped cairrage returns
                var noN = (String(noT).split("\n")).join("");
                //split into css id and definition
                var parts = noN.split("{");
                //split definition into array of value pairs
                var sty_array = String(parts[1]).split(";");
                //create temp object to store pairs in
                var sty = new Object();
                //loop through defenitions
                for (var k = 0; k < sty_array.length; k++)
                {
                        //pair into an array
                        var pair = String(sty_array[k]).split(":");
                        //store the prop name and prop value in temp object
                        sty[String(pair[0])] = String(pair[1]);
                }
                //store id tag in label and style obj in style
                var temp = {label: parts[0], data:sty};
                //replace curent node with temp
                css_array[i] = temp;
        }
        //set comboboxes dataProvider to list the styles available
        stylecombo.dataProvider = css_array;
};
3. I also solved the loading of the data from the mysql database, so now I only have to write the parsing code... and build the internal framework.

anyways, more as things develop.

cheers [/code]

Posted: Tue 23. Mar 2004, 23:10
by frold
dr.swank wrote:hi all, I have been very busy teaching, so I have had little time to code for this. But I do have 2 bits of good news.

1. I will be working on FCMS with my students over the next 5 weeks.
Gosh, man you are a real leader, LOL

Posted: Tue 23. Mar 2004, 23:26
by dr.swank
its in my interest, and in everyone elses.. :) I am doing just a small part, and am happy to do so. cheers

Posted: Wed 24. Mar 2004, 13:34
by Jan212
that's a real dope thing...