customize a unity texture from within flash/flex

hi i'd like to have a flash/flex app coexist with a unity app on one web page and have the flash/flex app to style a texture according to user input. then have the customized texture being applied to a unity model at runtime. how can that be done?

As Unity supports interaction with the JavaScript on the web site, you could in theory encode your texture as a string, and then pass that to a function in Unity from the Flash content using a JavaScript call. See docs for details.

Either that, or upload the texture to a server, and download it from Unity (which would be a waste of bandwidth, of course).

Guys from Frenzoo are doing exactly what you want. Unfortunately I don't remember the details fully, but as Jonas suggested, the interaction was made through JavaScript. If you contact them and get an answer - please post it back :)

This is something that I want to find out, but never got the time and need to do it. I think the way to go is to use Base64 encoding and decoding.

A simplistic solution that is guaranteed to work is to upload the bitmapdata from Flash to a server and load that same image from Unity after completing the upload. It's not efficient, but it could serve as an alternative solution if it will not work through javascript.

[update] Just saw that my last suggestion was already given.

You might check out what the folks at Aquiris have done with u3dobject. It's a swfobject like set of scripts for communicating with Javascript on a page or to flash content. Any communication you do is going to have to happen through the Javascript on the page, this framework just simplifies some tasks. Be aware, though, that to load a file directly from Unity, you'd have to serialize it as a string and recreate it in Unity or have your Flash/Flex store the image somewhere accessible and pull it down in Unity using the www class.