Home Geschichten Kunst Computer Tindertraum

[current]

(Wednesday 13th March 2002)

Reading cookies into a Flash movie embedded in an HTML page is fairly simple. Flash allows you to pass variables into a Flash movie using the URL string method. All you need to do is read the cookie from the browser, and tack it onto the end of the Flash movie address.

This really helps me in another point too. My question was how I could pass values to a flash movie via the HTML. This is how to do that

Writing cookies from Flash alone is not possible. Once again you will need to use JavaScript to aid your Flash movie in setting cookies. Calling functions from Flash has traditionally been done with the FS_command, but it is not fully compatible with all browsers. Instead Flash developers have taken a lesson from the creators of Bookmarklets, using the Get URL command to call JavaScript functions. Writing cookies is a bit more complicated than reading them. Follow along closely and you can do it.

Why didn't anbody tell me you could GetURL a javascript: type URL???

And here's how to read a cookie without reloading the page containing the flash:
Get URL ("javascript:document.[DOM_NameOfFlash].SetVariable('in_cookie',(document.cookie) ? document.cookie : '');")
[source: Cookies and Flash]

[ by Martin>] [permalink] [similar entries]

similar entries (vs):

similar entries (cg):

relevant words



Martin Spernau
© 1994-2003

traumwind icon Big things to come (TM) 30th Dez 2002

You don't have to be ashamed of using your own ideas
Oblique Strategies, Ed.3 Brian Eno and Peter Schmidt



amazon.de Wunschliste





 

usefull links:
Google Graph browser
Traumwind 6-Colormatch
UAV News

powered by SBELT