Php :: Make Returned From PHP Data Fill MXML Flex Mx:List (Using Actionscript And PHP)?

Mar 10, 2010

I am Using Flex 3 and apache with PHP 5.2. I am searching for simple as possible way to fill my mx:List with data using POST URLRequest.

In Flex builder I am using the next code

public var variables_se:URLVariables = new URLVariables();
public var varSend_se:URLRequest = new URLRequest("DataProvider.php");
public var varLoader_se:URLLoader = new URLLoader;

[Code]...

View 2 Replies


Similar Posts:


Flex :: Fill Parent In Adobe / MXML - Implementing Layout?

Dec 6, 2011

I am attempting to implement a layout in Adobe Flex 4.5 / MXML where I have multiple controls in an HBox that - in total - consume all available horizontal screen estate. Some use a relative with (percentage), some an absolute width (pixels) and one is supposed to consume whatever space is still left, such as:

+----------------------+-----------------------+------+
| 35% | fill parent | 10px |
+----------------------+-----------------------+------+


How would I achieve this in Flex (is there something comparable to Android's
layout_width="fillparent")?
Due to the fact that there are elements that have an absolute width I cannot easily calculate the width of the filler as a percentage a priori (as it varies with the screen width). Setting the filler's width to 100% also does not work as this will shrink the 35% area below 35%. Applying the updateDisplayList suggestion from www.Flextras.com's answer below yields the error "Call to a possibly undefined method updateDisplayList" at the line marked in the source excerpt below:

<?xml version="1.0"?>
<mx:HBox xmlns:fx="[URL]"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
creationPolicy="auto"
[Code] .....

View 1 Replies

Flex :: Jabber Server Returned Data?

Dec 3, 2010

I am developing a chat application using flex, which can use different service providers users like gmail,yahoomail,ami etc. Almost similar like meebo.com.

I am using jabber server. My question is what kind of information jabber returns.I am getting userid,password,status,status message but I am not getting address or phone number of the user or picture of the user..

Please let me know,how can I take these values and what should I pass to jabber server to revcieve full information from jabber for different service provider's users.

View 1 Replies

Flash :: Flex - Manipulate Data Returned From PHP Service In Builder

Mar 12, 2011

I'm using the data/services in Flash Builder 4 to access the php functions of a site within an Air based Crud, and figuring out the most efficient ways to work with the data objects that come back.

[Code]...

The data comes back as an associative array, which is fine if I want everything from it to be treated the same. But I'm not sure how I am supposed to pull a particular column from the array without having to go through a for loop to parse through it.. since right now the contact name would be at allContacts[i].name.

Basically I want to make a list of the names from the allContacts, so I want an array of allContacts[i].name to set as the data provider for a element. Is there any way to get that done without having to write a for loop to convert it into a new array or writing a new php function?

View 1 Replies

Cannot Show Returned Java Class Data In AdvanedDataGridColumn Of Flex AdvanedDataGrid

Feb 28, 2011

I am developing with Flex + java + hibernate in one project. I am trying to add one more advanceddatagridcolumn in flex AdavanedDataGrid control. Actually it work very well but only except I added columns data. I have no idea what should I do to make it out I am telling work flow. At first call select method in DeliveryService.class through the RemoteObject and then call DeliveryMgr.class for call business work. After get return list type return value it pass to presentation class to setting all of the selected return value. I can print trace log what I added columns data in DeliveryPt.class but it cannot return to flex area.Strange thing is I can check out value of what I want to show data in DeliveryPt.class but it does not show up in AdvanedDataGridColumn of Flex.

[Code]...

View 1 Replies

Flex :: Fill A List With A Combination Of Database Entries And Meta-values?

Aug 31, 2009

I am acquiring the contents of a table to fill a dropdown box in a Flex 3 application:

<mx:ComboBox dataSource="{myList}" />

The list is populated by the contents of a database table of persons:

Public, John Q
Doe, Jane
...

The combo box, however, also needs to have some other meta-entries in it that do not come from the database:

ALL
ALL MEN
ALL WOMEN
Public, John Q
Doe, Jane
...

View 1 Replies

Flex :: Disable Logging Data Returned From BlazeDS Call When Debug Level Logging Is Enabled?

Jul 5, 2011

Based on this guide, I have enabled debug level logging and also enabled date, time, level and category logging.

This works great, except now I am seeing all my data that's returned being logged. Is there a way to disable this? I would still like to see the calls logged. I've tried info level, but that turns off request logging.

View 1 Replies

Flex :: Make List Content Dependant On Selection In Another List?

Jul 6, 2011

When a user selects a category from the first drop down box then i want the 2nd drop down to be updated based on the selection of the first drop down. I have created multiple ArrayCollections whose names are set to the "data" values of the first drop down, for instance:

