dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: php...postURL..and Object

  1. #1
    damned...
    Join Date
    Jan 2004
    Location
    France
    Posts
    104

    php...postURL..and Object

    In a movie I declare a variable as an Object...

    var zobject = new Object;
    zobject.x = '10';
    zobject.name = 'name';
    var posX = '10';
    postURL ("url/my_php_page","targetFrame");

    In the php file, using the command print_r($_POST);
    I can see...
    [zobject] => [object Object] [poxX] => 10


    The question is...
    is it possible to access the properties of my zobject in the php file ?
    I would like to get my x and name values....

    thanks

  2. #2
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    Not directly like that as PostVars only sends actual variables.

    You can create a variable for the x and name and make them equal the .x and .name of your object before calling the POST command. Or if they change often you could use a once per frame action to keep the up to date.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center