+ Reply to Thread
Page 2 of 2
FirstFirst 1 2
Results 11 to 15 of 15

Thread: Blob field not casted to ByteArray upon sending to AS3

  1. Join Date
    Jan 2002
    Location
    Gavirate - Varese (Italy)
    Age
    36
    Posts
    6,004
    Just to be sure.. can you provide me a zip file with an example of your script? as/php/mysql?
    also can you tell me which version of php/mysql/amfphp are you using?

    Alessandro Crugnola
    Flash | Net | Python Developer
    http://www.sephiroth.it




  2. k2xl is offline Newborn member little-flashed member k2xl is on a distinguished road
    Join Date
    Jul 2008
    Posts
    7
    Sure, do you mind if I email it? Btw, I did find others who encountered the same problem.
    http://sourceforge.net/forum/message.php?msg_id=4470750
    http://sourceforge.net/forum/message.php?msg_id=4858539

  3. Join Date
    Jan 2002
    Location
    Gavirate - Varese (Italy)
    Age
    36
    Posts
    6,004
    well, so it seems it's a flash only related problem.. in fact it doesn't happen in flex..

    Alessandro Crugnola
    Flash | Net | Python Developer
    http://www.sephiroth.it




  4. Join Date
    Jan 2002
    Location
    Gavirate - Varese (Italy)
    Age
    36
    Posts
    6,004
    I must investigate more to understand why amfphp doesn't switch automatically into AMF3 when writes Bytearray or when it receive an amf3 objectencoding..
    btw if you modify the ByteArray php class into this it should work as expected:

    Code:
    class ByteArray 
    { 
        var $data; 
         
        function ByteArray($data) 
        { 
            $GLOBALS['amfphp']['encoding'] = 'amf3'; 
            $this->data = $data; 
        } 
    }

    Alessandro Crugnola
    Flash | Net | Python Developer
    http://www.sephiroth.it




  5. Join Date
    Jan 2002
    Location
    Gavirate - Varese (Italy)
    Age
    36
    Posts
    6,004
    Well, it seems that Wade just corrected the svn source code checking if the request comes from a ObjectEncoding.AMF3

    Alessandro Crugnola
    Flash | Net | Python Developer
    http://www.sephiroth.it




+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

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