Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6917277
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:42:36+00:00 2026-05-27T09:42:36+00:00

I’m using Flex 3.6 and ZEND AMF version 1.11 I have an array that

  • 0

I’m using Flex 3.6 and ZEND AMF version 1.11

I have an array that shows in my trace using trace(ObjectUtil.toString(event.result));
It outputs as follows:

---This is a Test!---
//The Object Contains...
(Object)#0
    code = "112"
    path = "whateverthispathis"
Path is: 
-----End of Test-----

In REST we used event.result.data.path to get the path variable.

How do I get the path variable via Zend AMF without using XML and out of the PHP array I made posted below?

This is the PHP code I’m using to send it back to Flex:

$Data = Array();
$data = new params();
$data->path = $path;
$data->code = "10";
array_push($Data,$data);
return $data;

I have no problem throwing the results in lists, arrays, datagrids, etc., but there are times I just need to access 2 strings out of sometimes 20 strings only and this is why I’m asking.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T09:42:36+00:00Added an answer on May 27, 2026 at 9:42 am

    Ok i have finally figured out my answer

    The way we use Rest Services to access XML output like

    <data>
    <path>mypath</path>
    </data>
    

    That is accessed by using event.result.data.path; if using event:ResultEvent

    Now with Zend AMF using examples based off Creating a Simple Crud Application and Shrinking and modifying the code to my liking yet the return of the php object remains the same…

    I have to use this

    var obj:Object = event.result;
    trace("---This is a Test!---");
    trace("Path is: "+String(obj[0].path));
    trace("-----End of Test-----");
    }
    

    and it outputs as follows in my flash debugger console

    —This is a Test!—
    Path is: mypath
    —–End of Test—–

    Now obj[0] is basically the first Object Row
    “path” is the String in the Object set by using this sample code on the ZEND AMF PHP Class file

    $Data = array();
    $data = new login();
    $data->path = mypath;
    $data->passed = 10;
    array_push($Data,$data);
    return $Data; 
    

    If i wanted to access the passed value i’d have to use
    trace("Path is: "+String(obj[0].passed)); which would output as 10

    If i wanted to Access the 2nd set of Object Values and so on…
    increment the obj[0] to obj[1] and increase for any additional Rows
    In my case any obj[1] would output as null Since I have no additional rows at this time.

    Of Course mostly we hardly ever need to access multiple rows of Objects since thats commonly added as ArrayCollections or Arrays and Displayed in Datagrids and Lists and whatnot. Like the Simple Crud Demonstration at the link below shows.

    Also i use Open Flex 3.6 SDK therefore in the Simple Crud Application i had to modify all the s: (Spark Containers) To mx: and eliminate fx: Declarations as well thats just a note for those attempting to use the Simple Crud PHP Zend Application and not using Flex 4 nor Flex 4.5

    The Simple Crud i was referring to is linked as follows
    http://www.adobe.com/devnet/flex/articles/crud_flex_php_zend.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have thousands of HTML files to process using Groovy/Java and I need to
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I have a jquery bug and I've been looking for hours now, I can't
I am reading a book about Javascript and jQuery and using one of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.