Hello,
I saw it's possible to connect PD to Flash. I didn't find explicit or restrained examples.
Does anybody has a link or element sto give me ?
Many thanks
Connect a sensor to Flash through PD ?
Hello,
I saw it's possible to connect PD to Flash. I didn't find explicit or restrained examples.
Does anybody has a link or element sto give me ?
Many thanks
You can do it with OSC. flOSC:
http://www.nullmedium.de/dev/flashserver/ has one examples
also see attached, forget where i got these examples
http://www.pdpatchrepo.info/hurleur/flashserver-1.1test8-pd-win.zip
here is an example i did a while ago. more detailed on controlling movieclip properties and methods
arrrgghh
didn't attach
Hi, I succeed to run flosc server and made a batch file. I have a shockwave sending information and received by PD. Now, I'd like to do the reverse.
I'll find but as soon you wanna to connect PD with others applications, it's more difficult.
Hi jon2211,
you example is great. I just have problems to changer some settings like this
message box :
| send 1 method _root.block.gotoAndStop $1 ]
This works fine but imagine I'd like to setup a random parameter for the gotoAndStop action. I tried a message box like this :
| send 1 method _root.block.gotoAndStop random($1)]
That's not working. An other problem, more obvious for PD users, it's the + object.
Imagine I have 100 frames and I'd like to gotoAndStop on these. I wonder how to do...
what you are sending to FLash vice versa is a string. so
[2(
|
|
| send 1 method _root.block.gotoAndStop random($1)(
sends random(2) (or maybe just random($1) because of the () but you can see that in the message area of the .fla (if not check the code, i had trace functions in there somewhere)
so what you would need to do is
[random 2]
|
|
| send 1 method _root.block.gotoAndStop $1(
You can also change the flash code to parse incoming strings as you see fit. the whole method vs property thing i got going was just me making it up. So you could have flash see random($1) as a string to trigger a function in flash if you wanted.
Oops! Looks like something went wrong!