[Bindable]
public var countries:ArrayCollection = new ArrayCollection([
{label:"USA",data:"USA"},

[code].....

View 2 Replies

Flex :: Efficiently Fill Data Gaps In An Sparse ArrayCollection?

Aug 10, 2010

I have an ArrayCollection of Objects. Each Object with three attributes:CustomerID, Income and DateMy goal is to chart this data for each customer (or a couple together) in a Income by Date LineChart display. Selection of customers is done with ArrayCollection filters.Data is fetched from an SQL database, however, each customer has some data points missing.f there was zero income on August 8, 2010 there will be no entry for that.Charting the ArrayCollection as is, is misleading because there is no indication of the missing data points.One way to solve this is to artificially add zero points for the missing dates for each customer. However, this would explode the data set (and impact performance).

View 1 Replies

C# :: POST Data To A Flex/Flash (mxml) Application?

Feb 19, 2010

I have Flex application requiring to filter users depending on there database groups.Depending on which group they are, the're is a config.xml file that is use to populate the swf.Here is how I figure how to do this : 1. The client comes to a .aspx page with a form requiring a username and a password. 2. On the server side I confirm the user credential . Once the username/password is valid I redirect to the mxml file with the config.xml file in the html headers (post).My problem comes when I need to get the post data from the http request. Let's say I have this code :

<mx:Application initialize="init()">
<mx:Script>
<![CDATA[

[code].....

View 2 Replies

Actionscript :: Use Data From One Mxml Component In Another Mxml?

Jun 19, 2011

I have 3 mxml components. In Component 1, I let the users fill in some data. In Component 3 I want to use the data, but I can't find a way to make it work.

View 1 Replies

Android :: Make TextEdit Fill The Width In Flex 4.5

Oct 31, 2011

how do I create a component in Flex 4.5 (using it for android..) that has a textInput and to its right a button, such that the button has fixed size and the textInput expands to fill the remaining space of the parent of the component?

this is the component..

<s:HGroup>
<s:TextInput width="????"/>
<s:Button width="37" height="37" />
</s:HGroup>

of course I don't know what to put in the width.. should I also specify a width for the HGroup?

View 3 Replies

Actionscript :: Flex 3: Data Assignment To A Subcomponent Fails In An MXML Component

Aug 26, 2009

I'm trying to propagate an assignment to the data parameter of a sub-component through it's parent component's setter. Like this:

<CustomComponent
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns="components.*"

[Code].....

When I ran my application, the sub-component never received its data. When debugging and stepping to the line marked "ref #1", the debugger jumps out of the method and continues on to something else as if the method was complete. It seems like some exception or error was thrown but the console gives no indication of what is wrong with this assignment.

Environment: This is using Flex SDK 3.2, with the Flex Builder 3 plugin for Eclipse on Windows, with Flash 9 Debug ver. for IE7.

Note: With this particular example I'm trying to avoid Binding on purpose. I mean, why can't I manually push the data to the sub-component rather than binding it?

View 2 Replies

Make An MXML Variable Bindable In Flex 3?

Jun 14, 2011

Is it possible to use the Bindable compiler setting when using mxml?

I've got a string that I want to make bindable:

<mx:String id="myString">My Text</mx:String>

I could make it bindable in Actionscript, like this:

[Code]...

But it threw a lot of warnings-- other classes were already marked bindable in my App.

View 1 Replies

Flex :: Make Instance Of Mxml And Pass Parameters?

Jan 11, 2011

i want to create instance of mxml (in my case EventList) and pass parameters. My Event List is a list of panels so I want to pass parameters and generate dynamically n number of panels (n-parameter to pass). I have the main app where I have toggle button bar when I click on the first I want for example to generate 3 panels (n=3) on the second button 20 panels (n=20) etc.How can I do this? How can I pass n and what is the best way to show the list? I whant to generate the list when I click on the toggle button!

View 1 Replies

Actionscript 3 :: Make Dynamic States And Add Buttons To It In Flex Using NOT MXML

Mar 23, 2012

I know how to add stages in actionscript but i don't know how to add children to them stages.

This is how I make my states.

var state1:State = new State();
state1.name = "state1";
states.push(state1);

[Code].....

View 1 Replies

Actionscript 3 :: Make Flex Entry-point MXML Subclass A Custom Class?

Oct 21, 2010

With MXML components, I've seen a pattern used where you have an AS3 class, then the MXML subclasses it, to have a separation between view/code (anonymized from real code):

package com.john
{
public class MyComponent extends Canvas
{

[code]...

At least I think the MXML component is subclassing the AS3 class?Anyway is it possible/advised to do this with my main MXML application file, so I can put manager instances and things in the AS3 MyApp class, which is subclassed by Main.MXML?

View 1 Replies

Actionscript 3 :: Flex - Make A Button In A Grid Call A Function In The Same Mxml File?

Jan 21, 2011

I've a grid view in flex, one of the columns is rendered like this:

[Code]....

now I've a problem that the function in button click is not being recognized. It says "call to a possibly undefined function" even though it was defined. What is wrong with this? How do i make a button in a grid call a function in the same mxml file??

View 1 Replies

Flash :: Flex :: AS3 Vs MXML - Compilation Speed Difference And How Does The Mxml Compiler Work

Sep 24, 2009

Does MXML get compiled down to as3 and then converted to flash bytecode? Also, is there a significant performance penalty to compiling mxml vs compiling as3?

View 3 Replies

Flex :: MXML Syntax To Assign Properties Of Subcomponents In Custom MXML Components?

Jun 4, 2011

I am working on a custom Flex 4 component which is an aggregation of two existing flex components. I would like to be able to specify my own custom properties for the component as well as access the existing public subcomponent properties via MXML. For instance I might want to adjust the font color or style for the label and text input. toy component which aggregates both a label and a text input:

<?xml version="1.0" encoding="utf-8"?>
<s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"

[code]....

View 1 Replies

ActionScript 3.0 :: Getting All Of This Extra Space When Event.target.data Is Returned From Php?

Oct 16, 2009

k, so i have a function that checks to see if a user name and email that's being registered already exists in my DB. if the user name previously exists, a 1 is returned. 2 for email and 3 in neither previously exist. if i hard code my user name an existing user name, "joe", who already exists, into my php file and run it in my browser, i get an echoed answer of "1" as i should- nothing less, nothing more. if i don't hard code it and run "joe" over from flash and trace(event.target.data);, i get 1 with a bunch of carriage returns after it in my output window.

[Code]..

View 17 Replies

Data Integration :: XML Object - Status Returned Varies Between Calls

Nov 25, 2007

Sometimes I get "success", sometimes I get "no success, no error" What gives? Same results across the wire as far as I can see...

[Code]....

View 2 Replies

ActionScript 3.0 :: Trigger Event , When Loaded Data Is Processed And Returned

Mar 15, 2012

I am loading a URL , [ url  is on another domain ]
 
it loads URL and then URL process and sends request to its server and returns data
 
loader1.addEventListener(Event.COMPLETE, onDataLoaded);
 
on onDataLoaded does not give me returned data , but this function triggers when it completes Loading URL
  
I want to trigger event , when loaded data is processed and returned , how I can acheive this ?

View 1 Replies

Actionscript 3 :: Flex When Mxml Described Component Initialise It's Mxml Described Properties

May 28, 2011

I am trying to override a Button class, i have a few properties which i wish directly initialise with the mxml description of the component, like :[code]which function is triggered ( in order to override it ) when all properties with mxml description is fully initialised with their values ?

View 1 Replies

Flex - Getting Data From An Xml List?

Aug 10, 2011

i have a simple xml like so:

<root Name="Bob" isImployed="true">
<customer Name="Bob" id="12345">was addressed in the shopping mall</customer>
<Job-title>Insurance</Job-title>
<experience>15</experience>
<Question1 question="how much do you make?">35000</Question1>
<Question2 question="do you get a yearly bonus?">5000</Question2>
<Question3 question="would you be interested in our weekly plan?">yes</Question3>
</root>

[Code]...

I would like to go over all the questions (there are more than question1,question2 and question3). some of those contain numbers (salary, bouns) and some don't. I am looking for a way to go over the whole list, querying if the answer is a number or not, and if so - get the number. (and do some calculation with it).

View 2 Replies

Flex :: Extending MXML Custom Components Via MXML?

Feb 3, 2011

What I'd like to do: create an MXML component with some children, then extend it via MXML to create a new component with more children, without losing the original set.In other words

create a component bc.mxml
<?xml version="1.0" encoding="utf-8"?>
<s:BorderContainer xmlns:fx="http://ns.adobe.com/mxml/2009"

[code].....

View 1 Replies

Flex :: Calling Another Mxml Function In Other Mxml File?

Sep 27, 2011

i have defined some functions in a component mxml file let us say addbutton() now i want to call this function in main mxml file.

View 2 Replies

Flex :: Make Yahoo ASTRA Autocompletemanager Pop Out Last Inputed Into It Value On Application Creation (Flash Builder - Mxml)?

Nov 14, 2010

So yahoo astra has grate compohent for saving inputed data. They show examples of how to use it. But I had not found one capable to solve my current problem. For example user inputed his name. It is saved, but when he comes again he always needs to input at least first latter of his name. so I wonder - how to make Yahoo astra autocompletemanager component to pop up last inputed into it value on application creation complete?

[Code]...

View 1 Replies

Flex :: Dynamic Adding Data Into List?

Dec 17, 2009

I have an XML file, I read the data and want to add it to a List and then use the List to be displayed.

Something like this is what I want to do:

List data = new ArrayList();
data.add(item1);
data.add(item2);

How can I do this, also how will I display the List in a table!!

View 2 Replies

Flex :: Why List Not Displaying Data From ArrayCollection

Feb 23, 2011

I'm working on a flash cards application and am using an ArrayCollection of Objects to store each cards individual data. When the user click the 'save' button, the text from the two textAreas and the 'title' textinput are stored in the AC as one object with .title, .side1 and .side2 properties that contain the text from the flash card. I have made a List in a separate class I want to have display the title of each card the user has created, but after days of researching and looking around, I still cannot get the display to list the titles.

Part of my NewCard.mxml:
<?xml version="1.0" encoding="utf-8"?>
<fx:Script><![CDATA[
import flash.events.EventDispatcher;
import mx.collections.ArrayCollection;
import spark.effects.SlideViewTransition;
[Code] .....

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved