Search  

SHAREDOBJECT HELP

HomeForumsHelp NeededSharedObject Help
68092 Random
362 posts
Exclusive author Author was featured Referred at least one person Sold between 10 000 and 50 000 dollars Bought between 1 and 9 items

Hi,

I need help with this, Im working for this site

If you take a look you can click on the button “DRAW” (middle bottom) you can draw and post the drawing and save it bla bla bla. the thing is that I save a shared object when someone post so he cant draw again in the wall, but for some reason, after you post, you can still draw like if the shared object doesnt exist, and when you post again (second time) then it saves the cookie and doesn’t let you draw again. I dont know why it works just the second time you draw, maybe a cache problem? this is the first time I work with SharedObject so im a bit confused :P.

Thanks

Posted about 1 month ago
50143 MSFX
380 posts
Referred at least one person Sold between 100 and 1 000 dollars Bought between 1 and 9 items

really cool idea, love it :) 8)

Is this AS3 ?

I can help if I can see your code, shared objects are a pain to work with lol

Posted about 1 month ago
67919 flashblue
194 posts
Exclusive author Author was featured Referred at least one person Sold between 5 000 and 10 000 dollars Bought between 1 and 9 items

is

var sharedObj:SharedObject = SharedObject.getLocal(“objectName”;) doesn’t work properly?

Posted about 1 month ago
68092 Random
362 posts
Exclusive author Author was featured Referred at least one person Sold between 10 000 and 50 000 dollars Bought between 1 and 9 items

MSFX :

thanks is AS2 + PHP /GD

the code that I useis:

in the main timeline:

signed_so = SharedObject.getLocal(“signed”;);

and in the button, inside the on (release) { I put:

_root.signed_so.data.signed=value

The curious thing is that when I run the file if I deleted the part of the code that sends the value of the recorded px to the php then it works right, it sends a lot of data to the php, six values per pixels and is a 390×195 image (so 75000+ pixels), and maybe thats what makes the file to sometimes dont save the cookie or dont read it. The strange thing is that when you post the second time it works right always, that’s why I thought it was a cache problem or something…

Juan

Posted about 1 month ago
68092 Random
362 posts
Exclusive author Author was featured Referred at least one person Sold between 10 000 and 50 000 dollars Bought between 1 and 9 items
is var sharedObj:SharedObject = SharedObject.getLocal(“objectName”;) doesn’t work properly?

Yea thats the code that im using and then im saving the value inside with .data

Posted about 1 month ago
50143 MSFX
380 posts
Referred at least one person Sold between 100 and 1 000 dollars Bought between 1 and 9 items

ok this is AS3 as ive just copied and pasted it but the logic all works (its taken from my FLV Player which uses cookies for volume tracking…;)

// try and retrieve volume from Shared Object (SO)
so = SharedObject.getLocal("flvVolume");

// set volume from shared object or at parameter value
// if shared object with vol property doesn't exist..
if(so.data.vol == undefined)
{
    // use from parameter and save to Shared Object
    st.volume = startingVol;
    so.data.vol = startingVol; // create field called vol within shared object
    so.flush(); // save shared object to users pc
}
else
{
    // retrieve from SO
    st.volume = Number(so.data.vol); // retrieve field called vol from shared object and cast to volume..
}

It may be helpful it may not, without seeing all your code its hard to see what your doing if you get me…

Posted about 1 month ago
68092 Random
362 posts
Exclusive author Author was featured Referred at least one person Sold between 10 000 and 50 000 dollars Bought between 1 and 9 items

thats simmilar to what im doing, but I think its just a problem when it sends the values php file cause if I put that part of code between /* */ to cancel it then it works fine.

Posted about 1 month ago
50143 MSFX
380 posts
Referred at least one person Sold between 100 and 1 000 dollars Bought between 1 and 9 items

hmmmm…..

Posted about 1 month ago