| Author |
Message |
pichya
Joined: Aug 6, 2013 Posts: 9
|
Posted: Aug 9, 2013 8:58 PM Post subject: flash player object |
|
| I'm trying to pass along the value from the polygraph object into the 'ln1'variable of the flash player object. How does the variable get updated inside flash? |
|
 |
jarek
Joined: Oct 22, 2007 Posts: 1073
|
Posted: Aug 9, 2013 9:52 PM Post subject: |
|
I don't understand how you can get a value from Polygraph, it has no outputs.
The flash variable is passed to the flash movie. The flash movie has to implement receiving and using the variable called \"In1\", that is however outside of Bioera scope. |
|
 |
pichya
Joined: Aug 6, 2013 Posts: 9
|
Posted: Aug 9, 2013 10:46 PM Post subject: |
|
Right, I was using the PN_Pulse1 Object output that was going into the polygraph. I then tried to connect the PN_Pulse1 PPG Scalar output into \"In1\" of the Flash Object. Then I tried to output the \"In1\" into a text field in Flash. Should I be seeing values of 0-128, that I'm seeing in the polygraph object? I'm only seeing 1 and 0.
|
|
 |
jarek
Joined: Oct 22, 2007 Posts: 1073
|
Posted: Aug 9, 2013 10:52 PM Post subject: |
|
First of all. You need to make sure your Flash movie can receive that variable value. Most movies do not, so in such case connecting the In1 input will have no effect.
|
|
 |
pichya
Joined: Aug 6, 2013 Posts: 9
|
Posted: Aug 13, 2013 6:53 PM Post subject: |
|
| Ok. I'm not quite understanding how the variable scalar values coming out of the Pulse1 Object is getting received by the Flash Object. The 'In1' input on the flash object is that getting sent as a flashvar to the swf? |
|
 |
jarek
Joined: Oct 22, 2007 Posts: 1073
|
Posted: Aug 13, 2013 7:00 PM Post subject: |
|
| Yes, the value on the In1 input is sent to swf flash movie. |
|
 |
pichya
Joined: Aug 6, 2013 Posts: 9
|
Posted: Aug 13, 2013 8:53 PM Post subject: |
|
| I am getting values of 1.0 when I output the In1 variable value inside flash....when I'm expecting the scalar values from what I'm seeing plotted along the polygraph graph with values of 0->128. If I output the values inside a text field in the BioEra sess, I am seeing those values. It seems the flash swf is not receiving scalar value, but logical values. |
|
 |
pichya
Joined: Aug 6, 2013 Posts: 9
|
Posted: Aug 13, 2013 9:23 PM Post subject: |
|
| I just created a similar setup with the same swf using BioExplorer and using their program the In1 variable that I'm sending to the flash object is showing scalar values. Not just 1.0 and 0. |
|
 |
jarek
Joined: Oct 22, 2007 Posts: 1073
|
Posted: Aug 13, 2013 10:18 PM Post subject: |
|
You are right. The value which is sent to Flash is limited to the range between 0 and 1.
See if this snippet works for you:
http://proatech.com/design/flash.bpd
You can use slider to set any value between 0 and 1. And you should see the same on your flash movie.
|
|