开发者

Is it possible to set cookies with swfObject?

Working on script, that should receive cookies and settings via link. Well coo开发者_JS百科kies might be passed otherwise, but they need to be passed to the swfObject so that script could work correctly.

Is it possible?


The answer is no. SWFObject has nothing to do with cookies (or Flash Shared Objects, for that matter). You will need to handle cookies using external JavaScript. PPK has a great script you can use.

If you need to pass data to your SWF via SWFObject, you'd extract the cookie data using your own JavaScript, then add it to your flashvars object before embedding the SWF. See http://learnswfobject.com/the-basics/advanced-options-with-dynamic-publishing/ for instructions on how to use SWFObject, including passing flashvars.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