Go Back   CodingForums.com > :: Client side development > Flash & ActionScript > Adobe Flex

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-19-2008, 06:45 AM   PM User | #1
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,659
Thanks: 4
Thanked 2,452 Times in 2,421 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
FLEX noobie, hopefully get a few language handling questions answered!

Ok, so I hope this is the right place to post this kind of topic, I figured either here or XML and its only kinda like XML directly.
Anyway, as you may know I'm mainly a PHP developer. So, I'm looking for a similar method to how PHP handles included pages. That is, the included page in PHP also takes any output into the current scope of the application.

I have a... what is it called... a changing panel... thing (if this isn't clear I'll look it up to see what its called), that I place different components on depending on the link that is selected (more accurately a button but that shouldn't matter). I'm hoping to separate the code on each of these panels into a mxml or as class of their own, but I don't know if they can be easily included back in (not like the import exactly). Hopefully someone knows if this can be done.

As well, the next one is relating to trees, specifically to how the data should be formed prior to the input. I'm dealing with a hierarchical data structure which I will be extracting from a database. Though XML makes the most sense for the structure type, each of these are objects, so I don't think I can jam them easily into an XML structure (especially if I retrieve them from PHP or ASP). So I'm thinking a Graph is the best option for this type of structure (especially since some things may appear later in the tree under different parents). Does FLEX have a built in Graph object, or should I just make my own? If I make my own, how do I define it as iterable so that it can be used in a tree?

Any help would be greatly appreciated!
__________________
As of PHP 5.5, the MySQL library has been officially deprecated. It is recommended to move to either MySQLi or PDO libraries for your mysql connectivity. See here for help choosing which interface you prefer: http://php.net/manual/en/mysqlinfo.api.choosing.php
Fou-Lu is offline   Reply With Quote
Old 01-19-2008, 04:27 PM   PM User | #2
gnomeontherun
Senior Coder

 
gnomeontherun's Avatar
 
Join Date: Sep 2007
Location: Houston
Posts: 2,846
Thanks: 10
Thanked 238 Times in 229 Posts
gnomeontherun will become famous soon enoughgnomeontherun will become famous soon enough
Now my experience with Flex has been limited as well and as of late I haven't touched it in months. I do remember though that the language of the program (MXML) is designed to create the application, and not necessarily to handle the data that it is processing. I honestly don't know where to go from there, but here is a link:

http://mark-shepherd.com/blog/2006/1...visualization/

Perhaps you could talk a little more about what the data is and what you mean by Graph...this kind of graph? Or is graph a different data object like an array? I'm not a PHP or ASP programmer, so this doesn't completely make sense to me.
__________________
jeremy - gnomeontherun
Educated questions often get educated answers, and simple questions often get simple answers.
gnomeontherun is offline   Reply With Quote
Old 01-19-2008, 10:53 PM   PM User | #3
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,659
Thanks: 4
Thanked 2,452 Times in 2,421 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
Yep, I pretty much got that the mxml was for the display, and the AS for the processing. I was just kinda hoping there was a way to do the inclusion, but I may have to just create some custom components instead.
Thats ok no worries.
As for graphs, they are an abstract data structure, hold on I'll get a link to them:
Here we go, this information pretty much sums up the graph:
http://en.wikipedia.org/wiki/Graph_theory

Very handy to use, fairly easy to program and many many uses available. Unfortunately they are not predefined in PHP either (to my knowledge anyway :P). Check it out, definitely worth knowing how to use!

Oh yeah duh, you wanted to know more on the data too :P
The system I'm working on is a tagging system for media. The tags are grouped and controlled by child / parent relationships, hence the usage of the flex tree for display - its a perfect choice.
__________________
As of PHP 5.5, the MySQL library has been officially deprecated. It is recommended to move to either MySQLi or PDO libraries for your mysql connectivity. See here for help choosing which interface you prefer: http://php.net/manual/en/mysqlinfo.api.choosing.php

Last edited by Fou-Lu; 01-19-2008 at 10:55 PM..
Fou-Lu is offline   Reply With Quote
Old 04-02-2008, 08:29 AM   PM User | #4
nikos101
Senior Coder

 
nikos101's Avatar
 
Join Date: Dec 2006
Location: London
Posts: 1,004
Thanks: 58
Thanked 10 Times in 10 Posts
nikos101 is an unknown quantity at this point
Quote:
Originally Posted by Fou-Lu View Post
The tags are grouped and controlled by child / parent relationships, hence the usage of the flex tree for display - its a perfect choice.
One of the things that got me interested in Flex, this stuff is pain to do with ajax
__________________

nikos101 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:34 PM.


Advertisement
Log in to turn off these ads.