Jump to content
Larry Ullman's Book Forums


  • Content Count

  • Joined

  • Last visited

  • Days Won


DuPreez last won the day on October 7 2011

DuPreez had the most liked content!

Community Reputation

1 Neutral

About DuPreez

  • Rank
  1. Thanks for the reply. I'll check the php again that's generating the xml. I also posted another question regarding deploying a release version on a Linux server. If you have a moment, could you please reply to that? I'll be most grateful.
  2. I cannot figure out what is causing these warnings: Ignoring on line CDATA because other XML elements exist Ignoring: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in CDATA because other XML elements exist. The line number for both is line 2 of my main mxml application: line 1<?xml version="1.0" encoding="utf-8"?> line 2<!-- main application myApp.mxml --> line 3<s:Application minWidth="800" minHeight="600" height="100%" width="100%" .." I cannot export a release version without resolving these warnings. Thanks - real
  3. I developed on my Windows XP machine with a Wamp server and developed in Flash Builder 4. While I was developing and using data services - when prompted by Flash Builder I let it install the Zend Framework. Now I need to deploy a Flex 4 web application developed in Flash Builder 4 on an Ubuntu Linux production server which has MySQL and php already installed. Am I supposed to install Zend on the Linux server? The Adobe Help documentation is confusing... According to: http://help.adobe.com/en_US/flashbuilder/using/WSe4e4b720da9dedb5-13a250c812e8e9b5533-7ff9.html : "(PHP server proje
  4. I want to convert an XMLList into an Array (not an ArrayCollection). I do understand that an ArrayCollection is actually only a wrapper around an Array & at the heart of an ArrayCollection is in fact an Array. At this stage I can convert the XMLList into an ArrayCollection like so: testInfo = event.result.node; // testInfo is an XMLList myData = new ArrayCollection(mx.utils.ArrayUtil.toArray(testInfo.LoadType)); // myData is an ArrayCollection. Testing (component implementation), the only way I’ve been able to access the content (stripped of start & end XML tags) is like so:
  5. Flex 4. And in the meantime I got it working like so: <fx:Style> @namespace mx "library://ns.adobe.com/flex/mx"; @namespace s "library://ns.adobe.com/flex/spark"; @font-face { src: local("Verdana"); fontFamily: VerdanaEmbedded; fontWeight: bold; color: #000000; embedAsCFF: false; } mx|ColumnChart { fontFamily: VerdanaEmbedded; fontSize: 10; } For some reason the fontWeight must be 'bold'. If I change it to 'normal' it doesn't work anymore. A great mystery...
  6. Cannot rotate columnChart labels. I'm embedding a font & using a horizontal axisrenderer, yet still I cannot rotate the labels! Please help! Here's my code: <fx:Style> @namespace mx "library://ns.adobe.com/flex/mx"; @font-face { src: url("assets/fonts/DiavloM.otf"); font-family: Dia; fontStyle: normal; fontWeight: normal; embedAsCFF: false; } mx|ColumnChart { fontFamily: Dia; fontSize: 12; } </fx:Style> <mx:ColumnChart id="testChart2" dataProvider="{testInfo}" showDataTips="true" width="80%" height="30%"
  7. Hi, thanks for the reply. It is solved. The problem was I never called/invoked the POST HTTPService in my Flex application. However, I've since dropped the POST HTTPService altogether. I'm only using a GET HTTPService with <s:Request/> where I send the itemID data to the server. Also, in my php file I use $_REQUEST, but I know I can also use $_GET. Thanks again.
  8. Sorry, where is says Designation and Name it's the same thing. That's not the problem. The database query works 100%
  9. For some reason I cannot POST a value using HTTPService in Flex to my php file. If I hardcode the value in the php it works 100%, using just the HTTPService with GET. I need the xml result as dataProvider for a Flex graph and like I said, it works 100% and the graph displays correctly with a hardcoded value in the php. If I test in the browser like so: http://localhost/...my_url//myfile.php?itemID=1 I get an undefined index error and obviously if I run my Flex application I get no graph. If I change the $_POST to $_GET in php and just test in browser I get the correct output. Plea
  10. I think my problem is with the php script that generates the XML data for my tree component. I think I need a package (from PEAR) called Query2XML to generate XML from a sql query. However, when I try and install the package on my wampserver 2.0 via the commandline: c:\wamp\bin\php\php5.3.0>pear install XML_Query2XML-1.7.1, I get the following error 'failed to mkdir C:\php5\pear\docs\XML_Query2XML\cases\case01 And as a test: if I try and run in my browser the following php script: <?php require_once 'XML/Query2XML.php'; require_once ('PEAR/Exception.php'); require_once '
  11. Hi, thanks very much for your reply. Unfortunately no joy When I use: XMLDataList=event.result.kettles.kettle; nothing displays - just a blank. I also set the showRoot property on the Tree to false but still no difference. Will appreciate any further suggestions. Regards
  12. Firstly, apologies because I've e-mailed this question to Larry as well... Based on pp. 248-249 of Effortless Flex 4: trying to get XML data to display correctly in Tree component, but nodes are duplicated: parent duplicates itself as a child which in turn duplicates itself again as another child. When I run my xmlData.php script in browser, the hierarchical layout is correct: <?xml version="1.0" encoding="utf-8" ?> - <kettles> - <kettle> <child>Auto kettle</child> <child>Salton SSSAK22</child> </kettle> - <kettle> &l
  • Create New...