263 posts
  • Has been part of the Envato Community for over 7 years
  • Located in Antarctica
  • Has sold $100+ on Envato Market
  • Has collected 1+ items on Envato Market
+1 more

Ok, lol, I figured out what it was.

Here is the AS3 side:

import classes.Serializer;

var test:Array=new Array ();
test.push ("asdf,0");
test.push (["asdf1,0","asdf1,1"]);
trace (Serializer.serialize (test));

Which give me this:


And when I put it php with this and try to use it:


$test=unserialize ('O:8:"stdClass":2:{s:1:"0";s:5:"asdf1";s:1:"1";O:8:"stdClass":2:{s:1:"0";s:5:"asdf2";s:1:"1";s:5:"asdf3";}}');
echo $test[0].'\n';
echo $test[1][0].'\n';
echo $test[1][1].'\n';


It gives me this error:

Fatal error: Cannot use object of type stdClass as array in /hosted/subs/ulmb.com/z/i/zidian/public_html/aztec/flash_varString.php on line 4

Any ideas what went wrong?

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes