Adobe Dreamweaver Forums



Last 10 THreads :         DIV in Table not working. (Last Post : Murray *ACE* - Replies : 11 - Views : 12 )           »          navigation bar in div (Last Post : jody25 - Replies : 2 - Views : 3 )           »          Disabling menu bars in a browser window (Last Post : Jay Jay - Replies : 6 - Views : 7 )           »          Cannot Connect Remotely to FTP using Dreamweaver CS4 (Last Post : Murray *ACE* - Replies : 15 - Views : 114 )           »          Library is missing names from splitter bar (Last Post : Murray *ACE* - Replies : 10 - Views : 11 )           »          Multiple Netstreams (live feeds) best practices (Last Post : techeye - Replies : 3 - Views : 4 )           »          Dynamic XML Array Push ? (Last Post : Jadeivy - Replies : 0 - Views : 1 )           »          How to make a paypal button? (Last Post : loki2357 - Replies : 0 - Views : 1 )           »          How to align XML loading text to right (Last Post : Boxing Boom - Replies : 8 - Views : 9 )           »          Why is this not working!!! (Last Post : NedWebs - Replies : 10 - Views : 11 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Flex
 
Tags:



Reply
  #1 (permalink)  
Old 11-21-2008, 02:14 PM
ec30
 
Posts: n/a
Diggs:
Default Load controls/layout dynamically

I want to load a graphical frontend (in Adobe Flex) containing some labels with
text and an image dynamically from an HTTPservice connecting to a MySQL
database. For instance, the HTTPservice returns the following XML data;

<layout>
<element posX="200" poxY="400">
<label>Company</label>
<text>Some Company & Co</text>
</element>
<element posX="400" posY="400">
<label>CEO</label>
<text>Some name</text>
</element>
</layout>

Is this possible and what kind of approach/functions can I use to accomplish
this?





Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-21-2008, 03:24 PM
Karl_Sigiscar_1971
 
Posts: n/a
Diggs:
Default Re: Load controls/layout dynamically


You need to parse the XML file with E4X, extract the information you need, add components of the relevant type with ActionScript and set their data.

Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 10:51 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Cheap Car Insurance - Compare Motor Insurance
Endsleigh Car Insurance Natwest Car Insurance
More Than Car Insurance Norwich Union Car Insurance
Prudential Car Insurance Zurich Car Insurance
Inactive Reminders By Mished.co.uk