-
XML content 2 Flash - Flash editor for XML.
Hello.
I have a project in mind, but, unfortunately, is just an idea for now.
Of course this will be open source if will ever see the light of day in final stage.
So, as the title says, what I thaught is:
1. XML file containing:
Code:
<MYXML>
<announce>
<Title>Date : First title</Title>
<link><![CDATA[<a href="http://www.mydomain.com">Enter for more</a>]]></link>
<thumb>images/thumb/pic1.jpg</thumb>
<pic>images/pic1.jpg</pic>
<short>Short description of announce</short>
<long>Long description of announce</long>
<announce>
<announce>
<Title>Date : Second title</Title>
<link><![CDATA[<a href="http://www.mydomain.com">Enter for more</a></link>
<thumb>images/thumb/pic2.jpg</thumb>
<pic>images/pic2.jpg</pic>
<short>Short description of announce</short>
<long>Long description of announce</long>
<announce>
</MYXML>
The default index.html will display the index.swf which opens a comboBox above, TitleBox, shortBox and thumbpic. Those in the first frame of the movie.
I need to put a read more at the end of each announcement which, goes to second frame, where there will be a longtextBox and bigpicBox.
Also in the second frame, a button "Return" which goes back to first frame.
And now the admin.swf will be a XML editor for all the fields, capable to edit an announcement, modify, delete, and add a node to the XML.
Is my idea possible? Theoreticaly, I know it is. But when it comes to putting it all at work, my fingers are blocked.
Help anyone? Please......
-
-
I wan little more detailed to get what you are actually accomplish. what the end result with do to make life easier. Give some visuals if you can do it from your mind. This make some good sense to me. But to find the correct solution, it needs more in-depth details of the actual motives of this application.
If theoretically proves, then it is always possible in practical. Math says.
arkitx
-
Originally Posted by arkitx
I wan little more detailed to get what you are actually accomplish. what the end result with do to make life easier. Give some visuals if you can do it from your mind. This make some good sense to me. But to find the correct solution, it needs more in-depth details of the actual motives of this application.
If theoretically proves, then it is always possible in practical. Math says.
arkitx
Ok. Let's take it slow.
We have Flash AS2 (CS3) and an XML file.
The XML file must be edited from Flash.
The Flash contains a comboBox (components). This component get node value that are in fact categories: ex. media, art, TVshows, theatre.
By selecting a category, we can select another subcategory from a second comboBox that get data from the subcategory node and after that we can edit the XML file for that node meaning, adding links and text through 2 text boxes (linkBox and textBox). Basically, the <a href="" target=""></a> must be inserted automatically, when selecting subcategory at the top of CDATA and in the linkBox we just fill the filename and path (ex. www.mydomain.com/files/testPDF.pdf). The second - textBox, fills the blank between <a></a> or if the linkBox is not filled, deletes automatically <a></a> line and simply insert a text line. Below I will show you an example of my XML:
Code:
<NEWXML>
<MEDIA>
<2005>
<GetCategorySubTitle>2005 Media Archive</GetCategoryTitle>
<Content>
<![CDATA[
<a href="http://www.mydomain.com/files/1.pdf" target="_blank">link1</a>
<a href="http://www.mydomain.com/files/2.pdf" target="_blank">link2</a>
<a href="http://www.mydomain.com/files/3.pdf" target="_blank">link3</a>]]>
</Content>
</2005>
<2006>
</2006>
</MEDIA>
<ART>
</ART>
<TVshows>
</TVshows>
<THEATRE>
</THEATRE>
</NEWXML>
Oh, and another problem, if, let's say, I need to create a new category, a button to the left of each comboBoxes (category and subcategory) - Add new....
Adding new category creates a new tag under </THEATRE>
Adding new subcategory creates a new tag inside the meta selected at category.
Is this possible in as2?
-
-
Nice one. Simple and just..... How? ))
-
PHP Code:
<?xml version="1.0" encoding="utf-8"?> <NEWXML path="http://www.mydomain.com/files/" ext=".pdf" target="_blank"> <MEDIA name="Media"> <2005 title="2005 Media Archive"> <Content> <a fileName="1">link1</a> <a fileName="2">link2</a> <a fileName="3">link3</a> </Content> </2005> <2006 title="2006 Media Archive"> <Content> <a fileName="4">link4</a> <a fileName="5">link5</a> <a fileName="6">link6</a> </Content> </2006> </MEDIA> <ART name="Art"> <2005 title="2005 Art Archive"> <Content> </Content> </2005> </ART> <TVshows name="TV Show"> <2005 title="2005 TV Show Archive"> <Content> </Content> </2005> </TVshows> <THEATRE name="Theatre"> <2005 title="2005 Theatre Archive"> <Content> </Content> </2005> </THEATRE> </NEWXML>
This looks better Structured xml.
visit : http://www.kirupa.com/web/xml/examples/simpleeditor.htm
arkitx
Last edited by arkitx; 02-16-2012 at 02:27 PM.
-
You will get all the syntax in Flash Help under ActionScript 2 Components. Search by "DataGrid".
Regards
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|